<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
'containers' => [$this, 'block_containers'],
'objects' => [$this, 'block_objects'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@OxHoardBundle//layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("@OxHoardBundle//layout.html.twig", "@OxHoard/hoard/show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Hoard Details ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 2, $this->source); })()), "id", [], "any", false, false, false, 2), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 5
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<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'>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 13
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
coinShowLink = '";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("coin_show", ["id" => "__id__"]);
echo "';
coinEditLink = '";
// line 18
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("coin_edit", ["id" => "__id__"]);
echo "';
OcreTableUrl = '";
// line 19
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hoard_ocre_table");
echo "';
getCoinDataURL = '";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ajax_hoard_coin_data", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 21, $this->source); })()), "id", [], "any", false, false, false, 21)]), "html", null, true);
echo "';
sortOptions = {}
sortOptions.Reign = { ";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["reigns"]) || array_key_exists("reigns", $context) ? $context["reigns"] : (function () { throw new RuntimeError('Variable "reigns" does not exist.', 24, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
echo " '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["i"], "reign", [], "any", false, false, false, 24), "html", null, true);
echo "': ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["i"], "sortValue", [], "any", false, false, false, 24), "html", null, true);
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 24)) {
echo ",";
}
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo " };
sortOptions.Person = { ";
// line 25
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["persons"]) || array_key_exists("persons", $context) ? $context["persons"] : (function () { throw new RuntimeError('Variable "persons" does not exist.', 25, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
echo " '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["i"], "person", [], "any", false, false, false, 25), "html", null, true);
if (twig_get_attribute($this->env, $this->source, $context["i"], "title", [], "any", false, false, false, 25)) {
echo " (";
}
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["i"], "title", [], "any", false, false, false, 25), "html", null, true);
if (twig_get_attribute($this->env, $this->source, $context["i"], "title", [], "any", false, false, false, 25)) {
echo ")";
}
echo "': ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["i"], "sortValue", [], "any", false, false, false, 25), "html", null, true);
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 25)) {
echo ",";
}
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo " };
";
// line 27
if ((isset($context["is_authorised_to_edit"]) || array_key_exists("is_authorised_to_edit", $context) ? $context["is_authorised_to_edit"] : (function () { throw new RuntimeError('Variable "is_authorised_to_edit" does not exist.', 27, $this->source); })())) {
// line 28
echo " isAuthorisedToEdit = true;
";
} else {
// line 30
echo " isAuthorisedToEdit = false;
";
}
// line 32
echo "
";
// line 33
if ((isset($context["can_see_location"]) || array_key_exists("can_see_location", $context) ? $context["can_see_location"] : (function () { throw new RuntimeError('Variable "can_see_location" does not exist.', 33, $this->source); })())) {
// line 34
echo " newMapResult = null
\$( function() {
newMapResult = newMap(\"map\", [";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 36, $this->source); })()), "findSpotLatitude", [], "any", false, false, false, 36), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 36, $this->source); })()), "findSpotLongitude", [], "any", false, false, false, 36), "html", null, true);
echo "], true, false, true);
});
";
}
// line 39
echo " </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>
";
// line 42
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 42, "1310819711")->display($context);
// line 43
echo " ";
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 43, "903471706")->display($context);
// line 44
echo " ";
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 44, "1717882628")->display($context);
// line 45
echo "\t";
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 45, "1279078495")->display($context);
// line 46
echo " <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>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 56
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 57
echo "<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\">
";
// line 71
if ((isset($context["is_authorised_to_edit"]) || array_key_exists("is_authorised_to_edit", $context) ? $context["is_authorised_to_edit"] : (function () { throw new RuntimeError('Variable "is_authorised_to_edit" does not exist.', 71, $this->source); })())) {
// line 72
echo " <div class=\"edit-btn\"><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hoard_edit", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 72, $this->source); })()), "id", [], "any", false, false, false, 72)]), "html", null, true);
echo "\"><h2>Edit this Hoard <span class=\"fa fa-chevron-right\"></span></h2></a></div>
";
}
// line 74
echo "
<h1>";
// line 75
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 75, $this->source); })()), "findSpotName", [], "any", false, false, false, 75), "html", null, true);
echo "</h1>
Download CSV:
<a href=\"";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hoard_csv_download", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 77, $this->source); })()), "id", [], "any", false, false, false, 77)]), "html", null, true);
echo "\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
<a href=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hoard_csv_download_coins", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 78, $this->source); })()), "id", [], "any", false, false, false, 78)]), "html", null, true);
echo "\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
";
// line 79
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 79, "213402641")->display($context);
// line 80
echo "
<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: ";
// line 89
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 89, $this->source); })()), "findSpotName", [], "any", false, false, false, 89), "html", null, true);
echo "</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\">
";
// line 163
if ((isset($context["can_see_location"]) || array_key_exists("can_see_location", $context) ? $context["can_see_location"] : (function () { throw new RuntimeError('Variable "can_see_location" does not exist.', 163, $this->source); })())) {
// line 164
echo " ";
if (( !twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 164, $this->source); })()), "hideCity", [], "any", false, false, false, 164) || (isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 164, $this->source); })()))) {
// line 165
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 165, $this->source); })()), "city", [], "any", false, false, false, 165)) {
// line 166
echo " <div class=\"datalabel\">City</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 166, $this->source); })()), "city", [], "any", false, false, false, 166), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 166, $this->source); })()), "hideCity", [], "any", false, false, false, 166)) {
echo "*";
}
echo "</div>
";
}
// line 168
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 168, $this->source); })()), "address", [], "any", false, false, false, 168)) {
// line 169
echo " <div class=\"datalabel\">Address</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 169, $this->source); })()), "address", [], "any", false, false, false, 169), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 169, $this->source); })()), "hideCity", [], "any", false, false, false, 169)) {
echo "*";
}
echo "</div>
";
}
// line 171
echo " ";
}
// line 172
echo " ";
} else {
// line 173
echo " <p>
This Hoard's location is hidden
</p>
";
}
// line 177
echo " ";
if (( !twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 177, $this->source); })()), "hideCounty", [], "any", false, false, false, 177) || (isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 177, $this->source); })()))) {
// line 178
echo " <div class=\"datalabel\">County</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 178, $this->source); })()), "county", [], "any", false, false, false, 178), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 178, $this->source); })()), "hideCounty", [], "any", false, false, false, 178)) {
echo "*";
}
echo "</div>
";
}
// line 180
echo " <div class=\"datalabel\">Region</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 180, $this->source); })()), "region", [], "any", false, false, false, 180), "html", null, true);
echo "</div>
<div class=\"datalabel\">Country</div><div class=\"data\">
";
// line 182
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 182, $this->source); })()), "countries", [], "any", false, false, false, 182));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 183
echo " ";
echo twig_escape_filter($this->env, $context["country"], "html", null, true);
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 183)) {
echo ", ";
}
// line 184
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 185
echo " </div>
";
// line 186
if ((isset($context["can_see_location"]) || array_key_exists("can_see_location", $context) ? $context["can_see_location"] : (function () { throw new RuntimeError('Variable "can_see_location" does not exist.', 186, $this->source); })())) {
// line 187
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 187, $this->source); })()), "ancientPlace", [], "any", false, false, false, 187)) {
// line 188
echo " <div class=\"datalabel\">Ancient place</div><div class=\"data\">
<a href=\"";
// line 189
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_ancientplace_show", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 189, $this->source); })()), "ancientPlace", [], "any", false, false, false, 189), "id", [], "any", false, false, false, 189)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 189, $this->source); })()), "ancientPlace", [], "any", false, false, false, 189), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 189, $this->source); })()), "hideLocation", [], "any", false, false, false, 189)) {
echo "*";
}
echo "</a>
";
// line 190
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 190, $this->source); })()), "ancientPlace", [], "any", false, false, false, 190), "uri2", [], "any", false, false, false, 190)) {
// line 191
echo " <br>
<a href=\"https://";
// line 192
echo twig_escape_filter($this->env, twig_replace_filter(twig_replace_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 192, $this->source); })()), "ancientPlace", [], "any", false, false, false, 192), "uri2", [], "any", false, false, false, 192), ["https://" => ""]), ["http://" => ""]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 192, $this->source); })()), "ancientPlace", [], "any", false, false, false, 192), "uri2", [], "any", false, false, false, 192), "html", null, true);
echo " <i class='fa fa-external-link'></i></a>
";
}
// line 194
echo " </div>
";
}
// line 196
echo " <div class=\"datalabel\">Lat/Long/Alt</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 196, $this->source); })()), "findSpotLatitude", [], "any", false, false, false, 196), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 196, $this->source); })()), "findSpotLongitude", [], "any", false, false, false, 196), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_round(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 196, $this->source); })()), "findSpotAltitude", [], "any", false, false, false, 196), 2), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 196, $this->source); })()), "hideLocation", [], "any", false, false, false, 196)) {
echo "*";
}
echo " <a href=\"\">view</a></div>
";
// line 197
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 197, $this->source); })()), "findSpotLocationDetail", [], "any", false, false, false, 197)) {
// line 198
echo " <div class=\"datalabel\">Location details</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 198, $this->source); })()), "findSpotLocationDetail", [], "any", false, false, false, 198), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 198, $this->source); })()), "hideLocation", [], "any", false, false, false, 198)) {
echo "*";
}
echo "</div>
";
}
// line 200
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 200, $this->source); })()), "findSpotComment", [], "any", false, false, false, 200)) {
// line 201
echo " <div class=\"datalabel\">Find spot comment</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 201, $this->source); })()), "findSpotComment", [], "any", false, false, false, 201), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 201, $this->source); })()), "hideLocation", [], "any", false, false, false, 201)) {
echo "*";
}
echo "</div>
";
}
// line 203
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 203, $this->source); })()), "hideCity", [], "any", false, false, false, 203) || twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 203, $this->source); })()), "hideCounty", [], "any", false, false, false, 203)) && (isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 203, $this->source); })()))) {
// line 204
echo " <div>Fields with * are hidden in public view</div>
";
}
// line 206
echo " <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>
";
}
// line 238
echo " </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>
";
// line 248
$context["total"] = 0;
// line 249
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 249, $this->source); })()), "coins", [], "any", false, false, false, 249));
foreach ($context['_seq'] as $context["_key"] => $context["coin"]) {
// line 250
echo " ";
$context["total"] = ((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 250, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["coin"], "quantity", [], "any", false, false, false, 250));
// line 251
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['coin'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 252
echo " <div id=\"tab-1\">
<div class=\"hoardlistview-6col\">
<div class=\"datalabel\">ID</div><div class=\"data\">";
// line 254
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 254, $this->source); })()), "id", [], "any", false, false, false, 254), "html", null, true);
echo "</div>
<div class=\"datalabel\">Permalink</div>
<div class=\"data\">
<a id=\"permalink-value\" href=\"";
// line 257
echo twig_escape_filter($this->env, (isset($context["permalink"]) || array_key_exists("permalink", $context) ? $context["permalink"] : (function () { throw new RuntimeError('Variable "permalink" does not exist.', 257, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["permalink"]) || array_key_exists("permalink", $context) ? $context["permalink"] : (function () { throw new RuntimeError('Variable "permalink" does not exist.', 257, $this->source); })()), "html", null, true);
echo "</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\">";
// line 262
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 262, $this->source); })()), "findSpotName", [], "any", false, false, false, 262), "html", null, true);
echo "</div>
";
// line 263
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 263, $this->source); })()), "findSpotOtherNames", [], "any", false, false, false, 263)) {
// line 264
echo " <div class=\"datalabel\">Alternative names</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 264, $this->source); })()), "findSpotOtherNames", [], "any", false, false, false, 264), "html", null, true);
echo "</div>
";
}
// line 266
echo " <div class=\"datalabel\">Data type</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 266, $this->source); })()), "hoardType", [], "any", false, false, false, 266), "html", null, true);
echo "</div>
<div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">";
// line 267
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 267, $this->source); })()), "discoveryday1", [], "any", false, false, false, 267), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["discoverymonth1_text"]) || array_key_exists("discoverymonth1_text", $context) ? $context["discoverymonth1_text"] : (function () { throw new RuntimeError('Variable "discoverymonth1_text" does not exist.', 267, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 267, $this->source); })()), "discoveryyear1", [], "any", false, false, false, 267), "html", null, true);
echo "</div><br>
";
// line 268
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 268, $this->source); })()), "discoveryYear2", [], "any", false, false, false, 268)) {
// line 269
echo " <div class=\"datalabel\">(to)</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 269, $this->source); })()), "discoveryday2", [], "any", false, false, false, 269), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, (isset($context["discoverymonth2_text"]) || array_key_exists("discoverymonth2_text", $context) ? $context["discoverymonth2_text"] : (function () { throw new RuntimeError('Variable "discoverymonth2_text" does not exist.', 269, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 269, $this->source); })()), "discoveryyear2", [], "any", false, false, false, 269), "html", null, true);
echo "</div>
";
}
// line 271
echo " <div class=\"datalabel\">Total number of coins</div><div class=\"data\">";
echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 271, $this->source); })()), "html", null, true);
echo "</div>
";
// line 272
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 272, $this->source); })()), "province", [], "any", false, false, false, 272)) {
// line 273
echo " <div class=\"datalabel\">Roman Province</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 273, $this->source); })()), "province", [], "any", false, false, false, 273), "html", null, true);
echo "</div>
";
}
// line 275
echo " <div class=\"datalabel\">Summary</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 275, $this->source); })()), "comment", [], "any", false, false, false, 275), "html", null, true);
echo "</div>
";
// line 276
if (((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 276, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 276, $this->source); })()), "internalNote", [], "any", false, false, false, 276))) {
// line 277
echo " <div class=\"datalabel\">Internal note</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 277, $this->source); })()), "internalNote", [], "any", false, false, false, 277), "html", null, true);
echo "</div>
";
}
// line 279
echo " <br>
";
// line 280
if ((isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 280, $this->source); })())) {
// line 281
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 281, $this->source); })()), "validatedByUser", [], "any", false, false, false, 281)) {
// line 282
echo " <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
";
} else {
// line 284
echo " <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
";
}
// line 286
echo " ";
if ((isset($context["is_admin"]) || array_key_exists("is_admin", $context) ? $context["is_admin"] : (function () { throw new RuntimeError('Variable "is_admin" does not exist.', 286, $this->source); })())) {
// line 287
echo " <br>
";
// line 288
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 288, $this->source); })()), "validatedByAdmin", [], "any", false, false, false, 288)) {
// line 289
echo " <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
";
} else {
// line 291
echo " <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
";
}
// line 293
echo " ";
}
// line 294
echo " <br>
";
// line 295
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 295, $this->source); })()), "coinDataValidatedByUser", [], "any", false, false, false, 295)) {
// line 296
echo " <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
";
} else {
// line 298
echo " <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
";
}
// line 300
echo " ";
if ((isset($context["is_admin"]) || array_key_exists("is_admin", $context) ? $context["is_admin"] : (function () { throw new RuntimeError('Variable "is_admin" does not exist.', 300, $this->source); })())) {
// line 301
echo " <br>
";
// line 302
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 302, $this->source); })()), "coinDataValidatedByAdmin", [], "any", false, false, false, 302)) {
// line 303
echo " <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
";
} else {
// line 305
echo " <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
";
}
// line 307
echo " ";
}
// line 308
echo " ";
} else {
// line 309
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 309, $this->source); })()), "coinDataValidatedByUser", [], "any", false, false, false, 309)) {
// line 310
echo " <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
";
}
// line 312
echo " ";
}
// line 313
echo " </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>
";
// line 344
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 344, $this->source); })()), "discoveryMethod", [], "any", false, false, false, 344))) {
echo "<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 344, $this->source); })()), "discoveryMethod", [], "any", false, false, false, 344), "html", null, true);
echo "</div></li>";
}
// line 345
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 345, $this->source); })()), "discoveryDepth", [], "any", false, false, false, 345))) {
echo "<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 345, $this->source); })()), "discoveryDepth", [], "any", false, false, false, 345), "html", null, true);
echo "</div></li>";
}
// line 346
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 346, $this->source); })()), "discoveryLandUse", [], "any", false, false, false, 346))) {
echo "<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 346, $this->source); })()), "discoveryLandUse", [], "any", false, false, false, 346), "html", null, true);
echo "</div></li>";
}
// line 347
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 347, $this->source); })()), "owner", [], "any", false, false, false, 347))) {
echo "<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 347, $this->source); })()), "owner", [], "any", false, false, false, 347), "html", null, true);
echo "</div></li>";
}
// line 348
echo " ";
if (( !twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 348, $this->source); })()), "hideFinder", [], "any", false, false, false, 348) || (isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 348, $this->source); })()))) {
// line 349
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 349, $this->source); })()), "finder", [], "any", false, false, false, 349))) {
echo "<li><div class=\"datalabel\">Finder(s)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 349, $this->source); })()), "finder", [], "any", false, false, false, 349), "html", null, true);
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 349, $this->source); })()), "hideFinder", [], "any", false, false, false, 349)) {
echo "*";
}
echo "</div></li>";
}
// line 350
echo " ";
}
// line 351
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 351, $this->source); })()), "discoveryComment", [], "any", false, false, false, 351))) {
echo "<li><div class=\"datalabel\">Comment</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 351, $this->source); })()), "discoveryComment", [], "any", false, false, false, 351), "html", null, true);
echo "</div></li>";
}
// line 352
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 352, $this->source); })()), "closingReign1", [], "any", false, false, false, 352))) {
echo "<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 352, $this->source); })()), "closingReign1", [], "any", false, false, false, 352), "html", null, true);
echo "</div></li>";
}
// line 353
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 353, $this->source); })()), "terminalYear1", [], "any", false, false, false, 353))) {
echo "<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 353, $this->source); })()), "terminalYear1", [], "any", false, false, false, 353), "html", null, true);
echo "</div></li>";
}
// line 354
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 354, $this->source); })()), "closingReign2", [], "any", false, false, false, 354))) {
echo "<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 354, $this->source); })()), "closingReign2", [], "any", false, false, false, 354), "html", null, true);
echo "</div></li>";
}
// line 355
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 355, $this->source); })()), "terminalYear2", [], "any", false, false, false, 355))) {
echo "<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 355, $this->source); })()), "terminalYear2", [], "any", false, false, false, 355), "html", null, true);
echo "</div></li>";
}
// line 356
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 356, $this->source); })()), "openingYear1", [], "any", false, false, false, 356))) {
echo "<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 356, $this->source); })()), "openingYear1", [], "any", false, false, false, 356), "html", null, true);
echo "</div></li>";
}
// line 357
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 357, $this->source); })()), "openingYear2", [], "any", false, false, false, 357))) {
echo "<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 357, $this->source); })()), "openingYear2", [], "any", false, false, false, 357), "html", null, true);
echo "</div></li>";
}
// line 358
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 358, $this->source); })()), "coinLevelData", [], "any", false, false, false, 358))) {
echo "<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 358, $this->source); })()), "coinLevelData", [], "any", false, false, false, 358), "html", null, true);
echo "</div></li>";
}
// line 359
echo "
";
// line 360
if ((isset($context["is_admin"]) || array_key_exists("is_admin", $context) ? $context["is_admin"] : (function () { throw new RuntimeError('Variable "is_admin" does not exist.', 360, $this->source); })())) {
// line 361
echo " <li><div class=\"datalabel\">Created by</div> <div class=\"data\">";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 361, $this->source); })()), "created", [], "any", false, false, false, 361)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 361, $this->source); })()), "created", [], "any", false, false, false, 361), "html", null, true);
} else {
echo "Not known";
}
echo "</div></li>
<li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">";
// line 362
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 362, $this->source); })()), "modified", [], "any", false, false, false, 362)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 362, $this->source); })()), "modified", [], "any", false, false, false, 362), "html", null, true);
} else {
echo "Not known";
}
echo "</div></li>
";
}
// line 364
echo " ";
if (( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 364, $this->source); })()), "hideWhat", [], "any", false, false, false, 364)) && (isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 364, $this->source); })()))) {
// line 365
echo " ";
if (((isset($context["is_admin"]) || array_key_exists("is_admin", $context) ? $context["is_admin"] : (function () { throw new RuntimeError('Variable "is_admin" does not exist.', 365, $this->source); })()) || (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 365, $this->source); })()), "hideFrom", [], "any", false, false, false, 365) != "Public and Collaborators"))) {
// line 366
echo " <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 366, $this->source); })()), "hideWhat", [], "any", false, false, false, 366), "html", null, true);
echo "</div></li>
";
// line 367
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 367, $this->source); })()), "hideFrom", [], "any", false, false, false, 367))) {
echo "<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 367, $this->source); })()), "hideFrom", [], "any", false, false, false, 367), "html", null, true);
echo "</div></li>";
}
// line 368
echo " ";
}
// line 369
echo " ";
}
// line 370
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 370, $this->source); })()), "hideFinder", [], "any", false, false, false, 370) && (isset($context["is_authenticated"]) || array_key_exists("is_authenticated", $context) ? $context["is_authenticated"] : (function () { throw new RuntimeError('Variable "is_authenticated" does not exist.', 370, $this->source); })()))) {
// line 371
echo " <div>Fields with * are hidden in public view</div>
";
}
// line 373
echo "
</ul>
</div>
<div id=\"tabs3-9\" class=\"coin-summary-container\">
";
// line 378
if ((isset($context["show_coins_summary"]) || array_key_exists("show_coins_summary", $context) ? $context["show_coins_summary"] : (function () { throw new RuntimeError('Variable "show_coins_summary" does not exist.', 378, $this->source); })())) {
// line 379
echo " <p>Fetching coin data</p>
<img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
";
} else {
// line 382
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 382, $this->source); })()), "coinDataValidatedByUser", [], "any", false, false, false, 382)) {
// line 383
echo " <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 {
// line 385
echo " The coin summary for this hoard has been hidden
";
}
// line 387
echo " ";
}
// line 388
echo " </div>
<div id=\"tabs3-10\">
";
// line 390
if ((isset($context["show_coins"]) || array_key_exists("show_coins", $context) ? $context["show_coins"] : (function () { throw new RuntimeError('Variable "show_coins" does not exist.', 390, $this->source); })())) {
// line 391
echo " <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 {
// line 396
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 396, $this->source); })()), "coinDataValidatedByUser", [], "any", false, false, false, 396)) {
// line 397
echo " <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 {
// line 399
echo " The coins for this hoard have been hidden
";
}
// line 401
echo " ";
}
// line 402
echo " </div>
<div id=\"tabs3-2\" class=\"hoardlistview-6col\">
<ul>
";
// line 406
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 406, $this->source); })()), "rating", [], "any", false, false, false, 406)) {
// line 407
echo " <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 407, $this->source); })()), "rating", [], "any", false, false, false, 407), "html", null, true);
echo "</div></li>
";
}
// line 409
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 409, $this->source); })()), "ratingComment", [], "any", false, false, false, 409)) {
// line 410
echo " <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 410, $this->source); })()), "ratingComment", [], "any", false, false, false, 410), "html", null, true);
echo "</div></li>
";
}
// line 412
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 412, $this->source); })()), "contextualRating", [], "any", false, false, false, 412)) {
echo "<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 412, $this->source); })()), "contextualRating", [], "any", false, false, false, 412), "html", null, true);
echo "</div></li>";
}
// line 413
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 413, $this->source); })()), "findSpotRating", [], "any", false, false, false, 413)) {
echo "<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 413, $this->source); })()), "findSpotRating", [], "any", false, false, false, 413), "html", null, true);
echo "</div></li>";
}
// line 414
echo " </ul>
</div>
<div id=\"tabs3-3\" class=\"hoardlistview-6col\">
<ul>
";
// line 418
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 418, $this->source); })()), "archaeologyStartYear", [], "any", false, false, false, 418))) {
echo "<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 418, $this->source); })()), "archaeologyStartYear", [], "any", false, false, false, 418), "html", null, true);
echo "</div></li>";
}
// line 419
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 419, $this->source); })()), "archaeologyEndYear", [], "any", false, false, false, 419))) {
echo "<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 419, $this->source); })()), "archaeologyEndYear", [], "any", false, false, false, 419), "html", null, true);
echo "</div></li>";
}
// line 420
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 420, $this->source); })()), "archaeologyNaturalFeatures", [], "any", false, false, false, 420))) {
echo "<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 420, $this->source); })()), "archaeologyNaturalFeatures", [], "any", false, false, false, 420), "html", null, true);
echo "</div></li>";
}
// line 421
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 421, $this->source); })()), "archaeologySiteComment", [], "any", false, false, false, 421))) {
echo "<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 421, $this->source); })()), "archaeologySiteComment", [], "any", false, false, false, 421), "html", null, true);
echo "</div></li>";
}
// line 422
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 422, $this->source); })()), "archaeologyContextDate1", [], "any", false, false, false, 422))) {
echo "<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 422, $this->source); })()), "archaeologyContextDate1", [], "any", false, false, false, 422), "html", null, true);
echo "</div></li>";
}
// line 423
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 423, $this->source); })()), "archaeologyContextDate2", [], "any", false, false, false, 423))) {
echo "<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 423, $this->source); })()), "archaeologyContextDate2", [], "any", false, false, false, 423), "html", null, true);
echo "</div></li>";
}
// line 424
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 424, $this->source); })()), "archaeologyAssociatedFeatures", [], "any", false, false, false, 424))) {
echo "<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 424, $this->source); })()), "archaeologyAssociatedFeatures", [], "any", false, false, false, 424), "html", null, true);
echo "</div></li>";
}
// line 425
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 425, $this->source); })()), "archaeologyRecoveryMethod", [], "any", false, false, false, 425))) {
echo "<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 425, $this->source); })()), "archaeologyRecoveryMethod", [], "any", false, false, false, 425), "html", null, true);
echo "</div></li>";
}
// line 426
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 426, $this->source); })()), "archaeologySiteContext", [], "any", false, false, false, 426))) {
echo "<li><div class=\"datalabel\">Site class</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 426, $this->source); })()), "archaeologySiteContext", [], "any", false, false, false, 426), "html", null, true);
echo "</div></li>";
}
// line 427
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 427, $this->source); })()), "archaeologySiteContextDetails", [], "any", false, false, false, 427))) {
// line 428
echo " <div class=\"datalabel\">Context</div><div class=\"data\">
";
// line 429
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 429, $this->source); })()), "archaeologySiteContextDetails", [], "any", false, false, false, 429));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["archaeologySiteContextDetail"]) {
// line 430
echo " ";
echo twig_escape_filter($this->env, $context["archaeologySiteContextDetail"], "html", null, true);
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 430)) {
echo ", ";
}
// line 431
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['archaeologySiteContextDetail'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 432
echo " </div>
";
}
// line 434
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 434, $this->source); })()), "archaeologyContextNatures", [], "any", false, false, false, 434))) {
// line 435
echo " <div class=\"datalabel\">Depositional context</div><div class=\"data\">
";
// line 436
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 436, $this->source); })()), "archaeologyContextNatures", [], "any", false, false, false, 436));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["archaeologyContextNature"]) {
// line 437
echo " ";
echo twig_escape_filter($this->env, $context["archaeologyContextNature"], "html", null, true);
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 437)) {
echo ", ";
}
// line 438
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['archaeologyContextNature'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 439
echo " </div>
";
}
// line 441
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 441, $this->source); })()), "archaeologyPeriod", [], "any", false, false, false, 441))) {
echo "<li><div class=\"datalabel\">Period</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 441, $this->source); })()), "archaeologyPeriod", [], "any", false, false, false, 441), "html", null, true);
echo "</div></li>";
}
// line 442
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 442, $this->source); })()), "archaeologyEndPeriod", [], "any", false, false, false, 442))) {
echo "<li><div class=\"datalabel\">End period</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 442, $this->source); })()), "archaeologyEndPeriod", [], "any", false, false, false, 442), "html", null, true);
echo "</div></li>";
}
// line 443
echo " </ul>
</div>
<div id=\"tabs3-4\">
";
// line 446
$this->displayBlock('containers', $context, $blocks);
// line 450
echo " </div>
<div id=\"tabs3-5\">
";
// line 452
$this->displayBlock('objects', $context, $blocks);
// line 456
echo " </div>
<div id=\"tabs3-6\">
";
// line 458
if ( !twig_test_empty((isset($context["onlineDatabaseReferences"]) || array_key_exists("onlineDatabaseReferences", $context) ? $context["onlineDatabaseReferences"] : (function () { throw new RuntimeError('Variable "onlineDatabaseReferences" does not exist.', 458, $this->source); })()))) {
// line 459
echo " <div class=\"hoardlistview-6col\">
<h2>Permalink in other online databases</h2>
\t\t\t\t\t";
// line 461
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["onlineDatabaseReferences"]) || array_key_exists("onlineDatabaseReferences", $context) ? $context["onlineDatabaseReferences"] : (function () { throw new RuntimeError('Variable "onlineDatabaseReferences" does not exist.', 461, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ref"]) {
// line 462
echo " \t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["ref"], "reference", [], "any", false, false, false, 462)) {
// line 463
echo " \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"";
// line 464
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reference_show", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ref"], "reference", [], "any", false, false, false, 464), "id", [], "any", false, false, false, 464)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
// line 465
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "reference", [], "any", false, false, false, 465), "html", null, true);
echo "
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t";
}
// line 468
echo " \t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 468)) {
// line 469
echo " ";
if (twig_in_filter("http://", twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 469))) {
// line 470
echo " <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 470), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 470), "html", null, true);
echo " <i class=\"fa fa-external-link\"></i></a></div>
";
} elseif (twig_in_filter("https://", twig_get_attribute($this->env, $this->source, // line 471
$context["ref"], "referenceStr", [], "any", false, false, false, 471))) {
// line 472
echo " <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 472), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 472), "html", null, true);
echo " <i class=\"fa fa-external-link\"></i></a></div>
";
} else {
// line 474
echo " <div class=\"datalabel\">Ref</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 474), "html", null, true);
echo "</div>
";
}
// line 476
echo "
\t\t\t\t\t\t";
}
// line 478
echo " \t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["ref"], "comment", [], "any", false, false, false, 478)) {
// line 479
echo " \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "comment", [], "any", false, false, false, 479), "html", null, true);
echo "</div>
\t\t\t\t\t\t";
}
// line 481
echo " \t\t\t\t\t\t<br>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ref'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 483
echo " </div>
\t\t\t\t\t\t";
}
// line 485
echo "
<div class=\"hoardlistview-6col\">
<h2>References</h2>
";
// line 488
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 488, $this->source); })()), "referenceString", [], "any", false, false, false, 488))) {
echo "<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 488, $this->source); })()), "referenceString", [], "any", false, false, false, 488), "html", null, true);
echo "</div></li>";
}
// line 489
echo "
\t\t\t\t\t";
// line 490
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["hoardReferences"]) || array_key_exists("hoardReferences", $context) ? $context["hoardReferences"] : (function () { throw new RuntimeError('Variable "hoardReferences" does not exist.', 490, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["ref"]) {
// line 491
echo " \t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["ref"], "reference", [], "any", false, false, false, 491)) {
// line 492
echo " \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"";
// line 493
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reference_show", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ref"], "reference", [], "any", false, false, false, 493), "id", [], "any", false, false, false, 493)]), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
// line 494
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "reference", [], "any", false, false, false, 494), "html", null, true);
echo "
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t";
}
// line 497
echo " \t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 497)) {
// line 498
echo " ";
if (twig_in_filter("http://", twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 498))) {
// line 499
echo " <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 499), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 499), "html", null, true);
echo " <i class=\"fa fa-external-link\"></i></a></div>
";
} elseif (twig_in_filter("https://", twig_get_attribute($this->env, $this->source, // line 500
$context["ref"], "referenceStr", [], "any", false, false, false, 500))) {
// line 501
echo " <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 501), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 501), "html", null, true);
echo " <i class=\"fa fa-external-link\"></i></a></div>
";
} else {
// line 503
echo " <div class=\"datalabel\">Ref</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "referenceStr", [], "any", false, false, false, 503), "html", null, true);
echo "</div>
";
}
// line 505
echo "
\t\t\t\t\t\t";
}
// line 507
echo " \t\t\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, $context["ref"], "comment", [], "any", false, false, false, 507)) {
// line 508
echo " \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ref"], "comment", [], "any", false, false, false, 508), "html", null, true);
echo "</div>
\t\t\t\t\t\t";
}
// line 510
echo " \t\t\t\t\t\t<br>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ref'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 512
echo " </div>
</div>
<div id=\"tabs3-7\">
</div>
<div id=\"tabs3-8\" class=\"should-initialise-magnify\">
";
// line 517
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["images"]) || array_key_exists("images", $context) ? $context["images"] : (function () { throw new RuntimeError('Variable "images" does not exist.', 517, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["image"]) {
// line 518
echo " <div class=\"row hoard-show-image-container\">
<div class=\"col-md-12 magnify-image-container\">
";
// line 520
if (twig_get_attribute($this->env, $this->source, $context["image"], "hoardImages_id", [], "any", false, false, false, 520)) {
// line 521
echo " <img id=\"hoard-image-";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" src=\"/image/hoard/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "hoardImages_id", [], "any", false, false, false, 521), "html", null, true);
echo "\" class=\"magnify-image-inside\"/>
";
} else {
// line 523
echo " <img id=hoard-image-";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo " src=\"/bundles/oxhoard//img/warning.png\" />
Image not found
";
}
// line 526
echo " </div>
<div class=\"col-md-12\">
<div class=\"hoardimage-metadata hoardlistview-12col\">
";
// line 529
if (twig_get_attribute($this->env, $this->source, $context["image"], "uri1", [], "any", true, true, false, 529)) {
// line 530
echo " <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "uri1", [], "any", false, false, false, 530), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "uri1", [], "any", false, false, false, 530), "html", null, true);
echo "</a></div>
";
}
// line 532
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["image"], "uri2", [], "any", true, true, false, 532)) {
// line 533
echo " <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "uri2", [], "any", false, false, false, 533), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "uri2", [], "any", false, false, false, 533), "html", null, true);
echo "</a></div>
";
}
// line 535
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["image"], "comment", [], "any", true, true, false, 535)) {
// line 536
echo " <div class=\"datalabel\">Comment</div><div class=\"data\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["image"], "comment", [], "any", false, false, false, 536), "html", null, true);
echo "</div>
";
}
// line 538
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 542
echo " </div>
<div id=\"tabs3-11\">
<p>";
// line 544
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 544, $this->source); })()), "credit", [], "any", false, false, false, 544), "html", null, true);
echo "</p>
";
// line 545
if ((isset($context["is_admin"]) || array_key_exists("is_admin", $context) ? $context["is_admin"] : (function () { throw new RuntimeError('Variable "is_admin" does not exist.', 545, $this->source); })())) {
// line 546
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hoard_revisions", ["id" => twig_get_attribute($this->env, $this->source, (isset($context["hoard"]) || array_key_exists("hoard", $context) ? $context["hoard"] : (function () { throw new RuntimeError('Variable "hoard" does not exist.', 546, $this->source); })()), "id", [], "any", false, false, false, 546)]), "html", null, true);
echo "\" class=\"btn btn-default\">View Hoard Revisions</a>
";
}
// line 548
echo " </div>
</div>
</div>
</div>
</div><!-- end page container -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 446
public function block_containers($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "containers"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "containers"));
// line 447
echo " ";
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 447, "394344764")->display($context);
// line 449
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 452
public function block_objects($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "objects"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "objects"));
// line 453
echo " ";
$this->loadTemplate("@OxHoard/hoard/show.html.twig", "@OxHoard/hoard/show.html.twig", 453, "1896891524")->display($context);
// line 455
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1310819711 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 42
return "import-libs/underscore.js.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("import-libs/underscore.js.html.twig", "@OxHoard/hoard/show.html.twig", 42);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___903471706 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 43
return "import-libs/backbone.js.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("import-libs/backbone.js.html.twig", "@OxHoard/hoard/show.html.twig", 43);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 2833 => 43, 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1717882628 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 44
return "import-libs/handlebars.js.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("import-libs/handlebars.js.html.twig", "@OxHoard/hoard/show.html.twig", 44);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 3451 => 44, 2833 => 43, 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1279078495 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 45
return "import-libs/chart.js.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("import-libs/chart.js.html.twig", "@OxHoard/hoard/show.html.twig", 45);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 4069 => 45, 3451 => 44, 2833 => 43, 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___213402641 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 79
return "@OxHoardBundle/flash.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("@OxHoardBundle/flash.html.twig", "@OxHoard/hoard/show.html.twig", 79);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 4687 => 79, 4069 => 45, 3451 => 44, 2833 => 43, 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___394344764 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 447
return "@OxHoardBundle/hoard/show_containers.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("@OxHoardBundle/hoard/show_containers.html.twig", "@OxHoard/hoard/show.html.twig", 447);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 5305 => 447, 4687 => 79, 4069 => 45, 3451 => 44, 2833 => 43, 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}
/* @OxHoard/hoard/show.html.twig */
class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1896891524 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
];
}
protected function doGetParent(array $context)
{
// line 453
return "@OxHoardBundle/hoard/show_objects.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@OxHoard/hoard/show.html.twig"));
$this->parent = $this->loadTemplate("@OxHoardBundle/hoard/show_objects.html.twig", "@OxHoard/hoard/show.html.twig", 453);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@OxHoard/hoard/show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 5923 => 453, 5305 => 447, 4687 => 79, 4069 => 45, 3451 => 44, 2833 => 43, 2215 => 42, 1610 => 455, 1607 => 453, 1597 => 452, 1587 => 449, 1584 => 447, 1574 => 446, 1557 => 548, 1551 => 546, 1549 => 545, 1545 => 544, 1541 => 542, 1532 => 538, 1526 => 536, 1523 => 535, 1515 => 533, 1512 => 532, 1504 => 530, 1502 => 529, 1497 => 526, 1490 => 523, 1482 => 521, 1480 => 520, 1476 => 518, 1472 => 517, 1465 => 512, 1458 => 510, 1452 => 508, 1449 => 507, 1445 => 505, 1439 => 503, 1431 => 501, 1429 => 500, 1422 => 499, 1419 => 498, 1416 => 497, 1410 => 494, 1406 => 493, 1403 => 492, 1400 => 491, 1396 => 490, 1393 => 489, 1387 => 488, 1382 => 485, 1378 => 483, 1371 => 481, 1365 => 479, 1362 => 478, 1358 => 476, 1352 => 474, 1344 => 472, 1342 => 471, 1335 => 470, 1332 => 469, 1329 => 468, 1323 => 465, 1319 => 464, 1316 => 463, 1313 => 462, 1309 => 461, 1305 => 459, 1303 => 458, 1299 => 456, 1297 => 452, 1293 => 450, 1291 => 446, 1286 => 443, 1279 => 442, 1272 => 441, 1268 => 439, 1254 => 438, 1248 => 437, 1231 => 436, 1228 => 435, 1225 => 434, 1221 => 432, 1207 => 431, 1201 => 430, 1184 => 429, 1181 => 428, 1178 => 427, 1171 => 426, 1164 => 425, 1157 => 424, 1150 => 423, 1143 => 422, 1136 => 421, 1129 => 420, 1122 => 419, 1116 => 418, 1110 => 414, 1103 => 413, 1096 => 412, 1090 => 410, 1087 => 409, 1081 => 407, 1079 => 406, 1073 => 402, 1070 => 401, 1066 => 399, 1062 => 397, 1059 => 396, 1052 => 391, 1050 => 390, 1046 => 388, 1043 => 387, 1039 => 385, 1035 => 383, 1032 => 382, 1027 => 379, 1025 => 378, 1018 => 373, 1014 => 371, 1011 => 370, 1008 => 369, 1005 => 368, 999 => 367, 994 => 366, 991 => 365, 988 => 364, 979 => 362, 970 => 361, 968 => 360, 965 => 359, 958 => 358, 951 => 357, 944 => 356, 937 => 355, 930 => 354, 923 => 353, 916 => 352, 909 => 351, 906 => 350, 896 => 349, 893 => 348, 886 => 347, 879 => 346, 872 => 345, 866 => 344, 833 => 313, 830 => 312, 826 => 310, 823 => 309, 820 => 308, 817 => 307, 813 => 305, 809 => 303, 807 => 302, 804 => 301, 801 => 300, 797 => 298, 793 => 296, 791 => 295, 788 => 294, 785 => 293, 781 => 291, 777 => 289, 775 => 288, 772 => 287, 769 => 286, 765 => 284, 761 => 282, 758 => 281, 756 => 280, 753 => 279, 747 => 277, 745 => 276, 740 => 275, 734 => 273, 732 => 272, 727 => 271, 717 => 269, 715 => 268, 707 => 267, 702 => 266, 696 => 264, 694 => 263, 690 => 262, 680 => 257, 674 => 254, 670 => 252, 664 => 251, 661 => 250, 656 => 249, 654 => 248, 642 => 238, 608 => 206, 604 => 204, 601 => 203, 592 => 201, 589 => 200, 580 => 198, 578 => 197, 566 => 196, 562 => 194, 555 => 192, 552 => 191, 550 => 190, 541 => 189, 538 => 188, 535 => 187, 533 => 186, 530 => 185, 516 => 184, 510 => 183, 493 => 182, 487 => 180, 478 => 178, 475 => 177, 469 => 173, 466 => 172, 463 => 171, 454 => 169, 451 => 168, 442 => 166, 439 => 165, 436 => 164, 434 => 163, 357 => 89, 346 => 80, 344 => 79, 340 => 78, 336 => 77, 331 => 75, 328 => 74, 322 => 72, 320 => 71, 304 => 57, 294 => 56, 276 => 46, 273 => 45, 270 => 44, 267 => 43, 265 => 42, 260 => 39, 252 => 36, 248 => 34, 246 => 33, 243 => 32, 239 => 30, 235 => 28, 233 => 27, 186 => 25, 147 => 24, 141 => 21, 136 => 19, 132 => 18, 128 => 17, 120 => 13, 110 => 12, 93 => 5, 83 => 4, 63 => 2, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
\t{% 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>
\t\t\t\t\t{% for ref in onlineDatabaseReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% endfor %}
</div>
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t{% for ref in hoardReferences %}
\t\t\t\t\t\t{% if ref.reference %}
\t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
\t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
\t\t\t\t\t\t\t{{ref.reference}}
\t\t\t\t\t\t</a></div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% 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 %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% if ref.comment %}
\t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t<br>
\t\t\t\t\t{% 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 %}
", "@OxHoard/hoard/show.html.twig", "/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
}
}