Closed asmecher closed 5 years ago
Thank you for this bug report! In release 2.1.6 this issue should be solved.
please reopen this issue, if the issue reappears.
Will do -- thanks, @seboettg!
I'm still getting odd-looking citation, e.g. piping in
$citationData->page = '39-47';
...and using citation-styles/vancouver.csl
gives me...
My Article. JABC. 1(1):39-7.
instead of
My Article. JABC. 1(1):39-47.
I think the problem is that the call to renderMinimal
in https://github.com/seboettg/citeproc-php/blob/master/src/Seboettg/CiteProc/Util/PageHelper.php#L30 should specify a limit
of 0
rather than letting it default to 1
, no?
This should fix it (see also the test case): https://github.com/seboettg/citeproc-php/pull/66
Please follow the general troubleshooting steps first:
Bug reports:
Page number parsing seems broken
Used CSL stylesheet:
Vancouver format: https://github.com/pkp/citationStyleLanguage/blob/master/citation-styles/vancouver.csl
Used sample code
Expected output
Received output
Note the truncated page numbering in the Received Output:
3-0
. This should be3-10
.