aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-21 22:25:21 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-21 22:25:21 -0800
commit39fc53dd8de38f5b6a666e6eb9e0b9a0e210946c (patch)
tree1a3a0540f750a669488087edaae9039b7d039202 /fatcat_scholar/templates/search_macros.html
parent45000e5d24cd7775980d7c30632b89fdc4eb34ff (diff)
downloadfatcat-scholar-39fc53dd8de38f5b6a666e6eb9e0b9a0e210946c.tar.gz
fatcat-scholar-39fc53dd8de38f5b6a666e6eb9e0b9a0e210946c.zip
doi domain display: handle /help page
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r--fatcat_scholar/templates/search_macros.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 25ba7f5..2f8ddc7 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -108,7 +108,12 @@
{% else %}
<i class="external alternate icon"></i>
{% endif %}
- {{ paper._obj.biblio.doi_link_domain("Publisher / doi.org") }}
+ {% set default_domain = "Publisher / doi.org" %}
+ {% if paper._obj and paper._obj.biblio %}
+ {{ paper._obj.biblio.doi_link_domain(default_domain) }}
+ {% else %}
+ {{ default_domain }}
+ {% endif %}
</button>
</a>
{% endif %}