Vancouver Citation Style missed the penultimate number in pages

Dear Colleagues!

We found that in Vancouver Citation Style (Citation Style Language Plugin) there is a small error in citation output (block How to Cite on article page) namely the penultimate number in pages is missed.

missing

This can be seen on all OJS3 websites. All other styles work well…

Most likely this file needs to be fixed

/plugins/generic/citationStyleLanguage/citation-styles/vancouver.csl

in this block

<macro name="pages">
    <choose>
      <if type="article-journal article-magazine article-newspaper review review-book" match="any">
        <text variable="page" prefix=":"/>
      </if>
      <else-if type="book" match="any">
        <text variable="number-of-pages" prefix=" "/>
        <choose>
          <if is-numeric="number-of-pages">
            <label variable="number-of-pages" form="short" prefix=" " plural="never"/>
          </if>
        </choose>
      </else-if>
      <else>
        <group prefix=" " delimiter=" ">
          <label variable="page" form="short" plural="never"/>
          <text variable="page"/>
        </group>
      </else>
    </choose>
  </macro>

Please help to fix it !
Thank you in advance!

Hi @OSU,

This is probably the same as Page numbering issue · Issue #60 · seboettg/citeproc-php · GitHub. What version of OJS are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

As far as it was found, this error is present in all versions of OJS 3.
… from 3.1.0.1 to 3.1.2.1… and in all websites
for example
https://ojs.lib.uwo.ca/index.php/locke/article/view/861

1

for some reason, the first digit is lost after a short hyphen
https://ojs.lib.uwo.ca/index.php/locke/article/view/876
2

Hi @OSU,

It looks like a problem in the upstream citeproc-php library. I’ve proposed a fix to it:

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Many thanks, @asmecher !
hope it will fix it.