Possible to write a citation style where titles are hyperlinked to urls?

I did some searching and found some old queries on the forum about this with the answer that it was not possible, but they were all multiple years old so I thought it would be worth asking again as things may have changed.

Is there any way to customize a CSL so that the title of the item is generated as an html link using the url or doi when one is defined, rather than displaying a bare url at the end of the citation?

I looked at the CSL spec and examples but I haven't been able to figure out if there's any way to do this.
  • Nothing new on this. It's not possible to hyperlink components of citations using CSL, no.
  • Thanks for responding, kind of suspected that but good to know for sure.

    How hard would it be to support something like this? Is there any development happening on CSL or is it pretty static? Could this be implemented somewhere else, or is CSL the right place?
  • CSL updates happen at a pretty slow pace, both structurally and philosophically. My view is that something like this would be better handle by some sort of post processing (i.e., as a setting in the references manager) than in the citation styles, but other people disagree. It would be a pretty significant CSL change since the current language doesn't contain any non-visible elements (such as the link address).

    The logic for putting any such features in the reference manager/implementation from where I'm sitting is that folks will want different parts hyperlinked and they'll want this in different styles, so a reference manager setting provides a lot more flexibility to do this over requiring every such option to be coded into a new style.
  • That all makes sense, thanks for explaining. I did get the sense that CSL was generating text only without markup, so I could see implementing something like this would require major changes.

    So is there a way to do something like this in Zotero?
  • We're planning to add an option to hyperlink URLs and DOIs, probably as an option when unlinking citations (along with cross-linking citations to references within the document). I guess titles could be another option to account for styles that don't require URLs/DOIs.
  • This doesn't come up as often as the DOI/URL hyperlinking, but it's a fairly common request, so it'd be nice to add, yes.
  • It would be great to have an option to make the title of the item link to the DOI/URL - it's a nice, readable short-form for a web citation. We're currently doing this manually for adding citations to a web site and I started trying to customize a CSL rule and got stuck. In this case I'm using the "create bibiliography" from item and copying to the clipboard, in case that matters for where you're thinking about this implementation (the comment about unlinking citations made me wonder).

    FWIW, it's my understanding that a text-based link like a title is better for accessibility since screen readers read out the full URLs.
  • Can you help me understand if I'm understanding this correctly - I can get hyperlinked DOIs if I use the Quick Copy, but not if I am generating a bibliography via Add/Edit Bibliography in Word? Thank you!
  • No, the question here was whether you can hyperlink other parts of the citation -- titles, mostly -- with hyperlinks.
    You can get hyperlinks for URLs (DOI and URL) in bibliographies using Words auto format feature run on the bibliography
  • Hi @adamsmith - thanks for chiming in. I have turned on AutoFormat and checked "Internet and network paths with hyperlinks" as directed by many guides out there as "how to's". That works for any URL I type and press the space bar after. But it does not convert the references I've imported via a Zotero bibliography.
  • @adamsmith - THANK YOU! I looked and looked for such a guide. This saves so much time. Thanks for your wisdom!
  • Hello,

    Following up from the original post by rlskoeser. I am also interested in how I can use Zotero to embed urls in a bibliography.

    I am using MS Word to prepare a report and Zotero as the citation manager.

    I am using author-date style and simply want to have an in-text citation, and the reference in the bibliography with the url embedded in the title of the citation.

    This is the current output from Zotero:
    ABS (2024a) ‘National, state and territory population tables (Table 4), March 2024’, https://www.abs.gov.au/statistics/people/population/national-state-and-territory-population/latest-release, accessed 18 July 2024.

    I want to have the output look like this (note the url is embedded in the "National ... March 2024" text):
    ABS (Australian Bureau of Statistics) (2024a) ‘National, state and territory population tables (Table 4), March 2024’, ABS, accessed 18 July 2024.

    It is a simple thing to do in Word, and this is the contemporary style recommended by the Australian Government in its style guide.

    My only work-around seems to be to remove Zotero Fields once citations have been added to word, which makes Zotero largely redundant.

    Any help would be appreciated. Screenshot below.

    https://s3.amazonaws.com/zotero.org/images/forums/u14210867/ujn1ghvkewzhr6rutm0r.png

    Regards,
    Brent
  • Hyperlinking titles isn't currently possible. Zotero devs have said they'll continue it, but I wouldn't expect anything super soon
Sign In or Register to comment.