Commit 19d4ef2f authored by Øyvind gjesdal's avatar Øyvind gjesdal
Browse files

omskriving includes

parent 6f34d32f
Pipeline #48877 passed with stages
in 1 minute and 45 seconds
{%if models.po|length != 0 %}
{%if not models.po| null %}
<div class="ui segment">
<div class="header">
Denne siden har disse egenskapene
......
......@@ -10,7 +10,7 @@
<img data-src="holder.js/200x100">
</a>{% endif %}
<div class="middle aligned content">
<a class="header" href="{{row.uri.value}}">{% if row.title && row.title.value != "" %}{{row.title.value}}{% else %}{% if row.label && row.label.value != "" %}{{row.label.value}}{% else %} {{row.identifier.value}}{%endif%}{%endif%}</a>
<a class="header" href="{{row.uri.value}}">{% if row.title && not row.title.value | null %}{{row.title.value}}{% else %}{% if row.label && not row.label.value | null %}{{row.label.value}}{% else %} {{row.identifier.value}}{%endif%}{%endif%}</a>
<!--{% if row.description %}
<div class="description">
<p>{{row.description.value|truncatewords:25}}</p>
......
{% if models.dzi|length != 0 %}
{% if not models.dzi| null %}
<!-- Contains the OpenSeadragon viewer -->
<div class="ui top attached tab segment no-padding active" data-tab="dzi">
<div id="dzi1" style="height:50rem; background-color: black;"></div>
</div>
{% endif %}
{% if models.digitalresources|length != 0 %}
<div data-tab="jpeg" class="{% if models.dzi|length == 0 %}active{% endif %} ui top attached tab segment no-padding">
{% if not models.digitalresources| null %}
<div data-tab="jpeg" class="{% if models.dzi| null %}active{% endif %} ui top attached tab segment no-padding">
<!-- fotorama.css & fotorama.js. -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.3/fotorama.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.3/fotorama.js"></script>
<div class="fotorama">
{% for row in models.digitalresources %}
{% for row in models.digitalresources %}
<a href="{{row.imgSM.value}}" data-full="{{row.imgMD.value}}"></a>
{% endfor %}
</div>
......@@ -22,10 +22,10 @@
</div>
{% endif %}
{% if models.dzi|length != 0 && models.digitalresources|length != 0 %}
{% if not models.dzi| null && not models.digitalresources| null %}
<div class="ui bottom attached tabular menu dr-tab">
<a class="item {% if models.dzi|length != 0 %}active{% else %}disabled{% endif %}" data-tab="dzi">Zoom</a>
<a class="item {% if models.dzi|length == 0 %}active{% endif %}" data-tab="jpeg">Jpeg</a>
<a class="item {% if not models.dzi| null 0 %}active{% else %}disabled{% endif %}" data-tab="dzi">Zoom</a>
<a class="item {% if models.dzi| null %}active{% endif %}" data-tab="jpeg">Jpeg</a>
<div id="dzi-control" class="right menu">
......
......@@ -5,7 +5,7 @@
<button id="full-page" class="ui button" alt="Fullskjermvisning av og på"><i id="fullPage" class="fa fa-expand"></i></button>
<button id="zoom-out" class="ui button"><i class="fa fa-search-minus"></i></button>
<button id="zoom-in" class="ui button"><i class="fa fa-search-plus"></i></button>
{% if models.dzi|length > 1 %}
{% if not models.dzi|null %}
<button id="previous" class="ui button"><i class="fa fa-arrow-left"></i> forrige</button>
<button>gå til side &nbsp;<input style="width: 55px;" type="number" id="page" value="1"/> av <span id="tileSourcesLength"></span></button>
<button id="next" class="ui button">neste <i class="fa fa-arrow-right"></i></button>
......@@ -19,7 +19,7 @@
id: "dzi1",
prefixUrl: "{{lodspk.home}}vjs/openseadragon/images/",
tileSources: [
{% for row in models.dzi %}{%if !forloop.first && models.dzi|length > 1 %},{%endif%}
{% for row in models.dzi %}{%if !forloop.first && not models.dzi| null %},{%endif%}
"{{ row.dziUri.value }}"{% endfor %}
],
preserveViewport: false,
......
......@@ -11,7 +11,7 @@
</a>
{% endif %}
<div class="middle aligned content">
<a class="header" href="{{row.uri.value}}">{% if row.title && row.title.value != "" %}{{row.title.value}}{% else %}{% if row.label && row.label.value != "" %}{{row.label.value}}{% else %} {{row.identifier.value}}{%endif%}{%endif%}</a>
<a class="header" href="{{row.uri.value}}">{% if row.title && not row.title.value null %}{{row.title.value}}{% else %}{% if row.label && not row.label.value | null %}{{row.label.value}}{% else %} {{row.identifier.value}}{%endif%}{%endif%}</a>
<!-- {% if row.description %}
<div class="description">
<p>{{row.description.value|truncatewords:25}}</p>
......
<meta charset="utf-8">
<title>{{lodspk.title}} {% if first.main.title.value != "" %} - {{first.main.title.value}}{% else %} - {% if first.main.label.value != "" %}{{first.main.label.value}}{%endif%}{%endif%}</title>
<title>{{lodspk.title}} {% if not first.main.title.value | null %} - {{first.main.title.value}}{% else %} - {% if not first.main.label.value | null %}{{first.main.label.value}}{%endif%}{%endif%}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="//img/favicon-adm.ico" type="image/x-icon">
<link rel="icon" href="//img/favicon-adm.ico" type="image/x-icon">
......
<div class="ui horizontal list">
{% if models.sender|length != 0 %}
{% if not models.sender| null %}
{% for row in models.sender %}
<div class="item"><a href="{{row.uri.value}}">{{ row.label.value }}</a></div>
{% endfor %}
......@@ -9,7 +9,7 @@
<div class="item"><i class="fa fa-arrow-right"></i> <i class="fa fa-envelope"></i></div>
{% if models.recipient|length != 0 %}
{% if not models.recipient| null %}
{% for row in models.recipient %}
<div class="item"><a href="{{row.uri.value}}">{{ row.label.value }}</a></div>
{% endfor %}
......
......@@ -10,9 +10,9 @@
</script>
<ul class="list-inline social">
<li><a href='https://twitter.com/intent/tweet?text={% if first.main.title != "" %}{{first.main.title.value}}{% else %}{% if first.main.label != "" %}{{first.main.label.value}}{%endif%}{%endif%} Fra marcus.uib.no&url={{lodspk.local.value}}'><i class="fa fa-twitter fa-2x"></i></a></li>
<li><a href='https://twitter.com/intent/tweet?text={% if not first.main.title | null %}{{first.main.title.value}}{% else %}{% if not first.main.label | null %}{{first.main.label.value}}{%endif%}{%endif%} Fra marcus.uib.no&url={{lodspk.local.value}}'><i class="fa fa-twitter fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u={{lodspk.local.value}}" target="_blank"><i class="fa fa-facebook-square fa-2x"></i></a></li>
<li><a href="http://www.pinterest.com/pin/create/button/?url={{lodspk.local.value}}&media={% for row in models.photograph %}{% if 'lg.jpg' in row.img.value %}{{row.img.value}}{% endif %}{% endfor %}&description={% if first.main.title != '' %}{{first.main.title.value}}{% else %}{% if first.main.label != '' %}{{first.main.label.value}}{%endif%}{%endif%} Fra marcus.uib.no" data-pin-do="buttonPin" data-pin-height="16"></i></a></li>
<li><a href="http://www.pinterest.com/pin/create/button/?url={{lodspk.local.value}}&media={% for row in models.photograph %}{% if 'lg.jpg' in row.img.value %}{{row.img.value}}{% endif %}{% endfor %}&description={% if first.main.title != '' %}{{first.main.title.value}}{% else %}{% if not first.main.label | null %}{{first.main.label.value}}{%endif%}{%endif%} Fra marcus.uib.no" data-pin-do="buttonPin" data-pin-height="16"></i></a></li>
</ul>
......
......@@ -13,17 +13,17 @@
<p><i class="fa fa-stethoscope"></i><a data-toggle="collapse" data-target="#physical-reference"> Fysisk beskrivelse <span class="caret"></span></a></p>
<ul id="physical-reference" class="collapse">
{% if first.physical.height.value != null && first.physical.width.value != null %}
{% if not first.physical.height.value | null && not first.physical.width.value | null %}
<li><i class="fa fa-arrows-v"></i> {{ first.physical.height.value }}</li>
<li><i class="fa fa-arrows-h"></i> {{ first.physical.width.value }}</li>
{% endif %}
{% if first.main.pages.value != null %}
{% if not first.main.pages.value | null %}
<li>{{ first.main.pages.value }} sider</li>
{% endif %}
{% if first.physical.physicalCondition.value != null %}
{% if not first.physical.physicalCondition.value | null %}
<li><i>{{ first.physical.physicalCondition.value }}</i></li>
{% endif %}
{% if first.physical.physicalDescription.value != null %}
{% if not first.physical.physicalDescription.value | null %}
<li>{{ first.physical.physicalDescription.value }}</li>
{% endif %}
</ul>
......@@ -51,7 +51,7 @@
<script>$('[data-toggle="tooltip"]').tooltip({'placement': 'top'});</script>
{% endif %}
<!-- PDF DOWNLOAD -->
{% if models.pdf|length != 0 %}
{% if not models.pdf| null %}
<li><small>Last ned</small><br><i class="fa fa-download"></i> <a href="{{first.pdf.uri.value }}">PDF</a></li>
{% endif %}
</ul>
......
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