Empty variable not being recognized

I'd set up my style a while ago to look for a DOI, and if it didn't find one, insert a URL if available. Until recently, it worked, but for some reason it isn't anymore - instead, if it sees that the particular document type includes the DOI field, it skips the URL. For example, it renders this article thus:

Tompkins, E. L. and Adger, W. N. (2004). Does adaptive management of natural resources enhance resilience to climate change? Ecology and Society, 9(2). Art. 10.

Instead of adding the URL as it should (since E&S articles typically don't come with URLs).

Any idea why this is happening, and more important, how to solve it? I'm preparing a guidance document for which URLs are quite important, and I'd really like our style to render them. I have posted my style here: https://gist.github.com/marionsd/7085988.

Thanks in advance to anyone who can help!

- Marion
  • Oh and one small detail: I can't just have it render DOI if it exists, and then URL, because when we have DOIs, we specifically *do not* want the URLs to show as well.
  • in which field is the "Art. 10"? Note that Zotero will by default not print URLs for items that have something in the "Pages" field.
    You can include URLs for those items by checking the "Include URL" box in the Cite --> Styles tab of the Zotero preferences.
  • Art. 10 is pages, indeed. Thanks! Fixed now.
Sign In or Register to comment.