The abst() function in the biblio/modules/pubmed/EntrezPubmedArticle.php file adds simple HTML tags to the abstract as it builds it from the Pubmed XML import file.
Later in biblio_theme.inc this same HTML is passed through the check_markup() function which renders it as <p> it then appears as shown in the screenshot below:
Attached is a simple patch to allow the $node->biblio_abst_e field to have simple HTML tags and to render them correctly through the "filtered_html" which essentially strips the html tags from the biblio_abst_e field.
The abstract is rendered like the following after applying this patch:
Thank you for considering this patch.
Nathan
Comment | File | Size | Author |
---|---|---|---|
#3 | biblio-pubmed_abstracts_render_html-2404675-3.patch | 911 bytes | byronveale |
Issue fork biblio-2404675
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
kenorb CreditAttribution: kenorb commentedComment #2
elenat82 CreditAttribution: elenat82 commentedThis patch worked for me on Drupal 7.43 (although I had to modify lines 1, 2 and 3 because my biblio module is in the sites/all/modules/contrib folder, but no problem!)
Comment #3
byronveale CreditAttribution: byronveale commentedRe-creating this patch as previous version patched from Drupal docroot, which is no good…
Comment #6
byronveale CreditAttribution: byronveale at Princeton University for Princeton University commented