Print URL to reference only when DOI not present
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.
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.
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.
<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.