Created
August 19, 2020 17:45
-
-
Save adam3smith/9737adc01e067eff360fba9f39d2cd51 to your computer and use it in GitHub Desktop.
CSL Style that prints hyperlinked DOIs, URLs, or titles, in that order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never" page-range-format="expanded"> | |
<info> | |
<title>URLs Only</title> | |
<id>http://www.zotero.org/styles/urls-only</id> | |
<link href="http://www.zotero.org/styles/urls-only" rel="self"/> | |
<author> | |
<name>Sebastian Karcher</name> | |
</author> | |
<category citation-format="author-date"/> | |
<category field="generic-base"/> | |
<updated>2020-07-13T03:13:43+00:00</updated> | |
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> | |
</info> | |
<citation> | |
<layout delimiter="; "> | |
<choose> | |
<if variable="DOI"> | |
<text variable="DOI" prefix="https://doi.org/"/> | |
</if> | |
<else-if variable="URL"> | |
<text variable="URL"/> | |
</else-if> | |
<else> | |
<text variable="title"/> | |
</else> | |
</choose> | |
</layout> | |
</citation> | |
<bibliography> | |
<layout> | |
<choose> | |
<if variable="DOI"> | |
<text variable="DOI" prefix="https://doi.org/"/> | |
</if> | |
<else-if variable="URL"> | |
<text variable="URL"/> | |
</else-if> | |
<else> | |
<text variable="title"/> | |
</else> | |
</choose> | |
</layout> | |
</bibliography> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment