From b9ede0806946a3b988330421aaae2261c13cb2d1 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 15 Nov 2024 13:57:49 +0100 Subject: Fix OA symbol URL when DOI is not OA --- resources/pug/finals/index.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources/pug') 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') -- cgit v1.2.3