Erroneous removal of leading zeros in page numbers
Recently (sometime this year) Zotero (or probably citeproc-js) have started automatically removing leading zeros in page numbers (whatever citation style I use). I am using Zotero 4.0.29.10 for Firefox, and the issue appears both in Word and when generating bibliography inside the Zotero itself. While this may be fine (and desired behavior) in many cases, it introduces some problems.
In some journals article number (id) is used instead of page numbers, and this id may well start with 0. See, e.g.,
"J. Biomed. Opt. 2009, 14 (6), 064036" - http://dx.doi.org/10.1117/1.3275471
From 1800+ papers in my Zotero database around 180 (10%) use article id with leading zero. I believe that removing of first zero in such cases is erroneous and may cause problems in further identification of such references and proper attribution of citations by Web of Science and Scopus.
1) Is it really necessary to make this behavior "always on"? Can this change be reverted? Personally I have never encountered the case, where such removal is needed.
2) If the behavior stays as is, is there any way to safeguard particular items in Zotero library against it (by modifying the page-numbers field)? For instance, I tried several changes (page-number field -> result in bibliography):
064036 -> 64036
"064036" -> 64036
'064036' -> "064036"
\"064036\" -> "064036"
but none is satisfactory.
In some journals article number (id) is used instead of page numbers, and this id may well start with 0. See, e.g.,
"J. Biomed. Opt. 2009, 14 (6), 064036" - http://dx.doi.org/10.1117/1.3275471
From 1800+ papers in my Zotero database around 180 (10%) use article id with leading zero. I believe that removing of first zero in such cases is erroneous and may cause problems in further identification of such references and proper attribution of citations by Web of Science and Scopus.
1) Is it really necessary to make this behavior "always on"? Can this change be reverted? Personally I have never encountered the case, where such removal is needed.
2) If the behavior stays as is, is there any way to safeguard particular items in Zotero library against it (by modifying the page-numbers field)? For instance, I tried several changes (page-number field -> result in bibliography):
064036 -> 64036
"064036" -> 64036
'064036' -> "064036"
\"064036\" -> "064036"
but none is satisfactory.
(1) Should the presence of a leading zero affect the is-numeric conditional?
(2) If the answer above is "yes," what should be done with hyphen in entries with a leading zero?
I'm not aware of data sources that erroneously add leading zeros. They likely exist, but I suspect we should keep them as-is in most places.
I've seen older data that included an article number and a range (e.g. 064036:1-3), though this seems less common.
(4) Looking at noksagt's example: uh-oh. That would currently evaluate as non-numeric (I think). Is that a sufficiently rare edge case to make that permissible, or should it be handled as a pre-colon prefix plus a range of numeric elements (with collapsing, I guess) and an en-dash range delimiter?
Roman numerals are a troublesome case for CSL. In citeproc-js, they are not recognized as numeric. They can be generated automatically from arabic source numbers, but I don't know of any cases where that is actually useful, since the romanized form is generally a feature of the input data, not of the style.
Edit-add: The processor will treat non-consecutive page numbers like "1, 7 & 8-10" as a labeled series, for which a (lone) leading label is pluralized.
(1) concerning is-numeric condition, there are pros and cons. Potentially leading zeros can appear in perfectly numeric page numbers, and then they should be considered as such. Some numeric treatment of article ids is also OK, like sorting. But some numeric treatment may be not desirable (at least, removing of leading zeros). The best option is probably to keep it numeric but retain leading zeros.
(2) the easiest is probably to treat hyphens same as everywhere, e.g. as page range, to be OK for usual page range with redundant leading zero, since the hyphen should not normally appear in article ids. If article ids with hyphens are used (they may be with or without leading zeros), this will result in ambiguity anyway - and should be treated separately.
(3) similar to (2), i.e. assume the normal page range with redundant zero as the main example. Article ids with hyphens will anyway produce something weird, so should be treated separately if a meaningful example will present itself.
I am currently working toward an urgent deadline and discovered the issue when checking my bibliography. I then wasted > an hour trying to figure out whether the problem was something in the style. Finally I found this thread which explains it is a bug introduced by Zotero issue...I'm not a happy camper right now.