• Mark

    (@codeispoetry)


    I’m customizing a publication list and getting quite some way with CSS (thanks for the ZP data fields!), but running into a few limitations:

    1.
    Would be wonderful to be able to set the text of the download link, e.g. to say just “PDF” or a unicode character like “🔽”. This is also an i18n/l10n issue: consider non-English settings where we might want to have a different word or sign.

    Proposal: Option downloadlinktext="text" that allows user to set the link text.

    Variant of proposal: Keep download="yes" (and download="no" for not displaying), and interpret any other text as the custom link text (e.g., download="🔽 PDF" would render the link as 🔽 PDF)

    2.
    If #1 is reasonable then the same should probably apply to the “(CITE)” link generated by cite="yes".

    3.
    ZotPress seems to decide to turn DOIs into links, but only when a style prescribes using the full URL (with the https://doi.org/ prefix). However, in an online context it makes little sense to print the https://doi.org/ part. We can get rid of this by choosing a style that just prints “doi:10.1016/j.cub.2016.05.047”, but then we lose the link.

    Proposal: Add option linkdoi="yes" to link the DOI (if a style is chosen that displays the DOI). Leave display or not of http://doi.org/ prefix to the CSL style.

    Variant of proposal: I was hoping that urlwrap would pick up the DOI link but apparently that one is for the item URL field in Zotero. If it would work for DOIs, an added option urlwrap="doi" could nicely cover the above use case. (Here, too, leave display or not of full HTTPS prefix to the CSL style.)

    • This topic was modified 6 years, 1 month ago by Mark.
    • This topic was modified 6 years, 1 month ago by Mark.
Viewing 1 replies (of 1 total)
  • Thread Starter Mark

    (@codeispoetry)

    With a view to flexibility (including use in non-anglo contexts) these small customizations would really be incredibly helpful. I have tried to frame them in the most helpful and explicit way possible while keeping it compatible with the current behaviour users have come to expect.

    For the record, my current workaround is that I have hardcoded the kind of output code I needed in the ZotPress php, which is obviously not ideal (because it gets lost with new updates).

Viewing 1 replies (of 1 total)

The topic ‘Customize links, RIS & download options’ is closed to new replies.