-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Adding PMID macro to AMA.csl #7488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Awesome! You just created a pull request to the Citation Styles Language styles repository. One of our human volunteers will try to get in touch soon (usually within a week). In the meantime, I will run some automated checks. You should be notified of the results in a few minutes. If you haven't done so yet, please make sure your style validates and follows all our other Style Requirements. To update this pull request, visit the "Files changed" tab above, click on the ellipsis button in the top-right corner of your style, and then select "Edit file" to start editing: If you have any questions, please leave a comment and we'll get back to you. While we usually respond in English, feel free to write in whatever language you're most comfortable. |
😃 Your submission passed all our automated tests. Below are some sample citations generated based on your proposed changes: american-medical-association.csl (modified style; unchanged output for sample items)1,2 |
Can you quote the manual where it talks about including PMID? I don't currently have access to a copy of the AMA manual |
@bwiernik While not exactly a rule, it's mentioned under the Electronic References section: ![]() ![]() ![]() Additionally, it's visible in this example citation when searching the AMA site: ![]() |
Thanjs for this! We certainly shouldn't take this as part of the main AMA style -- that's used for lots of journals and I've never seen PMIDs in those style guides. |
@adam3smith makes sense—I will make this change in a custom csl. For what it's worth, does the approach I took seem like a good way to do it? |
Yes, that will work perfectly. FWIW, you can do this in a single line with exactly same output:
|
AMA allows PMIDs to be included in references when desired.
This PR attempts to add a PMID to the end of the reference when a PMID is present.
In Zotero, this works as expected: