Bitbucket cannot automatically merge this request.
The commits that make up this pull request have been removed.
Bitbucket cannot automatically merge this request due to conflicts.
Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:
hg update remove_configurable_cachedir
hg pull -r html_citation https://bitbucket.org/afrubin/metapub
hg merge html_citation
hg commit -m 'Merged in afrubin/metapub/html_citation (pull request #50)'
I wanted to display references with HTML text formatting for a Django project, so I added a citation_html property and made a few changes to the how the citation property is formatted.
Removed comma separator between author last name and initials because it also inserts a comma betweens words in consortium names (see PMID:12466850).
A proper fix will require looking at a list of author objects and handling consortia separately using the collective_name attribute.
Updated citation docstring because PMID is not included in the citation.
Switched from volume_issue to volume in citation.
This seems to be more standard across biological journal styles and is consistent with the docstring.
Author string for authors now joined with “ and “ instead of comma-separated.
Added a citation_html property that returns the citation (with no DOI) as a string with HTML text formatting tags.
“et al” and journal/book titles are italicized. Journal volume is bolded.
Add the ‘.’ at the end of ‘et al.’ if it appears in the book editor field.