src/Ox/HoardBundle/Resources/views/hoard/show.html.twig line 1

Open in your IDE?
  1. {% extends '@OxHoardBundle//layout.html.twig' %}
  2. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js"></script>
  6.     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" />
  7.     <link rel="stylesheet" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  8. {% endblock %}
  9. {% block javascripts %}
  10.     {{ parent() }}
  11.     <script>
  12.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  13.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  14.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  15.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  16.     sortOptions = {}
  17.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  18.     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 %} };
  19.     {% if is_authorised_to_edit %}
  20.     isAuthorisedToEdit = true;
  21.     {% else %}
  22.     isAuthorisedToEdit = false;
  23.     {% endif %}
  24.     {% if can_see_location %}
  25.         newMapResult = null
  26.         $( function() {
  27.             newMapResult = newMap("map", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  28.         });
  29.     {% endif %}
  30.     </script>
  31.     <script type="text/javascript" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  32.     <script type="text/javascript" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  33.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  34.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  35.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  36.     {% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  37.     <script type="text/javascript" src="/bundles/oxhoard/js/utils.js"></script>
  38.     <script type="text/javascript" src="/bundles/oxhoard/js/ocre_table.js"></script>
  39.     <script type="text/javascript" src="/bundles/oxhoard/js/coin_summaries_template.js"></script>
  40.     <script type="text/javascript" src="/bundles/oxhoard/js/coin_summaries.js"></script>
  41.     <script type="text/javascript" src="/bundles/oxhoard/js/coin_visualisations.js"></script>
  42.     <script type="text/javascript" src="/bundles/oxhoard/js/show_hoard.js"></script>
  43. {% endblock %}
  44. {% block body -%}
  45.     <noscript>
  46.         <div class="container" style="text-align:center; font-size:24px;">
  47.             <div style="position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;">
  48.                 <p>This website requires Javascript to be enabled in your browser.</p>
  49.                 <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>
  50.     </noscript>
  51.     <!-- content -->
  52.     <div class="marginTop clearfix"></div>
  53.     <div id="content" class="container"> <!-- page content -->
  54.         <div class="row">
  55.             {% if is_authorised_to_edit %}
  56.                 <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>
  57.             {% endif %}
  58.             
  59.             <h1>{{ hoard.findSpotName }}</h1>
  60.             Download CSV:
  61.             <a href="{{ path('hoard_csv_download', {'id': hoard.id}) }}"><button class="btn btn-default btn-xs">Hoard</button></a>
  62.             <a href="{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}"><button class="btn btn-default btn-xs">Coins</button></a>
  63.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  64.                     <div class="marginTop clearfix"></div>
  65.                     <button id="add-mints-to-map" class="btn btn-default" disabled type="button">Circulation visualisation <i class="fa fa-spinner fa-spin"></i></button>
  66.                     <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>
  67.                     <div class="modal fade" id="charts-modal" tabindex="-1" role="dialog" aria-labelledby="charts-modal-label">
  68.                         <div class="modal-dialog modal-lg" role="document">
  69.                             <div class="modal-content">
  70.                                 <div class="modal-header">
  71.                                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  72.                                     <h4 class="modal-title" id="charts-modal-label">Content visualisation: {{ hoard.findSpotName }}</h4>
  73.                                 </div>
  74.                                 <div class="modal-body">
  75.                                     <div>
  76.                                         <label for="chart-type">Chart type </label>
  77.                                         <select class="dropdown" id="chart-type">
  78.                                             <option value="bar" selected="selected">Bar</option>
  79.                                             <option value="pie">Pie</option>
  80.                                         </select>
  81.                                         <label for="chart-attribute">Coins per </label>
  82.                                         <select class="dropdown" id="chart-attribute">
  83.                                             <option value="Period" selected="selected">Period</option>
  84.                                             <option value="Reign">Reign</option>
  85.                                             <option value="Person">Person</option>
  86.                                             <option value="Mint">Mint</option>
  87.                                             <option value="Denomination">Denomination</option>
  88.                                             <option value="Material">Material</option>
  89.                                         </select>
  90.                                         <span id="chart-stacked-container">
  91.                                         <label for="chart-stacked">Stacked per</label>
  92.                                         <select class="dropdown" id="chart-stacked">
  93.                                             <option value="" selected="selected"> - </option>
  94.                                             <option value="Period" disabled>Period</option>
  95.                                             <option value="Reign">Reign</option>
  96.                                             <option value="Person">Person</option>
  97.                                             <option value="Mint">Mint</option>
  98.                                             <option value="Denomination">Denomination</option>
  99.                                             <option value="Material">Material</option>
  100.                                         </select>
  101.                                         </span>
  102.                                         <span id="chart-reign-container" style="display: none;">
  103.                                             <label for="chart-reign"> for reign </label>
  104.                                             <select class="dropdown" id="chart-reign">
  105.                                             </select>
  106.                                         </span>
  107.                                     </div>
  108.                                     <div id="show-legend" class="hidden">
  109.                                         <fieldset>
  110.                                             <input type="checkbox" id="show-legend-checkbox" checked/>
  111.                                             <label for="show-legend-checkbox">Show legend</label>
  112.                                         </fieldset>
  113.                                     </div>
  114.                                     <div id="chart-sample-size" class="hidden">Size of the sample: <span class="sample"></span></div>
  115.                                     <div style="height: 70vh">
  116.                                         <canvas id="hoard-chart"></canvas>
  117.                                     </div>
  118.                                     <div id="chart-pie-percentages" class="hidden">
  119.                                         <fieldset>
  120.                                             <input type="radio" id="numbers" name="pie-numbers-percentages" value="numbers" checked/>
  121.                                             <label for="numbers">Numbers</label>
  122.                                             <input type="radio" id="percentages" name="pie-numbers-percentages" value="percentages"/>
  123.                                             <label for="percentages">Percentages</label>
  124.                                         </fieldset>
  125.                                     </div>
  126.                                 </div>
  127.                                 <div class="modal-footer">
  128.                                     <div style="text-align: left;"><a href="/content/visualisation-principles" class="visualisation-principles">Visualisation principles</a></div>
  129.                                     <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  130.                                 </div>
  131.                             </div>
  132.                         </div>
  133.                     </div>
  134.                     <div class="marginTop clearfix"></div>
  135.             <div class="col-md-12 marginTop">
  136.                 <div class="col-md-6">
  137.                     <!-- Location tabs -->
  138.                     <div id="tabs" class="tabs">
  139.                         <ul>
  140.                             <li><a href="#tab-1">Location</a></li>
  141.                         </ul>
  142.                         <div id="tab-1">
  143.                             <div class="hoardlistview-6col">
  144.                                 {% if can_see_location %}
  145.                                 {% if not hoard.hideCity or is_authenticated %}
  146.                                 {% if hoard.city %}
  147.                                 <div class="datalabel">City</div><div class="data">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  148.                                 {% endif %}
  149.                                 {% if hoard.address %}
  150.                                 <div class="datalabel">Address</div><div class="data">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  151.                                 {% endif %}
  152.                                 {% endif %}
  153.                                 {% else %}
  154.                                 <p>
  155.                                     This Hoard's location is hidden
  156.                                 </p>
  157.                                 {% endif %}
  158.                                 {% if not hoard.hideCounty or is_authenticated %}
  159.                                 <div class="datalabel">County</div><div class="data">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  160.                                 {% endif %}
  161.                                 <div class="datalabel">Region</div><div class="data">{{ hoard.region }}</div>
  162.                                 <div class="datalabel">Country</div><div class="data">
  163.                                     {% for country in hoard.countries %}
  164.                                       {{ country }}{% if not loop.last %}, {% endif %}
  165.                                     {% endfor %}
  166.                                 </div>
  167.                                 {% if can_see_location %}
  168.                                 {% if hoard.ancientPlace %}
  169.                                     <div class="datalabel">Ancient place</div><div class="data">
  170.                                         <a href="{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  171.                                         {% if hoard.ancientPlace.uri2 %}
  172.                                         <br>
  173.                                         <a href="https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  174.                                         {% endif %}
  175.                                     </div>
  176.                                 {% endif %}
  177.                                 <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>
  178.                                 {% if hoard.findSpotLocationDetail %}
  179.                                 <div class="datalabel">Location details</div><div class="data">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  180.                                 {% endif %}
  181.                                 {% if hoard.findSpotComment %}
  182.                                     <div class="datalabel">Find spot comment</div><div class="data">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  183.                                 {% endif %}
  184.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  185.                                 <div>Fields with * are hidden in public view</div>
  186.                                 {% endif %}
  187.                                 <div id="map" class="map-view marginTop"></div>
  188.                                 <div id="add-mints-to-map-key" class="hidden" style="display: flex; justify-content: center">
  189.                                     <div style="padding: 10px; padding-right: 20px;">
  190.                                         <img src="/bundles/oxhoard/img/precise-map-marker.png"> Findspot
  191.                                     </div>
  192.                                     <div style="padding: 10px;">
  193.                                         <img src="/bundles/oxhoard/img/mint-marker.png"> Mint(s) 
  194.                                     </div>
  195.                                     <div style="padding: 10px;">
  196.                                         <img src="/bundles/oxhoard/img/mint-marker-no-quantity.png"> Mint(s) with unspecified number of coins 
  197.                                     </div>
  198.                                 </div>
  199.                                 <div id="add-mints-to-map-container" class="hidden">
  200.                                     <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"/>
  201.                                 </div>
  202.                                 <div id="circulation-visualisation-report" style="display: none;">
  203.                                     <div class="panel-group" id="circulation-visualisation-accordion" style="display: none;">
  204.                                         <div class="panel panel-default">
  205.                                             <div class="panel-heading">
  206.                                                 <h4 class="panel-title">
  207.                                                     <a data-toggle="collapse" data-parent="#circulation-visualisation-accordion" href="#no-co-ords">
  208.                                                         Data not added to the map
  209.                                                     </a>
  210.                                                 </h4>
  211.                                             </div>
  212.                                             <div id="no-co-ords" class="panel-collapse collapse ui-tabs">
  213.                                                 <div class="panel-body"></div>
  214.                                             </div>
  215.                                         </div>
  216.                                     </div>
  217.                                 </div>
  218.                                 {% endif %}
  219.                             </div>
  220.                         </div>
  221.                     </div>
  222.                 </div>
  223.                 <div class="col-md-6">
  224.                     <!-- Hoard Summary tabs -->
  225.                     <div id="tabs" class="tabs">
  226.                         <ul>
  227.                             <li><a href="#tab-1">Information</a></li>
  228.                         </ul>
  229.                         {% set total = 0 %}
  230.                         {% for coin in hoard.coins %}
  231.                             {% set total = total + coin.quantity %}
  232.                         {% endfor %}
  233.                         <div id="tab-1">
  234.                             <div class="hoardlistview-6col">
  235.                                 <div class="datalabel">ID</div><div class="data">{{ hoard.id }}</div>
  236.                                 <div class="datalabel">Permalink</div>
  237.                                 <div class="data">
  238.                                     <a id="permalink-value" href="{{ permalink }}">{{ permalink }}</a>
  239.                                     <a class="btn btn-default" id="copy-permalink" title="Copy permalink">
  240.                                         <i class="fa fa-copy"></i>
  241.                                     </a>
  242.                                 </div>
  243.                                 <div class="datalabel">Hoard name</div><div class="data">{{ hoard.findSpotName}}</div>
  244.                                 {% if hoard.findSpotOtherNames %}
  245.                                 <div class="datalabel">Alternative names</div><div class="data">{{ hoard.findSpotOtherNames}}</div>
  246.                                 {%  endif %}
  247.                                 <div class="datalabel">Data type</div><div class="data">{{ hoard.hoardType}}</div>
  248.                                 <div class="datalabel">Date of discovery (from)</div><div class="data">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  249.                                 {% if hoard.discoveryYear2 %}
  250.                                 <div class="datalabel">(to)</div><div class="data">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  251.                                 {% endif %}
  252.                                 <div class="datalabel">Total number of coins</div><div class="data">{{ total }}</div>
  253.                                 {% if hoard.province %}
  254.                                     <div class="datalabel">Roman Province</div><div class="data">{{ hoard.province }}</div>
  255.                                 {% endif %}
  256.                                 <div class="datalabel">Summary</div><div class="data">{{ hoard.comment }}</div>
  257.                                 {% if is_authenticated and hoard.internalNote %}
  258.                                 <div class="datalabel">Internal note</div><div class="data">{{hoard.internalNote}}</div>
  259.                                 {% endif %}
  260.                                 <br>
  261.                                 {% if is_authenticated %}
  262.                                     {% if hoard.validatedByUser %}
  263.                                         <i class="fa fa-check-circle "></i> This hoard has been validated by the contributor
  264.                                     {% else %}
  265.                                         <i class="fa fa-times-circle "></i> This hoard has not yet been validated by the contributor
  266.                                     {% endif %}
  267.                                     {% if is_admin %}
  268.                                         <br>
  269.                                         {% if hoard.validatedByAdmin %}
  270.                                             <i class="fa fa-check-circle "></i> This hoard has been validated by an administrator
  271.                                         {% else %}
  272.                                             <i class="fa fa-times-circle "></i> This hoard has not yet been validated by an administrator
  273.                                         {% endif %}
  274.                                     {% endif %}
  275.                                     <br>
  276.                                     {% if hoard.coinDataValidatedByUser %}
  277.                                         <i class="fa fa-check-circle "></i> The coin level data have been validated by the contributor
  278.                                     {% else %}
  279.                                         <i class="fa fa-times-circle "></i> The coin level data have not yet been validated by the contributor
  280.                                     {% endif %}
  281.                                     {% if is_admin %}
  282.                                         <br>
  283.                                         {% if hoard.coinDataValidatedByAdmin %}
  284.                                             <i class="fa fa-check-circle "></i> The coin level data have been validated by an administrator
  285.                                         {% else %}
  286.                                             <i class="fa fa-times-circle "></i> The coin level data have not yet been validated by an administrator
  287.                                         {% endif %}
  288.                                     {% endif %}
  289.                                 {% else %}
  290.                                     {% if not hoard.coinDataValidatedByUser %}
  291.                                         <i class="fa fa-times-circle "></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  292.                                     {% endif %}
  293.                                 {% endif %}
  294.                             </div>
  295.                         </div>
  296.                     </div>
  297.                 </div>  <!-- /col-6 -->
  298.             </div>  <!-- /col-12 -->
  299.         </div> <!-- /row -->
  300.         <!-- hoard detail tabs -->
  301.         <div class="row">
  302.             <div class="col-md-12 marginTop">
  303.                 <div id="tabs3" class="tabs">
  304.                     <ul>
  305.                         <li><a href="#tabs3-1">Details</a></li>
  306.                         <li><a href="#tabs3-9">Coins Summary</a></li>
  307.                         <li><a href="#tabs3-10">Coins</a></li>
  308.                         <li><a href="#tabs3-2">Rating</a></li>
  309.                         <li><a href="#tabs3-3">Archaeological context</a></li>
  310.                         <li><a href="#tabs3-4">Containers</a></li>
  311.                         <li><a href="#tabs3-5">Objects</a></li>
  312.                         <li><a href="#tabs3-6">References</a></li>
  313.                         <li><a href="#tabs3-7">Reports</a></li>
  314.                         <li><a href="#tabs3-8">Images</a></li>
  315.                         <li><a href="#tabs3-11">Credit</a></li>
  316.                     </ul>
  317.                     <div id="tabs3-1" class="hoardlistview-6col">
  318.                         <ul>
  319.                             {% if hoard.discoveryMethod is not empty %}<li><div class="datalabel">Discovery method</div> <div class="data">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  320.                             {% if hoard.discoveryDepth is not empty %}<li><div class="datalabel">Discovery depth (m)</div> <div class="data">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  321.                             {% if hoard.discoveryLandUse is not empty %}<li><div class="datalabel">Land Use</div> <div class="data">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  322.                             {% if hoard.owner is not empty %}<li><div class="datalabel">Disposition</div> <div class="data">{{ hoard.owner }}</div></li>{% endif %}
  323.                             {% if not hoard.hideFinder or is_authenticated %}
  324.                                 {% 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 %}
  325.                             {% endif %}
  326.                             {% if hoard.discoveryComment is not empty %}<li><div class="datalabel">Comment</div> <div class="data">{{ hoard.discoveryComment }}</div></li>{% endif %}
  327.                             {% if hoard.closingReign1 is not empty %}<li><div class="datalabel">Closing reign (earliest)</div> <div class="data">{{ hoard.closingReign1 }}</div></li>{% endif %}
  328.                             {% if hoard.terminalYear1 is not empty %}<li><div class="datalabel">Terminal year (earliest)</div> <div class="data">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  329.                             {% if hoard.closingReign2 is not empty %}<li><div class="datalabel">Closing reign (latest)</div> <div class="data">{{ hoard.closingReign2 }}</div></li>{% endif %}
  330.                             {% if hoard.terminalYear2 is not empty %}<li><div class="datalabel">Terminal year (latest)</div> <div class="data">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  331.                             {% if hoard.openingYear1 is not empty %}<li><div class="datalabel">Opening year (earliest)</div> <div class="data">{{ hoard.openingYear1 }}</div></li>{% endif %}
  332.                             {% if hoard.openingYear2 is not empty %}<li><div class="datalabel">Opening year (latest)</div> <div class="data">{{ hoard.openingYear2 }}</div></li>{% endif %}
  333.                             {% if hoard.coinLevelData is not empty %}<li><div class="datalabel">Coin-level data</div> <div class="data">{{ hoard.coinLevelData }}</div></li>{% endif %}
  334.                         
  335.                             {% if is_admin %}
  336.                                 <li><div class="datalabel">Created by</div> <div class="data">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  337.                                 <li><div class="datalabel">Last Modified by</div> <div class="data">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  338.                             {% endif %}
  339.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  340.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  341.                                     <li><div class="datalabel">Hide what</div> <div class="data">{{ hoard.hideWhat }}</div></li>
  342.                                     {% if hoard.hideFrom is not empty %}<li><div class="datalabel">Hide from</div> <div class="data">{{ hoard.hideFrom }}</div></li>{% endif %}
  343.                                 {% endif %}
  344.                             {% endif %}
  345.                             {% if hoard.hideFinder and is_authenticated %}
  346.                             <div>Fields with * are hidden in public view</div>
  347.                             {% endif %}
  348.                         </ul>
  349.                     </div>
  350.                     <div id="tabs3-9" class="coin-summary-container">
  351.                         {% if show_coins_summary %}
  352.                             <p>Fetching coin data</p>
  353.                             <img class="coin-loading-spinner" src="/bundles/oxhoard/img/ajax-loader.gif" alt="Loading" width="128" height="15" />
  354.                         {% else %}
  355.                             {% if not hoard.coinDataValidatedByUser %}
  356.                                 <i class="fa fa-times-circle "></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  357.                             {% else %}
  358.                                 The coin summary for this hoard has been hidden
  359.                             {% endif %}
  360.                         {% endif %}
  361.                     </div>
  362.                     <div id="tabs3-10">
  363.                         {% if show_coins %}
  364.                             <div class="coin-data-container">
  365.                                 <p>Fetching coin data</p>
  366.                                 <img class="coin-loading-spinner" src="/bundles/oxhoard/img/ajax-loader.gif" alt="Loading" width="128" height="15" />
  367.                             </div>
  368.                         {% else %}
  369.                             {% if not hoard.coinDataValidatedByUser %}
  370.                                 <i class="fa fa-times-circle "></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  371.                             {% else %}
  372.                                 The coins for this hoard have been hidden
  373.                             {% endif %}
  374.                         {% endif %}
  375.                     </div>
  376.                     <div id="tabs3-2" class="hoardlistview-6col">
  377.                         <ul>
  378.                             {% if hoard.rating %}
  379.                                 <li><div class="datalabel">Numismatic rating</div> <div class="data">{{ hoard.rating }}</div></li>
  380.                             {% endif %}
  381.                             {% if hoard.ratingComment %}
  382.                                 <li><div class="datalabel">Rating comment</div> <div class="data">{{ hoard.ratingComment }}</div></li>
  383.                             {% endif %}
  384.                             {% if hoard.contextualRating %}<li><div class="datalabel">Context rating</div> <div class="data">{{ hoard.contextualRating }}</div></li>{% endif %}
  385.                             {% if hoard.findSpotRating %}<li><div class="datalabel">Findspot rating</div> <div class="data">{{ hoard.findSpotRating }}</div></li>{% endif %}
  386.                         </ul>
  387.                     </div>
  388.                     <div id="tabs3-3" class="hoardlistview-6col">
  389.                         <ul>
  390.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class="datalabel">Date of excavation (from)</div> <div class="data">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  391.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class="datalabel">Date of excavation (to)</div> <div class="data">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  392.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class="datalabel">Natural features</div> <div class="data">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  393.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class="datalabel">Site comment</div> <div class="data">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  394.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class="datalabel">Date of context (from)</div> <div class="data">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  395.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class="datalabel">Date of context (to)</div> <div class="data">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  396.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class="datalabel">Associated features</div> <div class="data">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  397.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class="datalabel">Recovery method</div> <div class="data">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  398.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class="datalabel">Site class</div> <div class="data">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  399.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  400.                             <div class="datalabel">Context</div><div class="data">
  401.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  402.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  403.                                 {% endfor %}
  404.                             </div>
  405.                             {% endif %}
  406.                             {% if hoard.archaeologyContextNatures is not empty %}
  407.                             <div class="datalabel">Depositional context</div><div class="data">
  408.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  409.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  410.                                 {% endfor %}
  411.                             </div>
  412.                             {% endif %}
  413.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class="datalabel">Period</div> <div class="data">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  414.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class="datalabel">End period</div> <div class="data">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  415.                         </ul>
  416.                     </div>
  417.                     <div id="tabs3-4">
  418.                         {% block containers %}
  419.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  420.                             {% endembed %}
  421.                          {% endblock %}
  422.                     </div>
  423.                     <div id="tabs3-5">
  424.                         {% block objects %}
  425.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  426.                             {% endembed %}
  427.                          {% endblock %}
  428.                     </div>
  429.                     <div id="tabs3-6">
  430.                             {% if onlineDatabaseReferences  is not empty  %}
  431.                             <div class="hoardlistview-6col">
  432.                                 <h2>Permalink in other online databases</h2>
  433.                                 {% for ref in onlineDatabaseReferences %}
  434.                                     {% if ref.reference %}
  435.                                     <div class="datalabel">Reference</div>
  436.                                     <div class="data"><a href="{{ path('reference_show', {'id': ref.reference.id})}}">
  437.                                         {{ref.reference}}
  438.                                     </a></div>
  439.                                     {% endif %}
  440.                                     {% if ref.referenceStr %}
  441.                                         {% if 'http://' in ref.referenceStr %}
  442.                                         <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>
  443.                                         {% elseif 'https://' in ref.referenceStr %}
  444.                                         <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>
  445.                                         {% else %}
  446.                                         <div class="datalabel">Ref</div><div class="data">{{ ref.referenceStr }}</div>
  447.                                         {% endif %}
  448.                                     
  449.                                     {% endif %}
  450.                                     {% if ref.comment %}
  451.                                     <div class="datalabel">Comment</div><div class="data">{{ ref.comment }}</div>
  452.                                     {% endif %}
  453.                                     <br>
  454.                                 {% endfor %}
  455.                             </div>
  456.                                {% endif %}
  457.                             <div class="hoardlistview-6col">
  458.                                 <h2>References</h2>
  459.                                 {% if hoard.referenceString is not empty %}<li><div class="datalabel">Reference (string)</div> <div class="data">{{ hoard.referenceString }}</div></li>{% endif %}
  460.                                 {% for ref in hoardReferences %}
  461.                                     {% if ref.reference %}
  462.                                     <div class="datalabel">Reference</div>
  463.                                     <div class="data"><a href="{{ path('reference_show', {'id': ref.reference.id})}}">
  464.                                         {{ref.reference}}
  465.                                     </a></div>
  466.                                     {% endif %}
  467.                                     {% if ref.referenceStr %}
  468.                                         {% if 'http://' in ref.referenceStr %}
  469.                                         <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>
  470.                                         {% elseif 'https://' in ref.referenceStr %}
  471.                                         <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>
  472.                                         {% else %}
  473.                                         <div class="datalabel">Ref</div><div class="data">{{ ref.referenceStr }}</div>
  474.                                         {% endif %}
  475.                                     
  476.                                     {% endif %}
  477.                                     {% if ref.comment %}
  478.                                     <div class="datalabel">Comment</div><div class="data">{{ ref.comment }}</div>
  479.                                     {% endif %}
  480.                                     <br>
  481.                                 {% endfor %}
  482.                             </div>
  483.                     </div>
  484.                     <div id="tabs3-7">
  485.                     </div>
  486.                     <div id="tabs3-8" class="should-initialise-magnify">
  487.                         {% for key, image in images %}
  488.                             <div class="row hoard-show-image-container">
  489.                                     <div class="col-md-12 magnify-image-container">
  490.                                         {% if image.hoardImages_id %}
  491.                                             <img id="hoard-image-{{key}}" src="/image/hoard/{{ image.hoardImages_id }}" class="magnify-image-inside"/>
  492.                                         {% else %}
  493.                                             <img id=hoard-image-{{key}} src="/bundles/oxhoard//img/warning.png" />
  494.                                             Image not found
  495.                                         {% endif %}
  496.                                     </div>
  497.                                     <div class="col-md-12">
  498.                                         <div class="hoardimage-metadata hoardlistview-12col">
  499.                                             {% if image.uri1 is defined %}
  500.                                                 <div class="datalabel">URI 1</div><div class="data"><a target="_blank" href="{{ image.uri1 }}">{{ image.uri1 }}</a></div>
  501.                                             {% endif %}
  502.                                             {% if image.uri2 is defined %}
  503.                                                 <div class="datalabel">URI 2</div><div class="data"><a target="_blank" href="{{ image.uri2 }}">{{ image.uri2 }}</a></div>
  504.                                             {% endif %}
  505.                                             {% if image.comment is defined %}
  506.                                                 <div class="datalabel">Comment</div><div class="data">{{ image.comment }}</div>
  507.                                             {% endif %}
  508.                                         </div>
  509.                                     </div>
  510.                             </div>
  511.                         {% endfor %}
  512.                     </div>
  513.                     <div id="tabs3-11">
  514.                         <p>{{ hoard.credit }}</p>
  515.                         {% if is_admin %}
  516.                           <a href="{{ path('hoard_revisions', {id: hoard.id}) }}" class="btn btn-default">View Hoard Revisions</a>
  517.                         {% endif %}
  518.                     </div>
  519.                 </div>
  520.             </div>
  521.         </div>
  522.     </div><!-- end page container -->
  523. {% endblock %}