Print URL to reference only when DOI not present

edited July 14, 2017
I have a bunch of journal articles that use the handle system rather than DOI. These are included in the URL field rather than the DOI field in Zotero. I'm struggling, however, to get them into my bibliography. Rather than print the URL if no DOI is present, it just prints a blank line and I end up with something like the following:


6. Thomas Schlienger and Stephanie Teufel. 2003. Information security culture - from analysis to change : research article. South African Computer Journal 2003, 31 (Dec. 2003), 46–52. [NEED URL TO GO HERE SINCE NO DOI]
7. Adele da Veiga and Jan H. P. Eloff. 2010. A framework and assessment instrument for information security culture. Computers & Security 29, 2 (Mar. 2010), 196–207. DOI:https://doi.org/10.1016/j.cose.2009.09.002


The CSL I am using is from http://www.zotero.org/styles/acm-sigchi-proceedings, and I thought the if/else-if would print the URL if there is no DOI (I don't want the URL if a DOI is present).

I'd appreciate some help getting this working.
  • edited July 14, 2017
    you can delete the code in your post. It doesn't show up anyway and the necessary part is this one:
    <macro name="access">
    <choose>
    <if variable="DOI">
    <text variable="DOI" prefix="https://doi.org/"/>
    </if>
    <else-if variable="URL">
    <group delimiter=" ">
    <text term="retrieved" text-case="capitalize-first"/>
    <date variable="accessed" form="text"/>
    <text term="from"/>
    <text variable="URL"/>
    </group>
    </else-if>
    </choose>
    </macro>


    I honestly don't get why it's NOT producing the URL. It should do already as you want it.
  • It's not. I can manually type it in, but that gets tedious and kind of defeats the point. Oh well, best I got onto it then.
  • edited July 14, 2017
    check the "Include URL" option in the Cite -->Styles tab of the Zotero preferences
  • Ah, awesome. Solved it, thanks. I'd seen that many times previously but the description doesn't make it sound anything like what it does. Much appreciated! :-D
  • We're not happy with it and would like to get rid of it entirely, but that likely requires manually touching up hundreds of styles, so it's a bit tricky.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.