There are two PMCs in PMC field from this url from the citoid rest service: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4241502/
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Remove PMC prefix in PMCID field | mediawiki/services/citoid | master | +11 -11 |
Related Objects
Related Objects
Event Timeline
Comment Actions
The cause of this problem has been identified. Given that
const rePMCID = new RegExp('\\bPMC\\d{7}\\b');
If this condition is satisfied, keyValue[1].trim() must have already contained a 'PMC' prefix. Thus the next line
content.PMCID = `PMC${keyValue[1].trim()}`;
would result in a duplication of the 'PMC' prefix.
Comment Actions
Change 513767 had a related patch set uploaded (by Mvolz; owner: Mvolz):
[mediawiki/services/citoid@master] Remove PMC prefix in PMCID field
Comment Actions
Change 513767 merged by jenkins-bot:
[mediawiki/services/citoid@master] Remove PMC prefix in PMCID field