Dan has flagged an issue with DOIs:

    https://github.com/Juris-M/citeproc-js/issues/57

To sum up, some styles prepend the URL stub to a DOI for display as a
hard-coded prefix, and in that case the (citeproc-js) processor wraps
only the DOI itself in an anchor.

It would be cleaner to wrap the entire URL. Hacking the processor to
recognize the URL stub and merge it into the field content could be
done, but I would be more comfortable if that and any associated
behavior were specified in CSL. We would be talking about constructs
like this:

<text variable="DOI" prefix="https://doi.org/"/>

As things stand at present in the citeproc-js processor, there are
several parts to the issue:

(1) Would it be safe for the processor to always strip a DOI URL
prefix stub from the initial input? That would assure a consistent
starting point, to avoid returning a corrupted URL.

(2) If "yes" to (1), should non-DOI prefixes also be stripped? (If
"no," citeproc-js would need to avoid affixing the URL stub in this
case.)

(3) Should special handling be introduced for a prefix hard-coded as
in the above example? (If the prefix is always to be
"https://doi.org/,"; it would be cleaner to have a proper CSL attribute
that triggers its inclusion.)

Thoughts most welcome!

FB

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xbiblio-devel mailing list
xbiblio-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xbiblio-devel

Reply via email to