Commit 42cc8ac3 authored by Øyvind gjesdal's avatar Øyvind gjesdal
Browse files

change length != 0 to not null

parent 2653d2f3
Pipeline #48866 passed with stages
in 1 minute and 27 seconds
......@@ -36,7 +36,7 @@
<p><strong>ID: <a href="{{lodspk.local.curie}}">{{ first.main.identifier.value }}</a></strong></p>
{% endif %}
{% if first.main.cataloguer|length != 0 %}
{% if not first.main.cataloguer | null %}
<p><i class="fa fa-pencil"></i> Katalogisert av {%for row in models.main%}{%if !forloop.last%}, {%endif%}<strong>{{row.cataloguer.value}}</strong>{%endfor%}
</p>
{%endif%}
......@@ -97,7 +97,7 @@
{% endfor %}
<!-- SUBJECTS -->
{% if models.subjects|length != 0 %}
{% if not models.subjects| null %}
<!--Emner-->
{%for row in models.subjects%}
{%ifchanged row.uri.value%}
......@@ -149,7 +149,7 @@
<!-- PHYSICAL INFORMATION -->
{% if models.physical|length != 0 %}
{% if not models.physical| null %}
<strong>Fysisk beskrivelse</strong>
<ul id="physical-reference">
{% if first.physical.height.value != null && first.physical.width.value != null %}
......@@ -175,7 +175,7 @@
{% endif %}
<!-- COMMISSIONED BY -->
{% if models.commissionedby|length != 0 %}
{% if not models.commissionedby| null %}
<strong>Oppdragsgiver:</strong>
<ul class="ui list">
{% for row in models.commissionedby %}
......@@ -186,7 +186,7 @@
<!-- ALBUM -->
{% if models.albums|length != 0 %}
{% if not models.albums| null %}
<p><i class="fa fa-book"></i> Finnes i albumet<br>
<a href="{{ first.albums.uri.value }}">{% if first.albums.label.value %}{{ first.albums.label.value }}{% else %}{{ first.albums.identifier.value }}{% endif %}</a>
</p>
......@@ -202,7 +202,7 @@
<p>Utgitt av: <br><a href="{{row.uri.value}}">{{row.label.value}}</a> {% if first.main.isbn %}<br><small>ISBN: {{first.main.isbn.value}}</small>{% endif %}</p>
{% endfor %}
{% if models.referencedby|length != 0 %}
{% if not models.referencedby|null %}
<!-- REFERENCED BY -->
<p>Referanse:</p>
<ul>
......@@ -215,7 +215,7 @@
{% endif %}
<!-- EIER-->
{% if models.owner|length != 0 %}
{% if not models.owner|length | null %}
<p>
<i class="fa fa-archive"></i> Eier: {%for row in models.owner%}{%if !forloop.last%}, {%endif%}<a href="{{row.uri.value}}">{{row.label.value}}</a>{%endfor%}
</p>
......@@ -226,13 +226,13 @@
<div class="twelve wide column lightgrey">
{% if not models.events| null || not models.collections | null %}
<!-- COLLECTIONS -->
{% if models.collections|length != 0 %}
{% if not models.collections|length | null %}
<span class="header">Knyttet til følgende samlinger:</span>
{% include "../../includes/collections.inc" %}
<br />
{% endif %}
<!-- EVENTS -->
{% if models.events|length != 0 %}
{% if not models.events| null %}
<span class="header">Knyttet til følgende hendelser:</span>
{%include "../../includes/events.inc"%}
<br />
......@@ -242,7 +242,7 @@
<div class="sixteen wide column">
<!-- DEPICTED -->
{% if models.depicted|length != 0 %}
{% if not models.depicted| null %}
<div class="row">
<div class="column">
{%include "../../includes/depicted.inc"%}
......@@ -251,7 +251,7 @@
{% endif %}
<!-- VERSIONS -->
{% if models.hasversion|length != 0 %}
{% if not models.hasversion|length | null %}
<div class="row">
<div class="column">
<span class="header">Versjoner</span>
......@@ -272,7 +272,7 @@
{% endif %}
<!-- RELATION -->
{% if models.relation|length != 0 %}
{% if not models.relation| null %}
<div class="row">
<div class="column">
<span class="header">Relaterte objekt</span>
......@@ -294,7 +294,7 @@
{% endif %}
<!-- HASPART -->
{% if models.haspart|length != 0 %}
{% if not models.haspart| null %}
<div class="row">
<div class="column">
<span class="header">Inneholder deler:</span>
......@@ -318,7 +318,7 @@
<!-- PLACES/MAP -->
<div class="row">
<div style="width: 100%;" class="column">
{% if models.places|length != 0 %}
{% if not models.places| null %}
{% include "../../includes/place.inc" %}
{% endif %}
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment