diff options
author | Camil Staps | 2024-11-15 13:57:49 +0100 |
---|---|---|
committer | Camil Staps | 2024-11-15 13:57:49 +0100 |
commit | b9ede0806946a3b988330421aaae2261c13cb2d1 (patch) | |
tree | 4dfde4896f80618c3614d5ed45e1e63732ffdb85 /resources/pug/finals | |
parent | Update publication timeline details for kī and reduplication (diff) |
Fix OA symbol URL when DOI is not OA
Diffstat (limited to 'resources/pug/finals')
-rw-r--r-- | resources/pug/finals/index.pug | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/pug/finals/index.pug b/resources/pug/finals/index.pug index fd56a77..4e4c1e5 100644 --- a/resources/pug/finals/index.pug +++ b/resources/pug/finals/index.pug @@ -74,10 +74,10 @@ block content mixin pub(year, title) p if attributes.oa - if attributes.doi - - var oaurl = 'https://doi.org/'+attributes.doi - else if attributes.url + if attributes.url - var oaurl = attributes.url + else if attributes.doi + - var oaurl = 'https://doi.org/'+attributes.doi else - throw 'pub: oa set but no doi or url' a.oa(href!=oaurl, target='_blank') |