summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
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 %}