Page MenuHomePhabricator

the PMC prefix for a value of pmc attribute should not be added
Closed, DuplicatePublicBUG REPORT

Description

Refill bug reports

Hello, where can I report bugs on ReFill?

When it expands bare reference to <nowiki>{{cite journal}}</nowiki>, it adds pmc (PubMed Central) attributes, it adds value as "PMC6986072", see example:

<nowiki>{{Cite journal|url=https://cardiothoracicsurgery.biomedcentral.com/articles/10.1186/s13019-020-1041-5doi.org/10.1186/s13019-020-1041-5|title=Bioresorbable vascular stents and drug-eluting stents in treatment of coronary heart disease: a meta-analysis|first1=Le|last1=Ni|first2=Hao|last2=Chen|first3=Zhurong|last3=Luo|first4=Yunqiang|last4=Yu|date=28 January 2020|journal=Journal of Cardiothoracic Surgery|volume=15|issue=1|pages=26|via=BioMed Central|doi=10.1186/s13019-020-1041-5|pmid=31992360|pmc=PMC6986072}}</ref></nowiki>

As you see (pmc=PMC6986072), the value is "PMC6986072", whereas it should only contain digits, i.e. it should be "6986072", i.e., it shouldbe "pmc=6986072".

Expected full citation is:

<nowiki>{{Cite journal|url=https://cardiothoracicsurgery.biomedcentral.com/articles/10.1186/s13019-020-1041-5doi.org/10.1186/s13019-020-1041-5|title=Bioresorbable vascular stents and drug-eluting stents in treatment of coronary heart disease: a meta-analysis|first1=Le|last1=Ni|first2=Hao|last2=Chen|first3=Zhurong|last3=Luo|first4=Yunqiang|last4=Yu|date=28 January 2020|journal=Journal of Cardiothoracic Surgery|volume=15|issue=1|pages=26|via=BioMed Central|doi=10.1186/s13019-020-1041-5|pmid=31992360|pmc=6986072}}</ref></nowiki>

Because of this "PMC" prefix, the article goes to a maintenance category https://en.wikipedia.org/wiki/Category:CS1_maint:_PMC_format until somebody with citation bot ([[User:Citation_bot/use]]) or manually fixes the page.

Can you please fix the reFill tool to not add the PMC prefix to the values of the pmc attribute? [[User:Maxim Masiutin|Maxim Masiutin]] ([[User talk:Maxim Masiutin|talk]]) 14:03, 8 February 2024 (UTC)

Steps to replicate the issue (include links if applicable):

  1. Insert into a Wikipedia article a bare reference URL to an article that has a PubMed Central ID. It should not be a link to PubMed itself. Examples of such URLs are:

Therefore, insert the following code to a Wikipedia article using source code editor:

<ref name="r1">https://bmccardiovascdisord.biomedcentral.com/articles/10.1186/s12872-021-02356-0</ref>
<ref name="r2">https://cardiothoracicsurgery.biomedcentral.com/articles/10.1186/s13019-020-1041-5doi.org/10.1186/s13019-020-1041-5</ref>
<ref name="r3">https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0291466</ref>

  1. Go to https://refill.toolforge.org/ and run reFill on this article (type the article name into the "Page name" edit field and click the "Fix page button".
  1. reFill will expand this reference to the following:

<ref name="r1">{{Cite journal|url=https://doi.org/10.1186/s12872-021-02356-0|title=Clinical outcomes in 2481 unselected real-world patients treated with a polymer-free sirolimus-eluting stent: 3 years results from the NANO multicenter Registry|first1=Yi|last1=Dai|first2=Rutao|last2=Wang|first3=Fengying|last3=Chen|first4=Yaojun|last4=Zhang|first5=Yi|last5=Liu|first6=He|last6=Huang|first7=Ping|last7=Yang|first8=Ruining|last8=Zhang|first9=Bo|last9=Zheng|first10=Chao|last10=Gao|first11=Yundai|last11=Chen|first12=Ling|last12=Tao|date=12 November 2021|journal=BMC Cardiovascular Disorders|volume=21|issue=1|pages=537|via=BioMed Central|doi=10.1186/s12872-021-02356-0|pmid=34772347|pmc=PMC8588634}}</ref>

<ref name="r2">{{Cite journal|url=https://doi.org/10.1186/s13019-020-1041-5|title=Bioresorbable vascular stents and drug-eluting stents in treatment of coronary heart disease: a meta-analysis|first1=Le|last1=Ni|first2=Hao|last2=Chen|first3=Zhurong|last3=Luo|first4=Yunqiang|last4=Yu|date=28 January 2020|journal=Journal of Cardiothoracic Surgery|volume=15|issue=1|pages=26|via=BioMed Central|doi=10.1186/s13019-020-1041-5|pmid=31992360|pmc=PMC6986072}}</ref>

<ref name="r3">{{Cite journal|url=https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0291466|title=Meta-analysis of outcomes from drug-eluting stent implantation in femoropopliteal arteries|first1=Mingxuan|last1=Li|first2=Haixia|last2=Tu|first3=Yu|last3=Yan|first4=Zhen|last4=Guo|first5=Haitao|last5=Zhu|first6=Jiangliang|last6=Niu|first7=Mengchen|last7=Yin|date=21 September 2023|journal=PLOS ONE|volume=18|issue=9|pages=e0291466|via=PLoS Journals|doi=10.1371/journal.pone.0291466|pmid=37733656|pmc=PMC10513203}}</ref>

As you see, the pmc attributes are with PMC prefix, such as pmc=PMC8588634 but it should be pmc=8588634

Event Timeline

Curb_Safe_Charmer subscribed.

@Maxim_Masiutin I have re-tagged this as an issue with Citoid. reFill is just a wrapper for Citoid, which it uses to actually generate the expanded reference. Citoid is maintained by the WMF.

Seems to already be in the Citoid backlog as T157152.