normalise isnis

Some isnis are imported with spaces and some not.
This normalises them for comparison and creating URLs
This commit is contained in:
Hugh Rundle
2021-11-01 15:48:52 +11:00
parent 55ac80cc16
commit 775470a852
3 changed files with 14 additions and 3 deletions

View File

@ -2,6 +2,7 @@
{% load i18n %}
{% load markdown %}
{% load humanize %}
{% load utilities %}
{% block title %}{{ author.name }}{% endblock %}
@ -65,7 +66,7 @@
{% if author.isni %}
<p class="my-1">
<a itemprop="sameAs" href="https://isni.org/isni/{{ author.isni }}" rel="noopener" target="_blank">
<a itemprop="sameAs" href="https://isni.org/isni/{{ author.isni|remove_spaces }}" rel="noopener" target="_blank">
{% trans "View ISNI record" %}
</a>
</p>