-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix/12832 pubmed url import #12839
Fix/12832 pubmed url import #12839
Conversation
i'll adjust the needed files for the tests tmrw. |
I don't understand the failing OpenRewrite test. Can you help me out? @koppor |
Execute ./gradlew rewriteRun and check the diff. Does that work in your side? |
@@ -1,4 +1,5 @@ | |||
@TechReport{, | |||
doi = {10.1016/j.cpr.2005.02.002}, | |||
pmid = {22664220}, | |||
location-id = {https://pubmed.ncbi.nlm.nih.gov/22664220/ [pii]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should that get the URL maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply using 'url' doesn't work because of the 'LID' in the corresponding .txt file. I couldn't find a better solution for this, so maybe it could have just been left out, but this also works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should i remove it? @koppor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the suffix can be stripped somehow?
Maybe @ryan-carpenter has an idea for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there might be some misunderstanding. We want the URL of the PubMed record, which is not included in the AID or LID field and does not belong there. Those contain identifiers and locations from the publisher.
Valid URLs can be formed from the PMID and/or PMCID fields (two different URLs), regardless of the data in AID
and LID
. I'm not sure what the best standard bibtex field is for this. Other databases use the url
field, which I think is non-standard.
The suffix [pii]
is not important to keep after the PII data is parsed into the correct fields. It's the same as DOI. You don't need to keep [DOI]
after moving the data into the doi
field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about now? @koppor @Siedlerchr
@trag-bot didn't find any issues in the code! ✅✨ |
Closes #12832
Description
This PR ensures that when importing from PubMed, the PubMed URL is automatically added to the
URL
field if it is missing.PMID
) from the article metadata.URL
field is found, constructs a PubMed URL usinghttps://pubmed.ncbi.nlm.nih.gov/{PMID}/
.URL
entry is not overwritten.articleIdList
only once.Before:

After:

Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)