{% extends '@OxHoardBundle//layout.html.twig' %}
{% block title %}Hoard Details {{ hoard.id }}{% endblock %}
{% block stylesheets %}
{{ parent() }}
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" />
<link rel="stylesheet" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
OcreTableUrl = '{{ path('hoard_ocre_table') }}';
getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
sortOptions = {}
sortOptions.Reign = { {% for i in reigns %} '{{i.reign}}': {{i.sortValue}} {% if not loop.last %},{% endif %}{% endfor %} };
sortOptions.Person = { {% for i in persons %} '{{i.person}}{% if i.title %} ({% endif %}{{i.title}}{% if i.title %}){% endif %}': {{i.sortValue}} {% if not loop.last %},{% endif %}{% endfor %} };
{% if is_authorised_to_edit %}
isAuthorisedToEdit = true;
{% else %}
isAuthorisedToEdit = false;
{% endif %}
{% if can_see_location %}
newMapResult = null
$( function() {
newMapResult = newMap("map", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
});
{% endif %}
</script>
<script type="text/javascript" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
<script type="text/javascript" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
{% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
{% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
{% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
<script type="text/javascript" src="/bundles/oxhoard/js/utils.js"></script>
<script type="text/javascript" src="/bundles/oxhoard/js/ocre_table.js"></script>
<script type="text/javascript" src="/bundles/oxhoard/js/coin_summaries_template.js"></script>
<script type="text/javascript" src="/bundles/oxhoard/js/coin_summaries.js"></script>
<script type="text/javascript" src="/bundles/oxhoard/js/coin_visualisations.js"></script>
<script type="text/javascript" src="/bundles/oxhoard/js/show_hoard.js"></script>
{% endblock %}
{% block body -%}
<noscript>
<div class="container" style="text-align:center; font-size:24px;">
<div style="position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;">
<p>This website requires Javascript to be enabled in your browser.</p>
<p>Please follow the instructions to enable Javascript at <a href="http://www.enable-javascript.com/" target="_blank">http://www.enable-javascript.com/</a></p></div></div>
</noscript>
<!-- content -->
<div class="marginTop clearfix"></div>
<div id="content" class="container"> <!-- page content -->
<div class="row">
{% if is_authorised_to_edit %}
<div class="edit-btn"><a href="{{ path('hoard_edit', { 'id': hoard.id }) }}"><h2>Edit this Hoard <span class="fa fa-chevron-right"></span></h2></a></div>
{% endif %}
<h1>{{ hoard.findSpotName }}</h1>
Download CSV:
<a href="{{ path('hoard_csv_download', {'id': hoard.id}) }}"><button class="btn btn-default btn-xs">Hoard</button></a>
<a href="{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}"><button class="btn btn-default btn-xs">Coins</button></a>
{% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
<div class="marginTop clearfix"></div>
<button id="add-mints-to-map" class="btn btn-default" disabled type="button">Circulation visualisation <i class="fa fa-spinner fa-spin"></i></button>
<button id="charts-modal-button" class="btn btn-default" disabled type="button" data-toggle="modal" data-target="#charts-modal">Content visualisation <i class="fa fa-spinner fa-spin"></i></button>
<div class="modal fade" id="charts-modal" tabindex="-1" role="dialog" aria-labelledby="charts-modal-label">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="charts-modal-label">Content visualisation: {{ hoard.findSpotName }}</h4>
</div>
<div class="modal-body">
<div>
<label for="chart-type">Chart type </label>
<select class="dropdown" id="chart-type">
<option value="bar" selected="selected">Bar</option>
<option value="pie">Pie</option>
</select>
<label for="chart-attribute">Coins per </label>
<select class="dropdown" id="chart-attribute">
<option value="Period" selected="selected">Period</option>
<option value="Reign">Reign</option>
<option value="Person">Person</option>
<option value="Mint">Mint</option>
<option value="Denomination">Denomination</option>
<option value="Material">Material</option>
</select>
<span id="chart-stacked-container">
<label for="chart-stacked">Stacked per</label>
<select class="dropdown" id="chart-stacked">
<option value="" selected="selected"> - </option>
<option value="Period" disabled>Period</option>
<option value="Reign">Reign</option>
<option value="Person">Person</option>
<option value="Mint">Mint</option>
<option value="Denomination">Denomination</option>
<option value="Material">Material</option>
</select>
</span>
<span id="chart-reign-container" style="display: none;">
<label for="chart-reign"> for reign </label>
<select class="dropdown" id="chart-reign">
</select>
</span>
</div>
<div id="show-legend" class="hidden">
<fieldset>
<input type="checkbox" id="show-legend-checkbox" checked/>
<label for="show-legend-checkbox">Show legend</label>
</fieldset>
</div>
<div id="chart-sample-size" class="hidden">Size of the sample: <span class="sample"></span></div>
<div style="height: 70vh">
<canvas id="hoard-chart"></canvas>
</div>
<div id="chart-pie-percentages" class="hidden">
<fieldset>
<input type="radio" id="numbers" name="pie-numbers-percentages" value="numbers" checked/>
<label for="numbers">Numbers</label>
<input type="radio" id="percentages" name="pie-numbers-percentages" value="percentages"/>
<label for="percentages">Percentages</label>
</fieldset>
</div>
</div>
<div class="modal-footer">
<div style="text-align: left;"><a href="/content/visualisation-principles" class="visualisation-principles">Visualisation principles</a></div>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="marginTop clearfix"></div>
<div class="col-md-12 marginTop">
<div class="col-md-6">
<!-- Location tabs -->
<div id="tabs" class="tabs">
<ul>
<li><a href="#tab-1">Location</a></li>
</ul>
<div id="tab-1">
<div class="hoardlistview-6col">
{% if can_see_location %}
{% if not hoard.hideCity or is_authenticated %}
{% if hoard.city %}
<div class="datalabel">City</div><div class="data">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
{% endif %}
{% if hoard.address %}
<div class="datalabel">Address</div><div class="data">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
{% endif %}
{% endif %}
{% else %}
<p>
This Hoard's location is hidden
</p>
{% endif %}
{% if not hoard.hideCounty or is_authenticated %}
<div class="datalabel">County</div><div class="data">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
{% endif %}
<div class="datalabel">Region</div><div class="data">{{ hoard.region }}</div>
<div class="datalabel">Country</div><div class="data">
{% for country in hoard.countries %}
{{ country }}{% if not loop.last %}, {% endif %}
{% endfor %}
</div>
{% if can_see_location %}
{% if hoard.ancientPlace %}
<div class="datalabel">Ancient place</div><div class="data">
<a href="{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
{% if hoard.ancientPlace.uri2 %}
<br>
<a href="https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
{% endif %}
</div>
{% endif %}
<div class="datalabel">Lat/Long/Alt</div><div class="data">{{ hoard.findSpotLatitude }} / {{ hoard.findSpotLongitude }} / {{ hoard.findSpotAltitude|round(2) }}{% if hoard.hideLocation %}*{% endif %} <a href="">view</a></div>
{% if hoard.findSpotLocationDetail %}
<div class="datalabel">Location details</div><div class="data">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
{% endif %}
{% if hoard.findSpotComment %}
<div class="datalabel">Find spot comment</div><div class="data">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
{% endif %}
{% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
<div>Fields with * are hidden in public view</div>
{% endif %}
<div id="map" class="map-view marginTop"></div>
<div id="add-mints-to-map-key" class="hidden" style="display: flex; justify-content: center">
<div style="padding: 10px; padding-right: 20px;">
<img src="/bundles/oxhoard/img/precise-map-marker.png"> Findspot
</div>
<div style="padding: 10px;">
<img src="/bundles/oxhoard/img/mint-marker.png"> Mint(s)
</div>
<div style="padding: 10px;">
<img src="/bundles/oxhoard/img/mint-marker-no-quantity.png"> Mint(s) with unspecified number of coins
</div>
</div>
<div id="add-mints-to-map-container" class="hidden">
<label id="add-mints-to-map-label" for="add-mints-to-map">Circulation visualisation <i class="fa fa-spinner fa-spin"></i></label><input type="checkbox" id="add-mints-to-map-checkbox" class="checkbox-aligned"/>
</div>
<div id="circulation-visualisation-report" style="display: none;">
<div class="panel-group" id="circulation-visualisation-accordion" style="display: none;">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#circulation-visualisation-accordion" href="#no-co-ords">
Data not added to the map
</a>
</h4>
</div>
<div id="no-co-ords" class="panel-collapse collapse ui-tabs">
<div class="panel-body"></div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<!-- Hoard Summary tabs -->
<div id="tabs" class="tabs">
<ul>
<li><a href="#tab-1">Information</a></li>
</ul>
{% set total = 0 %}
{% for coin in hoard.coins %}
{% set total = total + coin.quantity %}
{% endfor %}
<div id="tab-1">
<div class="hoardlistview-6col">
<div class="datalabel">ID</div><div class="data">{{ hoard.id }}</div>
<div class="datalabel">Permalink</div>
<div class="data">
<a id="permalink-value" href="{{ permalink }}">{{ permalink }}</a>
<a class="btn btn-default" id="copy-permalink" title="Copy permalink">
<i class="fa fa-copy"></i>
</a>
</div>
<div class="datalabel">Hoard name</div><div class="data">{{ hoard.findSpotName}}</div>
{% if hoard.findSpotOtherNames %}
<div class="datalabel">Alternative names</div><div class="data">{{ hoard.findSpotOtherNames}}</div>
{% endif %}
<div class="datalabel">Data type</div><div class="data">{{ hoard.hoardType}}</div>
<div class="datalabel">Date of discovery (from)</div><div class="data">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
{% if hoard.discoveryYear2 %}
<div class="datalabel">(to)</div><div class="data">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
{% endif %}
<div class="datalabel">Total number of coins</div><div class="data">{{ total }}</div>
{% if hoard.province %}
<div class="datalabel">Roman Province</div><div class="data">{{ hoard.province }}</div>
{% endif %}
<div class="datalabel">Summary</div><div class="data">{{ hoard.comment }}</div>
{% if is_authenticated and hoard.internalNote %}
<div class="datalabel">Internal note</div><div class="data">{{hoard.internalNote}}</div>
{% endif %}
<br>
{% if is_authenticated %}
{% if hoard.validatedByUser %}
<i class="fa fa-check-circle "></i> This hoard has been validated by the contributor
{% else %}
<i class="fa fa-times-circle "></i> This hoard has not yet been validated by the contributor
{% endif %}
{% if is_admin %}
<br>
{% if hoard.validatedByAdmin %}
<i class="fa fa-check-circle "></i> This hoard has been validated by an administrator
{% else %}
<i class="fa fa-times-circle "></i> This hoard has not yet been validated by an administrator
{% endif %}
{% endif %}
<br>
{% if hoard.coinDataValidatedByUser %}
<i class="fa fa-check-circle "></i> The coin level data have been validated by the contributor
{% else %}
<i class="fa fa-times-circle "></i> The coin level data have not yet been validated by the contributor
{% endif %}
{% if is_admin %}
<br>
{% if hoard.coinDataValidatedByAdmin %}
<i class="fa fa-check-circle "></i> The coin level data have been validated by an administrator
{% else %}
<i class="fa fa-times-circle "></i> The coin level data have not yet been validated by an administrator
{% endif %}
{% endif %}
{% else %}
{% if not hoard.coinDataValidatedByUser %}
<i class="fa fa-times-circle "></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
{% endif %}
{% endif %}
</div>
</div>
</div>
</div> <!-- /col-6 -->
</div> <!-- /col-12 -->
</div> <!-- /row -->
<!-- hoard detail tabs -->
<div class="row">
<div class="col-md-12 marginTop">
<div id="tabs3" class="tabs">
<ul>
<li><a href="#tabs3-1">Details</a></li>
<li><a href="#tabs3-9">Coins Summary</a></li>
<li><a href="#tabs3-10">Coins</a></li>
<li><a href="#tabs3-2">Rating</a></li>
<li><a href="#tabs3-3">Archaeological context</a></li>
<li><a href="#tabs3-4">Containers</a></li>
<li><a href="#tabs3-5">Objects</a></li>
<li><a href="#tabs3-6">References</a></li>
<li><a href="#tabs3-7">Reports</a></li>
<li><a href="#tabs3-8">Images</a></li>
<li><a href="#tabs3-11">Credit</a></li>
</ul>
<div id="tabs3-1" class="hoardlistview-6col">
<ul>
{% if hoard.discoveryMethod is not empty %}<li><div class="datalabel">Discovery method</div> <div class="data">{{ hoard.discoveryMethod }}</div></li>{% endif %}
{% if hoard.discoveryDepth is not empty %}<li><div class="datalabel">Discovery depth (m)</div> <div class="data">{{ hoard.discoveryDepth }}</div></li>{% endif %}
{% if hoard.discoveryLandUse is not empty %}<li><div class="datalabel">Land Use</div> <div class="data">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
{% if hoard.owner is not empty %}<li><div class="datalabel">Disposition</div> <div class="data">{{ hoard.owner }}</div></li>{% endif %}
{% if not hoard.hideFinder or is_authenticated %}
{% if hoard.finder is not empty %}<li><div class="datalabel">Finder(s)</div> <div class="data">{{ hoard.finder }}{% if hoard.hideFinder %}*{% endif%}</div></li>{% endif %}
{% endif %}
{% if hoard.discoveryComment is not empty %}<li><div class="datalabel">Comment</div> <div class="data">{{ hoard.discoveryComment }}</div></li>{% endif %}
{% if hoard.closingReign1 is not empty %}<li><div class="datalabel">Closing reign (earliest)</div> <div class="data">{{ hoard.closingReign1 }}</div></li>{% endif %}
{% if hoard.terminalYear1 is not empty %}<li><div class="datalabel">Terminal year (earliest)</div> <div class="data">{{ hoard.terminalYear1 }}</div></li>{% endif %}
{% if hoard.closingReign2 is not empty %}<li><div class="datalabel">Closing reign (latest)</div> <div class="data">{{ hoard.closingReign2 }}</div></li>{% endif %}
{% if hoard.terminalYear2 is not empty %}<li><div class="datalabel">Terminal year (latest)</div> <div class="data">{{ hoard.terminalYear2 }}</div></li>{% endif %}
{% if hoard.openingYear1 is not empty %}<li><div class="datalabel">Opening year (earliest)</div> <div class="data">{{ hoard.openingYear1 }}</div></li>{% endif %}
{% if hoard.openingYear2 is not empty %}<li><div class="datalabel">Opening year (latest)</div> <div class="data">{{ hoard.openingYear2 }}</div></li>{% endif %}
{% if hoard.coinLevelData is not empty %}<li><div class="datalabel">Coin-level data</div> <div class="data">{{ hoard.coinLevelData }}</div></li>{% endif %}
{% if is_admin %}
<li><div class="datalabel">Created by</div> <div class="data">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
<li><div class="datalabel">Last Modified by</div> <div class="data">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
{% endif %}
{% if hoard.hideWhat is not empty and is_authenticated %}
{% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
<li><div class="datalabel">Hide what</div> <div class="data">{{ hoard.hideWhat }}</div></li>
{% if hoard.hideFrom is not empty %}<li><div class="datalabel">Hide from</div> <div class="data">{{ hoard.hideFrom }}</div></li>{% endif %}
{% endif %}
{% endif %}
{% if hoard.hideFinder and is_authenticated %}
<div>Fields with * are hidden in public view</div>
{% endif %}
</ul>
</div>
<div id="tabs3-9" class="coin-summary-container">
{% if show_coins_summary %}
<p>Fetching coin data</p>
<img class="coin-loading-spinner" src="/bundles/oxhoard/img/ajax-loader.gif" alt="Loading" width="128" height="15" />
{% else %}
{% if not hoard.coinDataValidatedByUser %}
<i class="fa fa-times-circle "></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
{% else %}
The coin summary for this hoard has been hidden
{% endif %}
{% endif %}
</div>
<div id="tabs3-10">
{% if show_coins %}
<div class="coin-data-container">
<p>Fetching coin data</p>
<img class="coin-loading-spinner" src="/bundles/oxhoard/img/ajax-loader.gif" alt="Loading" width="128" height="15" />
</div>
{% else %}
{% if not hoard.coinDataValidatedByUser %}
<i class="fa fa-times-circle "></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
{% else %}
The coins for this hoard have been hidden
{% endif %}
{% endif %}
</div>
<div id="tabs3-2" class="hoardlistview-6col">
<ul>
{% if hoard.rating %}
<li><div class="datalabel">Numismatic rating</div> <div class="data">{{ hoard.rating }}</div></li>
{% endif %}
{% if hoard.ratingComment %}
<li><div class="datalabel">Rating comment</div> <div class="data">{{ hoard.ratingComment }}</div></li>
{% endif %}
{% if hoard.contextualRating %}<li><div class="datalabel">Context rating</div> <div class="data">{{ hoard.contextualRating }}</div></li>{% endif %}
{% if hoard.findSpotRating %}<li><div class="datalabel">Findspot rating</div> <div class="data">{{ hoard.findSpotRating }}</div></li>{% endif %}
</ul>
</div>
<div id="tabs3-3" class="hoardlistview-6col">
<ul>
{% if hoard.archaeologyStartYear is not empty %}<li><div class="datalabel">Date of excavation (from)</div> <div class="data">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
{% if hoard.archaeologyEndYear is not empty %}<li><div class="datalabel">Date of excavation (to)</div> <div class="data">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
{% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class="datalabel">Natural features</div> <div class="data">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
{% if hoard.archaeologySiteComment is not empty %}<li><div class="datalabel">Site comment</div> <div class="data">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
{% if hoard.archaeologyContextDate1 is not empty %}<li><div class="datalabel">Date of context (from)</div> <div class="data">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
{% if hoard.archaeologyContextDate2 is not empty %}<li><div class="datalabel">Date of context (to)</div> <div class="data">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
{% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class="datalabel">Associated features</div> <div class="data">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
{% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class="datalabel">Recovery method</div> <div class="data">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
{% if hoard.archaeologySiteContext is not empty %}<li><div class="datalabel">Site class</div> <div class="data">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
{% if hoard.archaeologySiteContextDetails is not empty %}
<div class="datalabel">Context</div><div class="data">
{% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
{{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
{% endfor %}
</div>
{% endif %}
{% if hoard.archaeologyContextNatures is not empty %}
<div class="datalabel">Depositional context</div><div class="data">
{% for archaeologyContextNature in hoard.archaeologyContextNatures %}
{{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
{% endfor %}
</div>
{% endif %}
{% if hoard.archaeologyPeriod is not empty %}<li><div class="datalabel">Period</div> <div class="data">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
{% if hoard.archaeologyEndPeriod is not empty %}<li><div class="datalabel">End period</div> <div class="data">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
</ul>
</div>
<div id="tabs3-4">
{% block containers %}
{% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
{% endembed %}
{% endblock %}
</div>
<div id="tabs3-5">
{% block objects %}
{% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
{% endembed %}
{% endblock %}
</div>
<div id="tabs3-6">
{% if onlineDatabaseReferences is not empty %}
<div class="hoardlistview-6col">
<h2>Permalink in other online databases</h2>
{% for ref in onlineDatabaseReferences %}
{% if ref.reference %}
<div class="datalabel">Reference</div>
<div class="data"><a href="{{ path('reference_show', {'id': ref.reference.id})}}">
{{ref.reference}}
</a></div>
{% endif %}
{% if ref.referenceStr %}
{% if 'http://' in ref.referenceStr %}
<div class="datalabel">Ref</div><div class="data"><a href="{{ ref.referenceStr }}" target="_blank">{{ ref.referenceStr }} <i class="fa fa-external-link"></i></a></div>
{% elseif 'https://' in ref.referenceStr %}
<div class="datalabel">Ref</div><div class="data"><a href="{{ ref.referenceStr }}" target="_blank">{{ ref.referenceStr }} <i class="fa fa-external-link"></i></a></div>
{% else %}
<div class="datalabel">Ref</div><div class="data">{{ ref.referenceStr }}</div>
{% endif %}
{% endif %}
{% if ref.comment %}
<div class="datalabel">Comment</div><div class="data">{{ ref.comment }}</div>
{% endif %}
<br>
{% endfor %}
</div>
{% endif %}
<div class="hoardlistview-6col">
<h2>References</h2>
{% if hoard.referenceString is not empty %}<li><div class="datalabel">Reference (string)</div> <div class="data">{{ hoard.referenceString }}</div></li>{% endif %}
{% for ref in hoardReferences %}
{% if ref.reference %}
<div class="datalabel">Reference</div>
<div class="data"><a href="{{ path('reference_show', {'id': ref.reference.id})}}">
{{ref.reference}}
</a></div>
{% endif %}
{% if ref.referenceStr %}
{% if 'http://' in ref.referenceStr %}
<div class="datalabel">Ref</div><div class="data"><a href="{{ ref.referenceStr }}" target="_blank">{{ ref.referenceStr }} <i class="fa fa-external-link"></i></a></div>
{% elseif 'https://' in ref.referenceStr %}
<div class="datalabel">Ref</div><div class="data"><a href="{{ ref.referenceStr }}" target="_blank">{{ ref.referenceStr }} <i class="fa fa-external-link"></i></a></div>
{% else %}
<div class="datalabel">Ref</div><div class="data">{{ ref.referenceStr }}</div>
{% endif %}
{% endif %}
{% if ref.comment %}
<div class="datalabel">Comment</div><div class="data">{{ ref.comment }}</div>
{% endif %}
<br>
{% endfor %}
</div>
</div>
<div id="tabs3-7">
</div>
<div id="tabs3-8" class="should-initialise-magnify">
{% for key, image in images %}
<div class="row hoard-show-image-container">
<div class="col-md-12 magnify-image-container">
{% if image.hoardImages_id %}
<img id="hoard-image-{{key}}" src="/image/hoard/{{ image.hoardImages_id }}" class="magnify-image-inside"/>
{% else %}
<img id=hoard-image-{{key}} src="/bundles/oxhoard//img/warning.png" />
Image not found
{% endif %}
</div>
<div class="col-md-12">
<div class="hoardimage-metadata hoardlistview-12col">
{% if image.uri1 is defined %}
<div class="datalabel">URI 1</div><div class="data"><a target="_blank" href="{{ image.uri1 }}">{{ image.uri1 }}</a></div>
{% endif %}
{% if image.uri2 is defined %}
<div class="datalabel">URI 2</div><div class="data"><a target="_blank" href="{{ image.uri2 }}">{{ image.uri2 }}</a></div>
{% endif %}
{% if image.comment is defined %}
<div class="datalabel">Comment</div><div class="data">{{ image.comment }}</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
<div id="tabs3-11">
<p>{{ hoard.credit }}</p>
{% if is_admin %}
<a href="{{ path('hoard_revisions', {id: hoard.id}) }}" class="btn btn-default">View Hoard Revisions</a>
{% endif %}
</div>
</div>
</div>
</div>
</div><!-- end page container -->
{% endblock %}