Ensuring DOIs and DOIs

I found that in older versions of some journals (Radiology and Radiographics), where a DOI doesn't exist for the article, my Zotero entries have things like "VL - 154". My custom style tries to create a link back to the DOI where a DOI exists and thus, creates an erroneous link.

My questions:
How do I do a simple check in the style cls to say "if DOI starts with '10.' then show the DOI, else create a link to the URL instead"

Thanks,

Jeremy
  • you can't - the if functions of .csl are pretty limited.
  • Ah... anybody else got any suggestions about how to not render the erroneous DOI link.

    I presume that the journals in questions are in error rather than Zotero pulling out that data and putting it into the DOI box.
  • I presume that the journals in questions are in error rather than Zotero pulling out that data and putting it into the DOI box.
    This very well could be (there is a lot of garbage out there), but isn't necessarily the case. And, in this particular example, Zotero should be able to work-around the broken site (because it could check that it is a valid DOI before it adds it to the record). Do you have URLs to some of the bad entries?
  • 1. http://radiology.rsna.org/content/174/3/751.abstract gives the DOI of "VL - 174" which I presume stands for volume lable 174 (it's out of volume 174)

    2. http://radiology.rsnajnls.org/content/154/3/687.abstract gives a DOI of "VL - 154" - it's from volume 154

    3. http://radiographics.rsna.org/content/10/1/41.abstract is a different journal from the same publishing house with the DOI of "VL - 10" - it's unsurprisingly from volume 10.

    I think they have just done this for all entries without DOIs becuase latter entries work fine.
  • edited August 12, 2009
    Well, the site has empty 'N1' tags & empty RIS tags aren't really good behavior. However, the Zotero high wire translator should be fixed such that it doesn't trip over empty tags.

    Ticket created:
    https://www.zotero.org/trac/ticket/1539
  • edited June 9, 2010
    I've applied noksagt's changes. Go to http://github.com/ajlyon/zotero-bits/raw/master/Highwire 2.0.js and save the file to the translators directory of your Zotero data directory (http://www.zotero.org/support/zotero_data).

    If this works for people, I'll post it to zotero-dev for discussion and get it out to clients.
  • edited June 9, 2010
    My first version of this patch broke all DOIs. The updated version, at the same URL above, does not. Comments are welcome.

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