var/cache/dev/twig/6d/6de6fb4c0353209128089cf937539a33.php line 659

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @OxHoard/hoard/show.html.twig */
  14. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.             'body' => [$this'block_body'],
  27.             'containers' => [$this'block_containers'],
  28.             'objects' => [$this'block_objects'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "@OxHoardBundle//layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  43.         $this->parent $this->loadTemplate("@OxHoardBundle//layout.html.twig""@OxHoard/hoard/show.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 2
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         echo "Hoard Details ";
  59.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse2), "html"nulltrue);
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 4
  66.     public function block_stylesheets($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  73.         // line 5
  74.         echo "    ";
  75.         $this->displayParentBlock("stylesheets"$context$blocks);
  76.         echo "
  77.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  78.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  79.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 12
  87.     public function block_javascripts($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  94.         // line 13
  95.         echo "    ";
  96.         $this->displayParentBlock("javascripts"$context$blocks);
  97.         echo "
  98.     <script>
  99.     coinShowLink = '";
  100.         // line 17
  101.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("coin_show", ["id" => "__id__"]);
  102.         echo "';
  103.     coinEditLink = '";
  104.         // line 18
  105.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("coin_edit", ["id" => "__id__"]);
  106.         echo "';
  107.     OcreTableUrl = '";
  108.         // line 19
  109.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("hoard_ocre_table");
  110.         echo "';
  111.     getCoinDataURL = '";
  112.         // line 21
  113.         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"falsefalsefalse21)]), "html"nulltrue);
  114.         echo "';
  115.     sortOptions = {}
  116.     sortOptions.Reign = { ";
  117.         // line 24
  118.         $context['_parent'] = $context;
  119.         $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); })()));
  120.         $context['loop'] = [
  121.           'parent' => $context['_parent'],
  122.           'index0' => 0,
  123.           'index'  => 1,
  124.           'first'  => true,
  125.         ];
  126.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  127.             $length count($context['_seq']);
  128.             $context['loop']['revindex0'] = $length 1;
  129.             $context['loop']['revindex'] = $length;
  130.             $context['loop']['length'] = $length;
  131.             $context['loop']['last'] = === $length;
  132.         }
  133.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  134.             echo "  '";
  135.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "reign", [], "any"falsefalsefalse24), "html"nulltrue);
  136.             echo "': ";
  137.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "sortValue", [], "any"falsefalsefalse24), "html"nulltrue);
  138.             echo "  ";
  139.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse24)) {
  140.                 echo ",";
  141.             }
  142.             ++$context['loop']['index0'];
  143.             ++$context['loop']['index'];
  144.             $context['loop']['first'] = false;
  145.             if (isset($context['loop']['length'])) {
  146.                 --$context['loop']['revindex0'];
  147.                 --$context['loop']['revindex'];
  148.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  149.             }
  150.         }
  151.         $_parent $context['_parent'];
  152.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  153.         $context array_intersect_key($context$_parent) + $_parent;
  154.         echo " };
  155.     sortOptions.Person = { ";
  156.         // line 25
  157.         $context['_parent'] = $context;
  158.         $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); })()));
  159.         $context['loop'] = [
  160.           'parent' => $context['_parent'],
  161.           'index0' => 0,
  162.           'index'  => 1,
  163.           'first'  => true,
  164.         ];
  165.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  166.             $length count($context['_seq']);
  167.             $context['loop']['revindex0'] = $length 1;
  168.             $context['loop']['revindex'] = $length;
  169.             $context['loop']['length'] = $length;
  170.             $context['loop']['last'] = === $length;
  171.         }
  172.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  173.             echo "  '";
  174.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "person", [], "any"falsefalsefalse25), "html"nulltrue);
  175.             if (twig_get_attribute($this->env$this->source$context["i"], "title", [], "any"falsefalsefalse25)) {
  176.                 echo " (";
  177.             }
  178.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "title", [], "any"falsefalsefalse25), "html"nulltrue);
  179.             if (twig_get_attribute($this->env$this->source$context["i"], "title", [], "any"falsefalsefalse25)) {
  180.                 echo ")";
  181.             }
  182.             echo "': ";
  183.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["i"], "sortValue", [], "any"falsefalsefalse25), "html"nulltrue);
  184.             echo "  ";
  185.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse25)) {
  186.                 echo ",";
  187.             }
  188.             ++$context['loop']['index0'];
  189.             ++$context['loop']['index'];
  190.             $context['loop']['first'] = false;
  191.             if (isset($context['loop']['length'])) {
  192.                 --$context['loop']['revindex0'];
  193.                 --$context['loop']['revindex'];
  194.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  195.             }
  196.         }
  197.         $_parent $context['_parent'];
  198.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  199.         $context array_intersect_key($context$_parent) + $_parent;
  200.         echo " };
  201.     ";
  202.         // line 27
  203.         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); })())) {
  204.             // line 28
  205.             echo "    isAuthorisedToEdit = true;
  206.     ";
  207.         } else {
  208.             // line 30
  209.             echo "    isAuthorisedToEdit = false;
  210.     ";
  211.         }
  212.         // line 32
  213.         echo "
  214.     ";
  215.         // line 33
  216.         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); })())) {
  217.             // line 34
  218.             echo "        newMapResult = null
  219.         \$( function() {
  220.             newMapResult = newMap(\"map\", [";
  221.             // line 36
  222.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse36), "html"nulltrue);
  223.             echo ", ";
  224.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse36), "html"nulltrue);
  225.             echo "], true, false, true);
  226.         });
  227.     ";
  228.         }
  229.         // line 39
  230.         echo "    </script>
  231.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  232.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  233.     ";
  234.         // line 42
  235.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"42"1310819711")->display($context);
  236.         // line 43
  237.         echo "    ";
  238.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"43"903471706")->display($context);
  239.         // line 44
  240.         echo "    ";
  241.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"44"1717882628")->display($context);
  242.         // line 45
  243.         echo "\t";
  244.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"45"1279078495")->display($context);
  245.         // line 46
  246.         echo "    <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  247.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  248.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  249.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  250.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  251.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  252. ";
  253.         
  254.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  255.         
  256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  257.     }
  258.     // line 56
  259.     public function block_body($context, array $blocks = [])
  260.     {
  261.         $macros $this->macros;
  262.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  263.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  264.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  265.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  266.         // line 57
  267.         echo "<noscript>
  268.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  269.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  270.                 <p>This website requires Javascript to be enabled in your browser.</p>
  271.                 <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>
  272.     </noscript>
  273.     <!-- content -->
  274.     <div class=\"marginTop clearfix\"></div>
  275.     <div id=\"content\" class=\"container\"> <!-- page content -->
  276.         <div class=\"row\">
  277.             ";
  278.         // line 71
  279.         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); })())) {
  280.             // line 72
  281.             echo "                <div class=\"edit-btn\"><a href=\"";
  282.             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"falsefalsefalse72)]), "html"nulltrue);
  283.             echo "\"><h2>Edit this Hoard <span class=\"fa fa-chevron-right\"></span></h2></a></div>
  284.             ";
  285.         }
  286.         // line 74
  287.         echo "            
  288.             <h1>";
  289.         // line 75
  290.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse75), "html"nulltrue);
  291.         echo "</h1>
  292.             Download CSV:
  293.             <a href=\"";
  294.         // line 77
  295.         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"falsefalsefalse77)]), "html"nulltrue);
  296.         echo "\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  297.             <a href=\"";
  298.         // line 78
  299.         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"falsefalsefalse78)]), "html"nulltrue);
  300.         echo "\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  301.             ";
  302.         // line 79
  303.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"79"213402641")->display($context);
  304.         // line 80
  305.         echo "
  306.                     <div class=\"marginTop clearfix\"></div>
  307.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  308.                     <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>
  309.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  310.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  311.                             <div class=\"modal-content\">
  312.                                 <div class=\"modal-header\">
  313.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  314.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: ";
  315.         // line 89
  316.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse89), "html"nulltrue);
  317.         echo "</h4>
  318.                                 </div>
  319.                                 <div class=\"modal-body\">
  320.                                     <div>
  321.                                         <label for=\"chart-type\">Chart type </label>
  322.                                         <select class=\"dropdown\" id=\"chart-type\">
  323.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  324.                                             <option value=\"pie\">Pie</option>
  325.                                         </select>
  326.                                         <label for=\"chart-attribute\">Coins per </label>
  327.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  328.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  329.                                             <option value=\"Reign\">Reign</option>
  330.                                             <option value=\"Person\">Person</option>
  331.                                             <option value=\"Mint\">Mint</option>
  332.                                             <option value=\"Denomination\">Denomination</option>
  333.                                             <option value=\"Material\">Material</option>
  334.                                         </select>
  335.                                         <span id=\"chart-stacked-container\">
  336.                                         <label for=\"chart-stacked\">Stacked per</label>
  337.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  338.                                             <option value=\"\" selected=\"selected\"> - </option>
  339.                                             <option value=\"Period\" disabled>Period</option>
  340.                                             <option value=\"Reign\">Reign</option>
  341.                                             <option value=\"Person\">Person</option>
  342.                                             <option value=\"Mint\">Mint</option>
  343.                                             <option value=\"Denomination\">Denomination</option>
  344.                                             <option value=\"Material\">Material</option>
  345.                                         </select>
  346.                                         </span>
  347.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  348.                                             <label for=\"chart-reign\"> for reign </label>
  349.                                             <select class=\"dropdown\" id=\"chart-reign\">
  350.                                             </select>
  351.                                         </span>
  352.                                     </div>
  353.                                     <div id=\"show-legend\" class=\"hidden\">
  354.                                         <fieldset>
  355.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  356.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  357.                                         </fieldset>
  358.                                     </div>
  359.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  360.                                     <div style=\"height: 70vh\">
  361.                                         <canvas id=\"hoard-chart\"></canvas>
  362.                                     </div>
  363.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  364.                                         <fieldset>
  365.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  366.                                             <label for=\"numbers\">Numbers</label>
  367.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  368.                                             <label for=\"percentages\">Percentages</label>
  369.                                         </fieldset>
  370.                                     </div>
  371.                                 </div>
  372.                                 <div class=\"modal-footer\">
  373.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  374.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  375.                                 </div>
  376.                             </div>
  377.                         </div>
  378.                     </div>
  379.                     <div class=\"marginTop clearfix\"></div>
  380.             <div class=\"col-md-12 marginTop\">
  381.                 <div class=\"col-md-6\">
  382.                     <!-- Location tabs -->
  383.                     <div id=\"tabs\" class=\"tabs\">
  384.                         <ul>
  385.                             <li><a href=\"#tab-1\">Location</a></li>
  386.                         </ul>
  387.                         <div id=\"tab-1\">
  388.                             <div class=\"hoardlistview-6col\">
  389.                                 ";
  390.         // line 163
  391.         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); })())) {
  392.             // line 164
  393.             echo "                                ";
  394.             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"falsefalsefalse164) || (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); })()))) {
  395.                 // line 165
  396.                 echo "                                ";
  397.                 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"falsefalsefalse165)) {
  398.                     // line 166
  399.                     echo "                                <div class=\"datalabel\">City</div><div class=\"data\">";
  400.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse166), "html"nulltrue);
  401.                     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"falsefalsefalse166)) {
  402.                         echo "*";
  403.                     }
  404.                     echo "</div>
  405.                                 ";
  406.                 }
  407.                 // line 168
  408.                 echo "                                ";
  409.                 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"falsefalsefalse168)) {
  410.                     // line 169
  411.                     echo "                                <div class=\"datalabel\">Address</div><div class=\"data\">";
  412.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse169), "html"nulltrue);
  413.                     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"falsefalsefalse169)) {
  414.                         echo "*";
  415.                     }
  416.                     echo "</div>
  417.                                 ";
  418.                 }
  419.                 // line 171
  420.                 echo "                                ";
  421.             }
  422.             // line 172
  423.             echo "                                ";
  424.         } else {
  425.             // line 173
  426.             echo "                                <p>
  427.                                     This Hoard's location is hidden
  428.                                 </p>
  429.                                 ";
  430.         }
  431.         // line 177
  432.         echo "                                ";
  433.         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"falsefalsefalse177) || (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); })()))) {
  434.             // line 178
  435.             echo "                                <div class=\"datalabel\">County</div><div class=\"data\">";
  436.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse178), "html"nulltrue);
  437.             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"falsefalsefalse178)) {
  438.                 echo "*";
  439.             }
  440.             echo "</div>
  441.                                 ";
  442.         }
  443.         // line 180
  444.         echo "                                <div class=\"datalabel\">Region</div><div class=\"data\">";
  445.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse180), "html"nulltrue);
  446.         echo "</div>
  447.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  448.                                     ";
  449.         // line 182
  450.         $context['_parent'] = $context;
  451.         $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"falsefalsefalse182));
  452.         $context['loop'] = [
  453.           'parent' => $context['_parent'],
  454.           'index0' => 0,
  455.           'index'  => 1,
  456.           'first'  => true,
  457.         ];
  458.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  459.             $length count($context['_seq']);
  460.             $context['loop']['revindex0'] = $length 1;
  461.             $context['loop']['revindex'] = $length;
  462.             $context['loop']['length'] = $length;
  463.             $context['loop']['last'] = === $length;
  464.         }
  465.         foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  466.             // line 183
  467.             echo "                                      ";
  468.             echo twig_escape_filter($this->env$context["country"], "html"nulltrue);
  469.             if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse183)) {
  470.                 echo ", ";
  471.             }
  472.             // line 184
  473.             echo "                                    ";
  474.             ++$context['loop']['index0'];
  475.             ++$context['loop']['index'];
  476.             $context['loop']['first'] = false;
  477.             if (isset($context['loop']['length'])) {
  478.                 --$context['loop']['revindex0'];
  479.                 --$context['loop']['revindex'];
  480.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  481.             }
  482.         }
  483.         $_parent $context['_parent'];
  484.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
  485.         $context array_intersect_key($context$_parent) + $_parent;
  486.         // line 185
  487.         echo "                                </div>
  488.                                 ";
  489.         // line 186
  490.         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); })())) {
  491.             // line 187
  492.             echo "                                ";
  493.             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"falsefalsefalse187)) {
  494.                 // line 188
  495.                 echo "                                    <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  496.                                         <a href=\"";
  497.                 // line 189
  498.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_ancientplace_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse189), "id", [], "any"falsefalsefalse189)]), "html"nulltrue);
  499.                 echo "\">";
  500.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse189), "html"nulltrue);
  501.                 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"falsefalsefalse189)) {
  502.                     echo "*";
  503.                 }
  504.                 echo "</a>
  505.                                         ";
  506.                 // line 190
  507.                 if (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse190), "uri2", [], "any"falsefalsefalse190)) {
  508.                     // line 191
  509.                     echo "                                        <br>
  510.                                         <a href=\"https://";
  511.                     // line 192
  512.                     echo twig_escape_filter($this->envtwig_replace_filter(twig_replace_filter(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse192), "uri2", [], "any"falsefalsefalse192), ["https://" => ""]), ["http://" => ""]), "html"nulltrue);
  513.                     echo "\">";
  514.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse192), "uri2", [], "any"falsefalsefalse192), "html"nulltrue);
  515.                     echo " <i class='fa fa-external-link'></i></a>
  516.                                         ";
  517.                 }
  518.                 // line 194
  519.                 echo "                                    </div>
  520.                                 ";
  521.             }
  522.             // line 196
  523.             echo "                                <div class=\"datalabel\">Lat/Long/Alt</div><div class=\"data\">";
  524.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse196), "html"nulltrue);
  525.             echo " / ";
  526.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse196), "html"nulltrue);
  527.             echo " / ";
  528.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse196), 2), "html"nulltrue);
  529.             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"falsefalsefalse196)) {
  530.                 echo "*";
  531.             }
  532.             echo " <a href=\"\">view</a></div>
  533.                                 ";
  534.             // line 197
  535.             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"falsefalsefalse197)) {
  536.                 // line 198
  537.                 echo "                                <div class=\"datalabel\">Location details</div><div class=\"data\">";
  538.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse198), "html"nulltrue);
  539.                 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"falsefalsefalse198)) {
  540.                     echo "*";
  541.                 }
  542.                 echo "</div>
  543.                                 ";
  544.             }
  545.             // line 200
  546.             echo "                                ";
  547.             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"falsefalsefalse200)) {
  548.                 // line 201
  549.                 echo "                                    <div class=\"datalabel\">Find spot comment</div><div class=\"data\">";
  550.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse201), "html"nulltrue);
  551.                 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"falsefalsefalse201)) {
  552.                     echo "*";
  553.                 }
  554.                 echo "</div>
  555.                                 ";
  556.             }
  557.             // line 203
  558.             echo "                                ";
  559.             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"falsefalsefalse203) || 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"falsefalsefalse203)) && (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); })()))) {
  560.                 // line 204
  561.                 echo "                                <div>Fields with * are hidden in public view</div>
  562.                                 ";
  563.             }
  564.             // line 206
  565.             echo "                                <div id=\"map\" class=\"map-view marginTop\"></div>
  566.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  567.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  568.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  569.                                     </div>
  570.                                     <div style=\"padding: 10px;\">
  571.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  572.                                     </div>
  573.                                     <div style=\"padding: 10px;\">
  574.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  575.                                     </div>
  576.                                 </div>
  577.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  578.                                     <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\"/>
  579.                                 </div>
  580.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  581.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  582.                                         <div class=\"panel panel-default\">
  583.                                             <div class=\"panel-heading\">
  584.                                                 <h4 class=\"panel-title\">
  585.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  586.                                                         Data not added to the map
  587.                                                     </a>
  588.                                                 </h4>
  589.                                             </div>
  590.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  591.                                                 <div class=\"panel-body\"></div>
  592.                                             </div>
  593.                                         </div>
  594.                                     </div>
  595.                                 </div>
  596.                                 ";
  597.         }
  598.         // line 238
  599.         echo "                            </div>
  600.                         </div>
  601.                     </div>
  602.                 </div>
  603.                 <div class=\"col-md-6\">
  604.                     <!-- Hoard Summary tabs -->
  605.                     <div id=\"tabs\" class=\"tabs\">
  606.                         <ul>
  607.                             <li><a href=\"#tab-1\">Information</a></li>
  608.                         </ul>
  609.                         ";
  610.         // line 248
  611.         $context["total"] = 0;
  612.         // line 249
  613.         echo "                        ";
  614.         $context['_parent'] = $context;
  615.         $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"falsefalsefalse249));
  616.         foreach ($context['_seq'] as $context["_key"] => $context["coin"]) {
  617.             // line 250
  618.             echo "                            ";
  619.             $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"falsefalsefalse250));
  620.             // line 251
  621.             echo "                        ";
  622.         }
  623.         $_parent $context['_parent'];
  624.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['coin'], $context['_parent'], $context['loop']);
  625.         $context array_intersect_key($context$_parent) + $_parent;
  626.         // line 252
  627.         echo "                        <div id=\"tab-1\">
  628.                             <div class=\"hoardlistview-6col\">
  629.                                 <div class=\"datalabel\">ID</div><div class=\"data\">";
  630.         // line 254
  631.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse254), "html"nulltrue);
  632.         echo "</div>
  633.                                 <div class=\"datalabel\">Permalink</div>
  634.                                 <div class=\"data\">
  635.                                     <a id=\"permalink-value\" href=\"";
  636.         // line 257
  637.         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"nulltrue);
  638.         echo "\">";
  639.         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"nulltrue);
  640.         echo "</a>
  641.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  642.                                         <i class=\"fa fa-copy\"></i>
  643.                                     </a>
  644.                                 </div>
  645.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">";
  646.         // line 262
  647.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse262), "html"nulltrue);
  648.         echo "</div>
  649.                                 ";
  650.         // line 263
  651.         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"falsefalsefalse263)) {
  652.             // line 264
  653.             echo "                                <div class=\"datalabel\">Alternative names</div><div class=\"data\">";
  654.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse264), "html"nulltrue);
  655.             echo "</div>
  656.                                 ";
  657.         }
  658.         // line 266
  659.         echo "                                <div class=\"datalabel\">Data type</div><div class=\"data\">";
  660.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse266), "html"nulltrue);
  661.         echo "</div>
  662.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">";
  663.         // line 267
  664.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse267), "html"nulltrue);
  665.         echo " ";
  666.         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"nulltrue);
  667.         echo " ";
  668.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse267), "html"nulltrue);
  669.         echo "</div><br>
  670.                                 ";
  671.         // line 268
  672.         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"falsefalsefalse268)) {
  673.             // line 269
  674.             echo "                                <div class=\"datalabel\">(to)</div><div class=\"data\">";
  675.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse269), "html"nulltrue);
  676.             echo " ";
  677.             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"nulltrue);
  678.             echo " ";
  679.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse269), "html"nulltrue);
  680.             echo "</div>
  681.                                 ";
  682.         }
  683.         // line 271
  684.         echo "                                <div class=\"datalabel\">Total number of coins</div><div class=\"data\">";
  685.         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"nulltrue);
  686.         echo "</div>
  687.                                 ";
  688.         // line 272
  689.         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"falsefalsefalse272)) {
  690.             // line 273
  691.             echo "                                    <div class=\"datalabel\">Roman Province</div><div class=\"data\">";
  692.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse273), "html"nulltrue);
  693.             echo "</div>
  694.                                 ";
  695.         }
  696.         // line 275
  697.         echo "                                <div class=\"datalabel\">Summary</div><div class=\"data\">";
  698.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse275), "html"nulltrue);
  699.         echo "</div>
  700.                                 ";
  701.         // line 276
  702.         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"falsefalsefalse276))) {
  703.             // line 277
  704.             echo "                                <div class=\"datalabel\">Internal note</div><div class=\"data\">";
  705.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse277), "html"nulltrue);
  706.             echo "</div>
  707.                                 ";
  708.         }
  709.         // line 279
  710.         echo "                                <br>
  711.                                 ";
  712.         // line 280
  713.         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); })())) {
  714.             // line 281
  715.             echo "                                    ";
  716.             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"falsefalsefalse281)) {
  717.                 // line 282
  718.                 echo "                                        <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  719.                                     ";
  720.             } else {
  721.                 // line 284
  722.                 echo "                                        <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  723.                                     ";
  724.             }
  725.             // line 286
  726.             echo "                                    ";
  727.             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); })())) {
  728.                 // line 287
  729.                 echo "                                        <br>
  730.                                         ";
  731.                 // line 288
  732.                 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"falsefalsefalse288)) {
  733.                     // line 289
  734.                     echo "                                            <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  735.                                         ";
  736.                 } else {
  737.                     // line 291
  738.                     echo "                                            <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  739.                                         ";
  740.                 }
  741.                 // line 293
  742.                 echo "                                    ";
  743.             }
  744.             // line 294
  745.             echo "                                    <br>
  746.                                     ";
  747.             // line 295
  748.             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"falsefalsefalse295)) {
  749.                 // line 296
  750.                 echo "                                        <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  751.                                     ";
  752.             } else {
  753.                 // line 298
  754.                 echo "                                        <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  755.                                     ";
  756.             }
  757.             // line 300
  758.             echo "                                    ";
  759.             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); })())) {
  760.                 // line 301
  761.                 echo "                                        <br>
  762.                                         ";
  763.                 // line 302
  764.                 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"falsefalsefalse302)) {
  765.                     // line 303
  766.                     echo "                                            <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  767.                                         ";
  768.                 } else {
  769.                     // line 305
  770.                     echo "                                            <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  771.                                         ";
  772.                 }
  773.                 // line 307
  774.                 echo "                                    ";
  775.             }
  776.             // line 308
  777.             echo "                                ";
  778.         } else {
  779.             // line 309
  780.             echo "                                    ";
  781.             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"falsefalsefalse309)) {
  782.                 // line 310
  783.                 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.
  784.                                     ";
  785.             }
  786.             // line 312
  787.             echo "                                ";
  788.         }
  789.         // line 313
  790.         echo "                            </div>
  791.                         </div>
  792.                     </div>
  793.                 </div>  <!-- /col-6 -->
  794.             </div>  <!-- /col-12 -->
  795.         </div> <!-- /row -->
  796.         <!-- hoard detail tabs -->
  797.         <div class=\"row\">
  798.             <div class=\"col-md-12 marginTop\">
  799.                 <div id=\"tabs3\" class=\"tabs\">
  800.                     <ul>
  801.                         <li><a href=\"#tabs3-1\">Details</a></li>
  802.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  803.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  804.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  805.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  806.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  807.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  808.                         <li><a href=\"#tabs3-6\">References</a></li>
  809.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  810.                         <li><a href=\"#tabs3-8\">Images</a></li>
  811.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  812.                     </ul>
  813.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  814.                         <ul>
  815.                             ";
  816.         // line 344
  817.         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"falsefalsefalse344))) {
  818.             echo "<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">";
  819.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse344), "html"nulltrue);
  820.             echo "</div></li>";
  821.         }
  822.         // line 345
  823.         echo "                            ";
  824.         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"falsefalsefalse345))) {
  825.             echo "<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">";
  826.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse345), "html"nulltrue);
  827.             echo "</div></li>";
  828.         }
  829.         // line 346
  830.         echo "                            ";
  831.         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"falsefalsefalse346))) {
  832.             echo "<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">";
  833.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse346), "html"nulltrue);
  834.             echo "</div></li>";
  835.         }
  836.         // line 347
  837.         echo "                            ";
  838.         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"falsefalsefalse347))) {
  839.             echo "<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">";
  840.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse347), "html"nulltrue);
  841.             echo "</div></li>";
  842.         }
  843.         // line 348
  844.         echo "                            ";
  845.         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"falsefalsefalse348) || (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); })()))) {
  846.             // line 349
  847.             echo "                                ";
  848.             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"falsefalsefalse349))) {
  849.                 echo "<li><div class=\"datalabel\">Finder(s)</div> <div class=\"data\">";
  850.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse349), "html"nulltrue);
  851.                 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"falsefalsefalse349)) {
  852.                     echo "*";
  853.                 }
  854.                 echo "</div></li>";
  855.             }
  856.             // line 350
  857.             echo "                            ";
  858.         }
  859.         // line 351
  860.         echo "                            ";
  861.         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"falsefalsefalse351))) {
  862.             echo "<li><div class=\"datalabel\">Comment</div> <div class=\"data\">";
  863.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse351), "html"nulltrue);
  864.             echo "</div></li>";
  865.         }
  866.         // line 352
  867.         echo "                            ";
  868.         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"falsefalsefalse352))) {
  869.             echo "<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">";
  870.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse352), "html"nulltrue);
  871.             echo "</div></li>";
  872.         }
  873.         // line 353
  874.         echo "                            ";
  875.         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"falsefalsefalse353))) {
  876.             echo "<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">";
  877.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse353), "html"nulltrue);
  878.             echo "</div></li>";
  879.         }
  880.         // line 354
  881.         echo "                            ";
  882.         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"falsefalsefalse354))) {
  883.             echo "<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">";
  884.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse354), "html"nulltrue);
  885.             echo "</div></li>";
  886.         }
  887.         // line 355
  888.         echo "                            ";
  889.         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"falsefalsefalse355))) {
  890.             echo "<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">";
  891.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse355), "html"nulltrue);
  892.             echo "</div></li>";
  893.         }
  894.         // line 356
  895.         echo "                            ";
  896.         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"falsefalsefalse356))) {
  897.             echo "<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">";
  898.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse356), "html"nulltrue);
  899.             echo "</div></li>";
  900.         }
  901.         // line 357
  902.         echo "                            ";
  903.         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"falsefalsefalse357))) {
  904.             echo "<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">";
  905.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse357), "html"nulltrue);
  906.             echo "</div></li>";
  907.         }
  908.         // line 358
  909.         echo "                            ";
  910.         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"falsefalsefalse358))) {
  911.             echo "<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">";
  912.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse358), "html"nulltrue);
  913.             echo "</div></li>";
  914.         }
  915.         // line 359
  916.         echo "                        
  917.                             ";
  918.         // line 360
  919.         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); })())) {
  920.             // line 361
  921.             echo "                                <li><div class=\"datalabel\">Created by</div> <div class=\"data\">";
  922.             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"falsefalsefalse361)) {
  923.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse361), "html"nulltrue);
  924.             } else {
  925.                 echo "Not known";
  926.             }
  927.             echo "</div></li>
  928.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">";
  929.             // line 362
  930.             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"falsefalsefalse362)) {
  931.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse362), "html"nulltrue);
  932.             } else {
  933.                 echo "Not known";
  934.             }
  935.             echo "</div></li>
  936.                             ";
  937.         }
  938.         // line 364
  939.         echo "                            ";
  940.         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"falsefalsefalse364)) && (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); })()))) {
  941.             // line 365
  942.             echo "                                ";
  943.             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"falsefalsefalse365) != "Public and Collaborators"))) {
  944.                 // line 366
  945.                 echo "                                    <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">";
  946.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse366), "html"nulltrue);
  947.                 echo "</div></li>
  948.                                     ";
  949.                 // line 367
  950.                 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"falsefalsefalse367))) {
  951.                     echo "<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">";
  952.                     echo twig_escape_filter($this->envtwig_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"falsefalsefalse367), "html"nulltrue);
  953.                     echo "</div></li>";
  954.                 }
  955.                 // line 368
  956.                 echo "                                ";
  957.             }
  958.             // line 369
  959.             echo "                            ";
  960.         }
  961.         // line 370
  962.         echo "                            ";
  963.         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"falsefalsefalse370) && (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); })()))) {
  964.             // line 371
  965.             echo "                            <div>Fields with * are hidden in public view</div>
  966.                             ";
  967.         }
  968.         // line 373
  969.         echo "
  970.                         </ul>
  971.                     </div>
  972.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  973.                         ";
  974.         // line 378
  975.         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); })())) {
  976.             // line 379
  977.             echo "                            <p>Fetching coin data</p>
  978.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  979.                         ";
  980.         } else {
  981.             // line 382
  982.             echo "                            ";
  983.             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"falsefalsefalse382)) {
  984.                 // line 383
  985.                 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.
  986.                             ";
  987.             } else {
  988.                 // line 385
  989.                 echo "                                The coin summary for this hoard has been hidden
  990.                             ";
  991.             }
  992.             // line 387
  993.             echo "                        ";
  994.         }
  995.         // line 388
  996.         echo "                    </div>
  997.                     <div id=\"tabs3-10\">
  998.                         ";
  999.         // line 390
  1000.         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); })())) {
  1001.             // line 391
  1002.             echo "                            <div class=\"coin-data-container\">
  1003.                                 <p>Fetching coin data</p>
  1004.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  1005.                             </div>
  1006.                         ";
  1007.         } else {
  1008.             // line 396
  1009.             echo "                            ";
  1010.             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"falsefalsefalse396)) {
  1011.                 // line 397
  1012.                 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.
  1013.                             ";
  1014.             } else {
  1015.                 // line 399
  1016.                 echo "                                The coins for this hoard have been hidden
  1017.                             ";
  1018.             }
  1019.             // line 401
  1020.             echo "                        ";
  1021.         }
  1022.         // line 402
  1023.         echo "                    </div>
  1024.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  1025.                         <ul>
  1026.                             ";
  1027.         // line 406
  1028.         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"falsefalsefalse406)) {
  1029.             // line 407
  1030.             echo "                                <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">";
  1031.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse407), "html"nulltrue);
  1032.             echo "</div></li>
  1033.                             ";
  1034.         }
  1035.         // line 409
  1036.         echo "                            ";
  1037.         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"falsefalsefalse409)) {
  1038.             // line 410
  1039.             echo "                                <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">";
  1040.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse410), "html"nulltrue);
  1041.             echo "</div></li>
  1042.                             ";
  1043.         }
  1044.         // line 412
  1045.         echo "                            ";
  1046.         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"falsefalsefalse412)) {
  1047.             echo "<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">";
  1048.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse412), "html"nulltrue);
  1049.             echo "</div></li>";
  1050.         }
  1051.         // line 413
  1052.         echo "                            ";
  1053.         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"falsefalsefalse413)) {
  1054.             echo "<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">";
  1055.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse413), "html"nulltrue);
  1056.             echo "</div></li>";
  1057.         }
  1058.         // line 414
  1059.         echo "                        </ul>
  1060.                     </div>
  1061.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  1062.                         <ul>
  1063.                             ";
  1064.         // line 418
  1065.         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"falsefalsefalse418))) {
  1066.             echo "<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">";
  1067.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse418), "html"nulltrue);
  1068.             echo "</div></li>";
  1069.         }
  1070.         // line 419
  1071.         echo "                            ";
  1072.         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"falsefalsefalse419))) {
  1073.             echo "<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">";
  1074.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse419), "html"nulltrue);
  1075.             echo "</div></li>";
  1076.         }
  1077.         // line 420
  1078.         echo "                            ";
  1079.         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"falsefalsefalse420))) {
  1080.             echo "<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">";
  1081.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse420), "html"nulltrue);
  1082.             echo "</div></li>";
  1083.         }
  1084.         // line 421
  1085.         echo "                            ";
  1086.         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"falsefalsefalse421))) {
  1087.             echo "<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">";
  1088.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse421), "html"nulltrue);
  1089.             echo "</div></li>";
  1090.         }
  1091.         // line 422
  1092.         echo "                            ";
  1093.         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"falsefalsefalse422))) {
  1094.             echo "<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">";
  1095.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse422), "html"nulltrue);
  1096.             echo "</div></li>";
  1097.         }
  1098.         // line 423
  1099.         echo "                            ";
  1100.         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"falsefalsefalse423))) {
  1101.             echo "<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">";
  1102.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse423), "html"nulltrue);
  1103.             echo "</div></li>";
  1104.         }
  1105.         // line 424
  1106.         echo "                            ";
  1107.         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"falsefalsefalse424))) {
  1108.             echo "<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">";
  1109.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse424), "html"nulltrue);
  1110.             echo "</div></li>";
  1111.         }
  1112.         // line 425
  1113.         echo "                            ";
  1114.         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"falsefalsefalse425))) {
  1115.             echo "<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">";
  1116.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse425), "html"nulltrue);
  1117.             echo "</div></li>";
  1118.         }
  1119.         // line 426
  1120.         echo "                            ";
  1121.         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"falsefalsefalse426))) {
  1122.             echo "<li><div class=\"datalabel\">Site class</div> <div class=\"data\">";
  1123.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse426), "html"nulltrue);
  1124.             echo "</div></li>";
  1125.         }
  1126.         // line 427
  1127.         echo "                            ";
  1128.         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"falsefalsefalse427))) {
  1129.             // line 428
  1130.             echo "                            <div class=\"datalabel\">Context</div><div class=\"data\">
  1131.                                 ";
  1132.             // line 429
  1133.             $context['_parent'] = $context;
  1134.             $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"falsefalsefalse429));
  1135.             $context['loop'] = [
  1136.               'parent' => $context['_parent'],
  1137.               'index0' => 0,
  1138.               'index'  => 1,
  1139.               'first'  => true,
  1140.             ];
  1141.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1142.                 $length count($context['_seq']);
  1143.                 $context['loop']['revindex0'] = $length 1;
  1144.                 $context['loop']['revindex'] = $length;
  1145.                 $context['loop']['length'] = $length;
  1146.                 $context['loop']['last'] = === $length;
  1147.             }
  1148.             foreach ($context['_seq'] as $context["_key"] => $context["archaeologySiteContextDetail"]) {
  1149.                 // line 430
  1150.                 echo "                                  ";
  1151.                 echo twig_escape_filter($this->env$context["archaeologySiteContextDetail"], "html"nulltrue);
  1152.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse430)) {
  1153.                     echo ", ";
  1154.                 }
  1155.                 // line 431
  1156.                 echo "                                ";
  1157.                 ++$context['loop']['index0'];
  1158.                 ++$context['loop']['index'];
  1159.                 $context['loop']['first'] = false;
  1160.                 if (isset($context['loop']['length'])) {
  1161.                     --$context['loop']['revindex0'];
  1162.                     --$context['loop']['revindex'];
  1163.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  1164.                 }
  1165.             }
  1166.             $_parent $context['_parent'];
  1167.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['archaeologySiteContextDetail'], $context['_parent'], $context['loop']);
  1168.             $context array_intersect_key($context$_parent) + $_parent;
  1169.             // line 432
  1170.             echo "                            </div>
  1171.                             ";
  1172.         }
  1173.         // line 434
  1174.         echo "                            ";
  1175.         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"falsefalsefalse434))) {
  1176.             // line 435
  1177.             echo "                            <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  1178.                                 ";
  1179.             // line 436
  1180.             $context['_parent'] = $context;
  1181.             $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"falsefalsefalse436));
  1182.             $context['loop'] = [
  1183.               'parent' => $context['_parent'],
  1184.               'index0' => 0,
  1185.               'index'  => 1,
  1186.               'first'  => true,
  1187.             ];
  1188.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  1189.                 $length count($context['_seq']);
  1190.                 $context['loop']['revindex0'] = $length 1;
  1191.                 $context['loop']['revindex'] = $length;
  1192.                 $context['loop']['length'] = $length;
  1193.                 $context['loop']['last'] = === $length;
  1194.             }
  1195.             foreach ($context['_seq'] as $context["_key"] => $context["archaeologyContextNature"]) {
  1196.                 // line 437
  1197.                 echo "                                ";
  1198.                 echo twig_escape_filter($this->env$context["archaeologyContextNature"], "html"nulltrue);
  1199.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse437)) {
  1200.                     echo ", ";
  1201.                 }
  1202.                 // line 438
  1203.                 echo "                                ";
  1204.                 ++$context['loop']['index0'];
  1205.                 ++$context['loop']['index'];
  1206.                 $context['loop']['first'] = false;
  1207.                 if (isset($context['loop']['length'])) {
  1208.                     --$context['loop']['revindex0'];
  1209.                     --$context['loop']['revindex'];
  1210.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  1211.                 }
  1212.             }
  1213.             $_parent $context['_parent'];
  1214.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['archaeologyContextNature'], $context['_parent'], $context['loop']);
  1215.             $context array_intersect_key($context$_parent) + $_parent;
  1216.             // line 439
  1217.             echo "                            </div>
  1218.                             ";
  1219.         }
  1220.         // line 441
  1221.         echo "                            ";
  1222.         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"falsefalsefalse441))) {
  1223.             echo "<li><div class=\"datalabel\">Period</div> <div class=\"data\">";
  1224.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse441), "html"nulltrue);
  1225.             echo "</div></li>";
  1226.         }
  1227.         // line 442
  1228.         echo "                            ";
  1229.         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"falsefalsefalse442))) {
  1230.             echo "<li><div class=\"datalabel\">End period</div> <div class=\"data\">";
  1231.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse442), "html"nulltrue);
  1232.             echo "</div></li>";
  1233.         }
  1234.         // line 443
  1235.         echo "                        </ul>
  1236.                     </div>
  1237.                     <div id=\"tabs3-4\">
  1238.                         ";
  1239.         // line 446
  1240.         $this->displayBlock('containers'$context$blocks);
  1241.         // line 450
  1242.         echo "                    </div>
  1243.                     <div id=\"tabs3-5\">
  1244.                         ";
  1245.         // line 452
  1246.         $this->displayBlock('objects'$context$blocks);
  1247.         // line 456
  1248.         echo "                    </div>
  1249.                     <div id=\"tabs3-6\">
  1250.                             ";
  1251.         // line 458
  1252.         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); })()))) {
  1253.             // line 459
  1254.             echo "                            <div class=\"hoardlistview-6col\">
  1255.                                 <h2>Permalink in other online databases</h2>
  1256.             \t\t\t\t\t";
  1257.             // line 461
  1258.             $context['_parent'] = $context;
  1259.             $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); })()));
  1260.             foreach ($context['_seq'] as $context["_key"] => $context["ref"]) {
  1261.                 // line 462
  1262.                 echo "            \t\t\t\t\t\t";
  1263.                 if (twig_get_attribute($this->env$this->source$context["ref"], "reference", [], "any"falsefalsefalse462)) {
  1264.                     // line 463
  1265.                     echo "            \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  1266.             \t\t\t\t\t\t<div class=\"data\"><a href=\"";
  1267.                     // line 464
  1268.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reference_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ref"], "reference", [], "any"falsefalsefalse464), "id", [], "any"falsefalsefalse464)]), "html"nulltrue);
  1269.                     echo "\">
  1270.             \t\t\t\t\t\t\t";
  1271.                     // line 465
  1272.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "reference", [], "any"falsefalsefalse465), "html"nulltrue);
  1273.                     echo "
  1274.             \t\t\t\t\t\t</a></div>
  1275.             \t\t\t\t\t\t";
  1276.                 }
  1277.                 // line 468
  1278.                 echo "            \t\t\t\t\t\t";
  1279.                 if (twig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse468)) {
  1280.                     // line 469
  1281.                     echo "                                        ";
  1282.                     if (twig_in_filter("http://"twig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse469))) {
  1283.                         // line 470
  1284.                         echo "                                        <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
  1285.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse470), "html"nulltrue);
  1286.                         echo "\" target=\"_blank\">";
  1287.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse470), "html"nulltrue);
  1288.                         echo " <i class=\"fa fa-external-link\"></i></a></div>
  1289.                                         ";
  1290.                     } elseif (twig_in_filter("https://"twig_get_attribute($this->env$this->source,                     // line 471
  1291. $context["ref"], "referenceStr", [], "any"falsefalsefalse471))) {
  1292.                         // line 472
  1293.                         echo "                                        <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
  1294.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse472), "html"nulltrue);
  1295.                         echo "\" target=\"_blank\">";
  1296.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse472), "html"nulltrue);
  1297.                         echo " <i class=\"fa fa-external-link\"></i></a></div>
  1298.                                         ";
  1299.                     } else {
  1300.                         // line 474
  1301.                         echo "                                        <div class=\"datalabel\">Ref</div><div class=\"data\">";
  1302.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse474), "html"nulltrue);
  1303.                         echo "</div>
  1304.                                         ";
  1305.                     }
  1306.                     // line 476
  1307.                     echo "                                    
  1308.             \t\t\t\t\t\t";
  1309.                 }
  1310.                 // line 478
  1311.                 echo "            \t\t\t\t\t\t";
  1312.                 if (twig_get_attribute($this->env$this->source$context["ref"], "comment", [], "any"falsefalsefalse478)) {
  1313.                     // line 479
  1314.                     echo "            \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">";
  1315.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "comment", [], "any"falsefalsefalse479), "html"nulltrue);
  1316.                     echo "</div>
  1317.             \t\t\t\t\t\t";
  1318.                 }
  1319.                 // line 481
  1320.                 echo "            \t\t\t\t\t\t<br>
  1321.             \t\t\t\t\t";
  1322.             }
  1323.             $_parent $context['_parent'];
  1324.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ref'], $context['_parent'], $context['loop']);
  1325.             $context array_intersect_key($context$_parent) + $_parent;
  1326.             // line 483
  1327.             echo "                            </div>
  1328.        \t\t\t\t\t\t";
  1329.         }
  1330.         // line 485
  1331.         echo "
  1332.                             <div class=\"hoardlistview-6col\">
  1333.                                 <h2>References</h2>
  1334.                                 ";
  1335.         // line 488
  1336.         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"falsefalsefalse488))) {
  1337.             echo "<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">";
  1338.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse488), "html"nulltrue);
  1339.             echo "</div></li>";
  1340.         }
  1341.         // line 489
  1342.         echo "
  1343.             \t\t\t\t\t";
  1344.         // line 490
  1345.         $context['_parent'] = $context;
  1346.         $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); })()));
  1347.         foreach ($context['_seq'] as $context["_key"] => $context["ref"]) {
  1348.             // line 491
  1349.             echo "            \t\t\t\t\t\t";
  1350.             if (twig_get_attribute($this->env$this->source$context["ref"], "reference", [], "any"falsefalsefalse491)) {
  1351.                 // line 492
  1352.                 echo "            \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  1353.             \t\t\t\t\t\t<div class=\"data\"><a href=\"";
  1354.                 // line 493
  1355.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("reference_show", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ref"], "reference", [], "any"falsefalsefalse493), "id", [], "any"falsefalsefalse493)]), "html"nulltrue);
  1356.                 echo "\">
  1357.             \t\t\t\t\t\t\t";
  1358.                 // line 494
  1359.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "reference", [], "any"falsefalsefalse494), "html"nulltrue);
  1360.                 echo "
  1361.             \t\t\t\t\t\t</a></div>
  1362.             \t\t\t\t\t\t";
  1363.             }
  1364.             // line 497
  1365.             echo "            \t\t\t\t\t\t";
  1366.             if (twig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse497)) {
  1367.                 // line 498
  1368.                 echo "                                        ";
  1369.                 if (twig_in_filter("http://"twig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse498))) {
  1370.                     // line 499
  1371.                     echo "                                        <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
  1372.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse499), "html"nulltrue);
  1373.                     echo "\" target=\"_blank\">";
  1374.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse499), "html"nulltrue);
  1375.                     echo " <i class=\"fa fa-external-link\"></i></a></div>
  1376.                                         ";
  1377.                 } elseif (twig_in_filter("https://"twig_get_attribute($this->env$this->source,                 // line 500
  1378. $context["ref"], "referenceStr", [], "any"falsefalsefalse500))) {
  1379.                     // line 501
  1380.                     echo "                                        <div class=\"datalabel\">Ref</div><div class=\"data\"><a href=\"";
  1381.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse501), "html"nulltrue);
  1382.                     echo "\" target=\"_blank\">";
  1383.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse501), "html"nulltrue);
  1384.                     echo " <i class=\"fa fa-external-link\"></i></a></div>
  1385.                                         ";
  1386.                 } else {
  1387.                     // line 503
  1388.                     echo "                                        <div class=\"datalabel\">Ref</div><div class=\"data\">";
  1389.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "referenceStr", [], "any"falsefalsefalse503), "html"nulltrue);
  1390.                     echo "</div>
  1391.                                         ";
  1392.                 }
  1393.                 // line 505
  1394.                 echo "                                    
  1395.             \t\t\t\t\t\t";
  1396.             }
  1397.             // line 507
  1398.             echo "            \t\t\t\t\t\t";
  1399.             if (twig_get_attribute($this->env$this->source$context["ref"], "comment", [], "any"falsefalsefalse507)) {
  1400.                 // line 508
  1401.                 echo "            \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">";
  1402.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ref"], "comment", [], "any"falsefalsefalse508), "html"nulltrue);
  1403.                 echo "</div>
  1404.             \t\t\t\t\t\t";
  1405.             }
  1406.             // line 510
  1407.             echo "            \t\t\t\t\t\t<br>
  1408.             \t\t\t\t\t";
  1409.         }
  1410.         $_parent $context['_parent'];
  1411.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ref'], $context['_parent'], $context['loop']);
  1412.         $context array_intersect_key($context$_parent) + $_parent;
  1413.         // line 512
  1414.         echo "                            </div>
  1415.                     </div>
  1416.                     <div id=\"tabs3-7\">
  1417.                     </div>
  1418.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  1419.                         ";
  1420.         // line 517
  1421.         $context['_parent'] = $context;
  1422.         $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); })()));
  1423.         foreach ($context['_seq'] as $context["key"] => $context["image"]) {
  1424.             // line 518
  1425.             echo "                            <div class=\"row hoard-show-image-container\">
  1426.                                     <div class=\"col-md-12 magnify-image-container\">
  1427.                                         ";
  1428.             // line 520
  1429.             if (twig_get_attribute($this->env$this->source$context["image"], "hoardImages_id", [], "any"falsefalsefalse520)) {
  1430.                 // line 521
  1431.                 echo "                                            <img id=\"hoard-image-";
  1432.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1433.                 echo "\" src=\"/image/hoard/";
  1434.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "hoardImages_id", [], "any"falsefalsefalse521), "html"nulltrue);
  1435.                 echo "\" class=\"magnify-image-inside\"/>
  1436.                                         ";
  1437.             } else {
  1438.                 // line 523
  1439.                 echo "                                            <img id=hoard-image-";
  1440.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1441.                 echo " src=\"/bundles/oxhoard//img/warning.png\" />
  1442.                                             Image not found
  1443.                                         ";
  1444.             }
  1445.             // line 526
  1446.             echo "                                    </div>
  1447.                                     <div class=\"col-md-12\">
  1448.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  1449.                                             ";
  1450.             // line 529
  1451.             if (twig_get_attribute($this->env$this->source$context["image"], "uri1", [], "any"truetruefalse529)) {
  1452.                 // line 530
  1453.                 echo "                                                <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"";
  1454.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "uri1", [], "any"falsefalsefalse530), "html"nulltrue);
  1455.                 echo "\">";
  1456.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "uri1", [], "any"falsefalsefalse530), "html"nulltrue);
  1457.                 echo "</a></div>
  1458.                                             ";
  1459.             }
  1460.             // line 532
  1461.             echo "                                            ";
  1462.             if (twig_get_attribute($this->env$this->source$context["image"], "uri2", [], "any"truetruefalse532)) {
  1463.                 // line 533
  1464.                 echo "                                                <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"";
  1465.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "uri2", [], "any"falsefalsefalse533), "html"nulltrue);
  1466.                 echo "\">";
  1467.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "uri2", [], "any"falsefalsefalse533), "html"nulltrue);
  1468.                 echo "</a></div>
  1469.                                             ";
  1470.             }
  1471.             // line 535
  1472.             echo "                                            ";
  1473.             if (twig_get_attribute($this->env$this->source$context["image"], "comment", [], "any"truetruefalse535)) {
  1474.                 // line 536
  1475.                 echo "                                                <div class=\"datalabel\">Comment</div><div class=\"data\">";
  1476.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "comment", [], "any"falsefalsefalse536), "html"nulltrue);
  1477.                 echo "</div>
  1478.                                             ";
  1479.             }
  1480.             // line 538
  1481.             echo "                                        </div>
  1482.                                     </div>
  1483.                             </div>
  1484.                         ";
  1485.         }
  1486.         $_parent $context['_parent'];
  1487.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['image'], $context['_parent'], $context['loop']);
  1488.         $context array_intersect_key($context$_parent) + $_parent;
  1489.         // line 542
  1490.         echo "                    </div>
  1491.                     <div id=\"tabs3-11\">
  1492.                         <p>";
  1493.         // line 544
  1494.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse544), "html"nulltrue);
  1495.         echo "</p>
  1496.                         ";
  1497.         // line 545
  1498.         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); })())) {
  1499.             // line 546
  1500.             echo "                          <a href=\"";
  1501.             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"falsefalsefalse546)]), "html"nulltrue);
  1502.             echo "\" class=\"btn btn-default\">View Hoard Revisions</a>
  1503.                         ";
  1504.         }
  1505.         // line 548
  1506.         echo "                    </div>
  1507.                 </div>
  1508.             </div>
  1509.         </div>
  1510.     </div><!-- end page container -->
  1511. ";
  1512.         
  1513.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1514.         
  1515.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1516.     }
  1517.     // line 446
  1518.     public function block_containers($context, array $blocks = [])
  1519.     {
  1520.         $macros $this->macros;
  1521.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1522.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""containers"));
  1523.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1524.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""containers"));
  1525.         // line 447
  1526.         echo "                            ";
  1527.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"447"394344764")->display($context);
  1528.         // line 449
  1529.         echo "                         ";
  1530.         
  1531.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1532.         
  1533.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1534.     }
  1535.     // line 452
  1536.     public function block_objects($context, array $blocks = [])
  1537.     {
  1538.         $macros $this->macros;
  1539.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1540.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""objects"));
  1541.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1542.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""objects"));
  1543.         // line 453
  1544.         echo "                            ";
  1545.         $this->loadTemplate("@OxHoard/hoard/show.html.twig""@OxHoard/hoard/show.html.twig"453"1896891524")->display($context);
  1546.         // line 455
  1547.         echo "                         ";
  1548.         
  1549.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1550.         
  1551.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1552.     }
  1553.     public function getTemplateName()
  1554.     {
  1555.         return "@OxHoard/hoard/show.html.twig";
  1556.     }
  1557.     public function isTraitable()
  1558.     {
  1559.         return false;
  1560.     }
  1561.     public function getDebugInfo()
  1562.     {
  1563.         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,);
  1564.     }
  1565.     public function getSourceContext()
  1566.     {
  1567.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  1568. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  1569. {% block stylesheets %}
  1570.     {{ parent() }}
  1571.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  1572.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  1573.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  1574. {% endblock %}
  1575. {% block javascripts %}
  1576.     {{ parent() }}
  1577.     <script>
  1578.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  1579.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  1580.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  1581.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  1582.     sortOptions = {}
  1583.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  1584.     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 %} };
  1585.     {% if is_authorised_to_edit %}
  1586.     isAuthorisedToEdit = true;
  1587.     {% else %}
  1588.     isAuthorisedToEdit = false;
  1589.     {% endif %}
  1590.     {% if can_see_location %}
  1591.         newMapResult = null
  1592.         \$( function() {
  1593.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  1594.         });
  1595.     {% endif %}
  1596.     </script>
  1597.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  1598.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  1599.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  1600.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  1601.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  1602. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  1603.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  1604.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  1605.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  1606.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  1607.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  1608.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  1609. {% endblock %}
  1610. {% block body -%}
  1611.     <noscript>
  1612.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  1613.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  1614.                 <p>This website requires Javascript to be enabled in your browser.</p>
  1615.                 <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>
  1616.     </noscript>
  1617.     <!-- content -->
  1618.     <div class=\"marginTop clearfix\"></div>
  1619.     <div id=\"content\" class=\"container\"> <!-- page content -->
  1620.         <div class=\"row\">
  1621.             {% if is_authorised_to_edit %}
  1622.                 <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>
  1623.             {% endif %}
  1624.             
  1625.             <h1>{{ hoard.findSpotName }}</h1>
  1626.             Download CSV:
  1627.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  1628.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  1629.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  1630.                     <div class=\"marginTop clearfix\"></div>
  1631.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  1632.                     <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>
  1633.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  1634.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  1635.                             <div class=\"modal-content\">
  1636.                                 <div class=\"modal-header\">
  1637.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  1638.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  1639.                                 </div>
  1640.                                 <div class=\"modal-body\">
  1641.                                     <div>
  1642.                                         <label for=\"chart-type\">Chart type </label>
  1643.                                         <select class=\"dropdown\" id=\"chart-type\">
  1644.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  1645.                                             <option value=\"pie\">Pie</option>
  1646.                                         </select>
  1647.                                         <label for=\"chart-attribute\">Coins per </label>
  1648.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  1649.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  1650.                                             <option value=\"Reign\">Reign</option>
  1651.                                             <option value=\"Person\">Person</option>
  1652.                                             <option value=\"Mint\">Mint</option>
  1653.                                             <option value=\"Denomination\">Denomination</option>
  1654.                                             <option value=\"Material\">Material</option>
  1655.                                         </select>
  1656.                                         <span id=\"chart-stacked-container\">
  1657.                                         <label for=\"chart-stacked\">Stacked per</label>
  1658.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  1659.                                             <option value=\"\" selected=\"selected\"> - </option>
  1660.                                             <option value=\"Period\" disabled>Period</option>
  1661.                                             <option value=\"Reign\">Reign</option>
  1662.                                             <option value=\"Person\">Person</option>
  1663.                                             <option value=\"Mint\">Mint</option>
  1664.                                             <option value=\"Denomination\">Denomination</option>
  1665.                                             <option value=\"Material\">Material</option>
  1666.                                         </select>
  1667.                                         </span>
  1668.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  1669.                                             <label for=\"chart-reign\"> for reign </label>
  1670.                                             <select class=\"dropdown\" id=\"chart-reign\">
  1671.                                             </select>
  1672.                                         </span>
  1673.                                     </div>
  1674.                                     <div id=\"show-legend\" class=\"hidden\">
  1675.                                         <fieldset>
  1676.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  1677.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  1678.                                         </fieldset>
  1679.                                     </div>
  1680.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  1681.                                     <div style=\"height: 70vh\">
  1682.                                         <canvas id=\"hoard-chart\"></canvas>
  1683.                                     </div>
  1684.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  1685.                                         <fieldset>
  1686.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  1687.                                             <label for=\"numbers\">Numbers</label>
  1688.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  1689.                                             <label for=\"percentages\">Percentages</label>
  1690.                                         </fieldset>
  1691.                                     </div>
  1692.                                 </div>
  1693.                                 <div class=\"modal-footer\">
  1694.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  1695.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  1696.                                 </div>
  1697.                             </div>
  1698.                         </div>
  1699.                     </div>
  1700.                     <div class=\"marginTop clearfix\"></div>
  1701.             <div class=\"col-md-12 marginTop\">
  1702.                 <div class=\"col-md-6\">
  1703.                     <!-- Location tabs -->
  1704.                     <div id=\"tabs\" class=\"tabs\">
  1705.                         <ul>
  1706.                             <li><a href=\"#tab-1\">Location</a></li>
  1707.                         </ul>
  1708.                         <div id=\"tab-1\">
  1709.                             <div class=\"hoardlistview-6col\">
  1710.                                 {% if can_see_location %}
  1711.                                 {% if not hoard.hideCity or is_authenticated %}
  1712.                                 {% if hoard.city %}
  1713.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  1714.                                 {% endif %}
  1715.                                 {% if hoard.address %}
  1716.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  1717.                                 {% endif %}
  1718.                                 {% endif %}
  1719.                                 {% else %}
  1720.                                 <p>
  1721.                                     This Hoard's location is hidden
  1722.                                 </p>
  1723.                                 {% endif %}
  1724.                                 {% if not hoard.hideCounty or is_authenticated %}
  1725.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  1726.                                 {% endif %}
  1727.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  1728.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  1729.                                     {% for country in hoard.countries %}
  1730.                                       {{ country }}{% if not loop.last %}, {% endif %}
  1731.                                     {% endfor %}
  1732.                                 </div>
  1733.                                 {% if can_see_location %}
  1734.                                 {% if hoard.ancientPlace %}
  1735.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  1736.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  1737.                                         {% if hoard.ancientPlace.uri2 %}
  1738.                                         <br>
  1739.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  1740.                                         {% endif %}
  1741.                                     </div>
  1742.                                 {% endif %}
  1743.                                 <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>
  1744.                                 {% if hoard.findSpotLocationDetail %}
  1745.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  1746.                                 {% endif %}
  1747.                                 {% if hoard.findSpotComment %}
  1748.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  1749.                                 {% endif %}
  1750.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  1751.                                 <div>Fields with * are hidden in public view</div>
  1752.                                 {% endif %}
  1753.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  1754.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  1755.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  1756.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  1757.                                     </div>
  1758.                                     <div style=\"padding: 10px;\">
  1759.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  1760.                                     </div>
  1761.                                     <div style=\"padding: 10px;\">
  1762.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  1763.                                     </div>
  1764.                                 </div>
  1765.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  1766.                                     <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\"/>
  1767.                                 </div>
  1768.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  1769.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  1770.                                         <div class=\"panel panel-default\">
  1771.                                             <div class=\"panel-heading\">
  1772.                                                 <h4 class=\"panel-title\">
  1773.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  1774.                                                         Data not added to the map
  1775.                                                     </a>
  1776.                                                 </h4>
  1777.                                             </div>
  1778.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  1779.                                                 <div class=\"panel-body\"></div>
  1780.                                             </div>
  1781.                                         </div>
  1782.                                     </div>
  1783.                                 </div>
  1784.                                 {% endif %}
  1785.                             </div>
  1786.                         </div>
  1787.                     </div>
  1788.                 </div>
  1789.                 <div class=\"col-md-6\">
  1790.                     <!-- Hoard Summary tabs -->
  1791.                     <div id=\"tabs\" class=\"tabs\">
  1792.                         <ul>
  1793.                             <li><a href=\"#tab-1\">Information</a></li>
  1794.                         </ul>
  1795.                         {% set total = 0 %}
  1796.                         {% for coin in hoard.coins %}
  1797.                             {% set total = total + coin.quantity %}
  1798.                         {% endfor %}
  1799.                         <div id=\"tab-1\">
  1800.                             <div class=\"hoardlistview-6col\">
  1801.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  1802.                                 <div class=\"datalabel\">Permalink</div>
  1803.                                 <div class=\"data\">
  1804.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  1805.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  1806.                                         <i class=\"fa fa-copy\"></i>
  1807.                                     </a>
  1808.                                 </div>
  1809.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  1810.                                 {% if hoard.findSpotOtherNames %}
  1811.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  1812.                                 {%  endif %}
  1813.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  1814.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  1815.                                 {% if hoard.discoveryYear2 %}
  1816.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  1817.                                 {% endif %}
  1818.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  1819.                                 {% if hoard.province %}
  1820.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  1821.                                 {% endif %}
  1822.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  1823.                                 {% if is_authenticated and hoard.internalNote %}
  1824.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  1825.                                 {% endif %}
  1826.                                 <br>
  1827.                                 {% if is_authenticated %}
  1828.                                     {% if hoard.validatedByUser %}
  1829.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  1830.                                     {% else %}
  1831.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  1832.                                     {% endif %}
  1833.                                     {% if is_admin %}
  1834.                                         <br>
  1835.                                         {% if hoard.validatedByAdmin %}
  1836.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  1837.                                         {% else %}
  1838.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  1839.                                         {% endif %}
  1840.                                     {% endif %}
  1841.                                     <br>
  1842.                                     {% if hoard.coinDataValidatedByUser %}
  1843.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  1844.                                     {% else %}
  1845.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  1846.                                     {% endif %}
  1847.                                     {% if is_admin %}
  1848.                                         <br>
  1849.                                         {% if hoard.coinDataValidatedByAdmin %}
  1850.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  1851.                                         {% else %}
  1852.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  1853.                                         {% endif %}
  1854.                                     {% endif %}
  1855.                                 {% else %}
  1856.                                     {% if not hoard.coinDataValidatedByUser %}
  1857.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  1858.                                     {% endif %}
  1859.                                 {% endif %}
  1860.                             </div>
  1861.                         </div>
  1862.                     </div>
  1863.                 </div>  <!-- /col-6 -->
  1864.             </div>  <!-- /col-12 -->
  1865.         </div> <!-- /row -->
  1866.         <!-- hoard detail tabs -->
  1867.         <div class=\"row\">
  1868.             <div class=\"col-md-12 marginTop\">
  1869.                 <div id=\"tabs3\" class=\"tabs\">
  1870.                     <ul>
  1871.                         <li><a href=\"#tabs3-1\">Details</a></li>
  1872.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  1873.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  1874.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  1875.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  1876.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  1877.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  1878.                         <li><a href=\"#tabs3-6\">References</a></li>
  1879.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  1880.                         <li><a href=\"#tabs3-8\">Images</a></li>
  1881.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  1882.                     </ul>
  1883.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  1884.                         <ul>
  1885.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  1886.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  1887.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  1888.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  1889.                             {% if not hoard.hideFinder or is_authenticated %}
  1890.                                 {% 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 %}
  1891.                             {% endif %}
  1892.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  1893.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  1894.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  1895.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  1896.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  1897.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  1898.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  1899.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  1900.                         
  1901.                             {% if is_admin %}
  1902.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  1903.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  1904.                             {% endif %}
  1905.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  1906.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  1907.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  1908.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  1909.                                 {% endif %}
  1910.                             {% endif %}
  1911.                             {% if hoard.hideFinder and is_authenticated %}
  1912.                             <div>Fields with * are hidden in public view</div>
  1913.                             {% endif %}
  1914.                         </ul>
  1915.                     </div>
  1916.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  1917.                         {% if show_coins_summary %}
  1918.                             <p>Fetching coin data</p>
  1919.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  1920.                         {% else %}
  1921.                             {% if not hoard.coinDataValidatedByUser %}
  1922.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  1923.                             {% else %}
  1924.                                 The coin summary for this hoard has been hidden
  1925.                             {% endif %}
  1926.                         {% endif %}
  1927.                     </div>
  1928.                     <div id=\"tabs3-10\">
  1929.                         {% if show_coins %}
  1930.                             <div class=\"coin-data-container\">
  1931.                                 <p>Fetching coin data</p>
  1932.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  1933.                             </div>
  1934.                         {% else %}
  1935.                             {% if not hoard.coinDataValidatedByUser %}
  1936.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  1937.                             {% else %}
  1938.                                 The coins for this hoard have been hidden
  1939.                             {% endif %}
  1940.                         {% endif %}
  1941.                     </div>
  1942.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  1943.                         <ul>
  1944.                             {% if hoard.rating %}
  1945.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  1946.                             {% endif %}
  1947.                             {% if hoard.ratingComment %}
  1948.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  1949.                             {% endif %}
  1950.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  1951.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  1952.                         </ul>
  1953.                     </div>
  1954.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  1955.                         <ul>
  1956.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  1957.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  1958.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  1959.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  1960.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  1961.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  1962.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  1963.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  1964.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  1965.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  1966.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  1967.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  1968.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  1969.                                 {% endfor %}
  1970.                             </div>
  1971.                             {% endif %}
  1972.                             {% if hoard.archaeologyContextNatures is not empty %}
  1973.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  1974.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  1975.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  1976.                                 {% endfor %}
  1977.                             </div>
  1978.                             {% endif %}
  1979.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  1980.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  1981.                         </ul>
  1982.                     </div>
  1983.                     <div id=\"tabs3-4\">
  1984.                         {% block containers %}
  1985.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  1986.                             {% endembed %}
  1987.                          {% endblock %}
  1988.                     </div>
  1989.                     <div id=\"tabs3-5\">
  1990.                         {% block objects %}
  1991.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  1992.                             {% endembed %}
  1993.                          {% endblock %}
  1994.                     </div>
  1995.                     <div id=\"tabs3-6\">
  1996.                             {% if onlineDatabaseReferences  is not empty  %}
  1997.                             <div class=\"hoardlistview-6col\">
  1998.                                 <h2>Permalink in other online databases</h2>
  1999.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  2000.             \t\t\t\t\t\t{% if ref.reference %}
  2001.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  2002.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  2003.             \t\t\t\t\t\t\t{{ref.reference}}
  2004.             \t\t\t\t\t\t</a></div>
  2005.             \t\t\t\t\t\t{% endif %}
  2006.             \t\t\t\t\t\t{% if ref.referenceStr %}
  2007.                                         {% if 'http://' in ref.referenceStr %}
  2008.                                         <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>
  2009.                                         {% elseif 'https://' in ref.referenceStr %}
  2010.                                         <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>
  2011.                                         {% else %}
  2012.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  2013.                                         {% endif %}
  2014.                                     
  2015.             \t\t\t\t\t\t{% endif %}
  2016.             \t\t\t\t\t\t{% if ref.comment %}
  2017.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  2018.             \t\t\t\t\t\t{% endif %}
  2019.             \t\t\t\t\t\t<br>
  2020.             \t\t\t\t\t{% endfor %}
  2021.                             </div>
  2022.        \t\t\t\t\t\t{% endif %}
  2023.                             <div class=\"hoardlistview-6col\">
  2024.                                 <h2>References</h2>
  2025.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  2026.             \t\t\t\t\t{% for ref in hoardReferences %}
  2027.             \t\t\t\t\t\t{% if ref.reference %}
  2028.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  2029.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  2030.             \t\t\t\t\t\t\t{{ref.reference}}
  2031.             \t\t\t\t\t\t</a></div>
  2032.             \t\t\t\t\t\t{% endif %}
  2033.             \t\t\t\t\t\t{% if ref.referenceStr %}
  2034.                                         {% if 'http://' in ref.referenceStr %}
  2035.                                         <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>
  2036.                                         {% elseif 'https://' in ref.referenceStr %}
  2037.                                         <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>
  2038.                                         {% else %}
  2039.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  2040.                                         {% endif %}
  2041.                                     
  2042.             \t\t\t\t\t\t{% endif %}
  2043.             \t\t\t\t\t\t{% if ref.comment %}
  2044.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  2045.             \t\t\t\t\t\t{% endif %}
  2046.             \t\t\t\t\t\t<br>
  2047.             \t\t\t\t\t{% endfor %}
  2048.                             </div>
  2049.                     </div>
  2050.                     <div id=\"tabs3-7\">
  2051.                     </div>
  2052.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  2053.                         {% for key, image in images %}
  2054.                             <div class=\"row hoard-show-image-container\">
  2055.                                     <div class=\"col-md-12 magnify-image-container\">
  2056.                                         {% if image.hoardImages_id %}
  2057.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  2058.                                         {% else %}
  2059.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  2060.                                             Image not found
  2061.                                         {% endif %}
  2062.                                     </div>
  2063.                                     <div class=\"col-md-12\">
  2064.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  2065.                                             {% if image.uri1 is defined %}
  2066.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  2067.                                             {% endif %}
  2068.                                             {% if image.uri2 is defined %}
  2069.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  2070.                                             {% endif %}
  2071.                                             {% if image.comment is defined %}
  2072.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  2073.                                             {% endif %}
  2074.                                         </div>
  2075.                                     </div>
  2076.                             </div>
  2077.                         {% endfor %}
  2078.                     </div>
  2079.                     <div id=\"tabs3-11\">
  2080.                         <p>{{ hoard.credit }}</p>
  2081.                         {% if is_admin %}
  2082.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  2083.                         {% endif %}
  2084.                     </div>
  2085.                 </div>
  2086.             </div>
  2087.         </div>
  2088.     </div><!-- end page container -->
  2089. {% endblock %}
  2090. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  2091.     }
  2092. }
  2093. /* @OxHoard/hoard/show.html.twig */
  2094. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1310819711 extends Template
  2095. {
  2096.     private $source;
  2097.     private $macros = [];
  2098.     public function __construct(Environment $env)
  2099.     {
  2100.         parent::__construct($env);
  2101.         $this->source $this->getSourceContext();
  2102.         $this->blocks = [
  2103.         ];
  2104.     }
  2105.     protected function doGetParent(array $context)
  2106.     {
  2107.         // line 42
  2108.         return "import-libs/underscore.js.html.twig";
  2109.     }
  2110.     protected function doDisplay(array $context, array $blocks = [])
  2111.     {
  2112.         $macros $this->macros;
  2113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  2115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  2117.         $this->parent $this->loadTemplate("import-libs/underscore.js.html.twig""@OxHoard/hoard/show.html.twig"42);
  2118.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  2119.         
  2120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2121.         
  2122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2123.     }
  2124.     public function getTemplateName()
  2125.     {
  2126.         return "@OxHoard/hoard/show.html.twig";
  2127.     }
  2128.     public function isTraitable()
  2129.     {
  2130.         return false;
  2131.     }
  2132.     public function getDebugInfo()
  2133.     {
  2134.         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,);
  2135.     }
  2136.     public function getSourceContext()
  2137.     {
  2138.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  2139. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  2140. {% block stylesheets %}
  2141.     {{ parent() }}
  2142.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  2143.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  2144.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  2145. {% endblock %}
  2146. {% block javascripts %}
  2147.     {{ parent() }}
  2148.     <script>
  2149.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  2150.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  2151.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  2152.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  2153.     sortOptions = {}
  2154.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  2155.     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 %} };
  2156.     {% if is_authorised_to_edit %}
  2157.     isAuthorisedToEdit = true;
  2158.     {% else %}
  2159.     isAuthorisedToEdit = false;
  2160.     {% endif %}
  2161.     {% if can_see_location %}
  2162.         newMapResult = null
  2163.         \$( function() {
  2164.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  2165.         });
  2166.     {% endif %}
  2167.     </script>
  2168.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  2169.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  2170.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  2171.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  2172.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  2173. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  2174.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  2175.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  2176.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  2177.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  2178.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  2179.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  2180. {% endblock %}
  2181. {% block body -%}
  2182.     <noscript>
  2183.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  2184.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  2185.                 <p>This website requires Javascript to be enabled in your browser.</p>
  2186.                 <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>
  2187.     </noscript>
  2188.     <!-- content -->
  2189.     <div class=\"marginTop clearfix\"></div>
  2190.     <div id=\"content\" class=\"container\"> <!-- page content -->
  2191.         <div class=\"row\">
  2192.             {% if is_authorised_to_edit %}
  2193.                 <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>
  2194.             {% endif %}
  2195.             
  2196.             <h1>{{ hoard.findSpotName }}</h1>
  2197.             Download CSV:
  2198.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  2199.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  2200.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  2201.                     <div class=\"marginTop clearfix\"></div>
  2202.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  2203.                     <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>
  2204.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  2205.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  2206.                             <div class=\"modal-content\">
  2207.                                 <div class=\"modal-header\">
  2208.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  2209.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  2210.                                 </div>
  2211.                                 <div class=\"modal-body\">
  2212.                                     <div>
  2213.                                         <label for=\"chart-type\">Chart type </label>
  2214.                                         <select class=\"dropdown\" id=\"chart-type\">
  2215.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  2216.                                             <option value=\"pie\">Pie</option>
  2217.                                         </select>
  2218.                                         <label for=\"chart-attribute\">Coins per </label>
  2219.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  2220.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  2221.                                             <option value=\"Reign\">Reign</option>
  2222.                                             <option value=\"Person\">Person</option>
  2223.                                             <option value=\"Mint\">Mint</option>
  2224.                                             <option value=\"Denomination\">Denomination</option>
  2225.                                             <option value=\"Material\">Material</option>
  2226.                                         </select>
  2227.                                         <span id=\"chart-stacked-container\">
  2228.                                         <label for=\"chart-stacked\">Stacked per</label>
  2229.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  2230.                                             <option value=\"\" selected=\"selected\"> - </option>
  2231.                                             <option value=\"Period\" disabled>Period</option>
  2232.                                             <option value=\"Reign\">Reign</option>
  2233.                                             <option value=\"Person\">Person</option>
  2234.                                             <option value=\"Mint\">Mint</option>
  2235.                                             <option value=\"Denomination\">Denomination</option>
  2236.                                             <option value=\"Material\">Material</option>
  2237.                                         </select>
  2238.                                         </span>
  2239.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  2240.                                             <label for=\"chart-reign\"> for reign </label>
  2241.                                             <select class=\"dropdown\" id=\"chart-reign\">
  2242.                                             </select>
  2243.                                         </span>
  2244.                                     </div>
  2245.                                     <div id=\"show-legend\" class=\"hidden\">
  2246.                                         <fieldset>
  2247.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  2248.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  2249.                                         </fieldset>
  2250.                                     </div>
  2251.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  2252.                                     <div style=\"height: 70vh\">
  2253.                                         <canvas id=\"hoard-chart\"></canvas>
  2254.                                     </div>
  2255.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  2256.                                         <fieldset>
  2257.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  2258.                                             <label for=\"numbers\">Numbers</label>
  2259.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  2260.                                             <label for=\"percentages\">Percentages</label>
  2261.                                         </fieldset>
  2262.                                     </div>
  2263.                                 </div>
  2264.                                 <div class=\"modal-footer\">
  2265.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  2266.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  2267.                                 </div>
  2268.                             </div>
  2269.                         </div>
  2270.                     </div>
  2271.                     <div class=\"marginTop clearfix\"></div>
  2272.             <div class=\"col-md-12 marginTop\">
  2273.                 <div class=\"col-md-6\">
  2274.                     <!-- Location tabs -->
  2275.                     <div id=\"tabs\" class=\"tabs\">
  2276.                         <ul>
  2277.                             <li><a href=\"#tab-1\">Location</a></li>
  2278.                         </ul>
  2279.                         <div id=\"tab-1\">
  2280.                             <div class=\"hoardlistview-6col\">
  2281.                                 {% if can_see_location %}
  2282.                                 {% if not hoard.hideCity or is_authenticated %}
  2283.                                 {% if hoard.city %}
  2284.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  2285.                                 {% endif %}
  2286.                                 {% if hoard.address %}
  2287.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  2288.                                 {% endif %}
  2289.                                 {% endif %}
  2290.                                 {% else %}
  2291.                                 <p>
  2292.                                     This Hoard's location is hidden
  2293.                                 </p>
  2294.                                 {% endif %}
  2295.                                 {% if not hoard.hideCounty or is_authenticated %}
  2296.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  2297.                                 {% endif %}
  2298.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  2299.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  2300.                                     {% for country in hoard.countries %}
  2301.                                       {{ country }}{% if not loop.last %}, {% endif %}
  2302.                                     {% endfor %}
  2303.                                 </div>
  2304.                                 {% if can_see_location %}
  2305.                                 {% if hoard.ancientPlace %}
  2306.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  2307.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  2308.                                         {% if hoard.ancientPlace.uri2 %}
  2309.                                         <br>
  2310.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  2311.                                         {% endif %}
  2312.                                     </div>
  2313.                                 {% endif %}
  2314.                                 <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>
  2315.                                 {% if hoard.findSpotLocationDetail %}
  2316.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  2317.                                 {% endif %}
  2318.                                 {% if hoard.findSpotComment %}
  2319.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  2320.                                 {% endif %}
  2321.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  2322.                                 <div>Fields with * are hidden in public view</div>
  2323.                                 {% endif %}
  2324.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  2325.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  2326.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  2327.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  2328.                                     </div>
  2329.                                     <div style=\"padding: 10px;\">
  2330.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  2331.                                     </div>
  2332.                                     <div style=\"padding: 10px;\">
  2333.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  2334.                                     </div>
  2335.                                 </div>
  2336.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  2337.                                     <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\"/>
  2338.                                 </div>
  2339.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  2340.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  2341.                                         <div class=\"panel panel-default\">
  2342.                                             <div class=\"panel-heading\">
  2343.                                                 <h4 class=\"panel-title\">
  2344.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  2345.                                                         Data not added to the map
  2346.                                                     </a>
  2347.                                                 </h4>
  2348.                                             </div>
  2349.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  2350.                                                 <div class=\"panel-body\"></div>
  2351.                                             </div>
  2352.                                         </div>
  2353.                                     </div>
  2354.                                 </div>
  2355.                                 {% endif %}
  2356.                             </div>
  2357.                         </div>
  2358.                     </div>
  2359.                 </div>
  2360.                 <div class=\"col-md-6\">
  2361.                     <!-- Hoard Summary tabs -->
  2362.                     <div id=\"tabs\" class=\"tabs\">
  2363.                         <ul>
  2364.                             <li><a href=\"#tab-1\">Information</a></li>
  2365.                         </ul>
  2366.                         {% set total = 0 %}
  2367.                         {% for coin in hoard.coins %}
  2368.                             {% set total = total + coin.quantity %}
  2369.                         {% endfor %}
  2370.                         <div id=\"tab-1\">
  2371.                             <div class=\"hoardlistview-6col\">
  2372.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  2373.                                 <div class=\"datalabel\">Permalink</div>
  2374.                                 <div class=\"data\">
  2375.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  2376.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  2377.                                         <i class=\"fa fa-copy\"></i>
  2378.                                     </a>
  2379.                                 </div>
  2380.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  2381.                                 {% if hoard.findSpotOtherNames %}
  2382.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  2383.                                 {%  endif %}
  2384.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  2385.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  2386.                                 {% if hoard.discoveryYear2 %}
  2387.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  2388.                                 {% endif %}
  2389.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  2390.                                 {% if hoard.province %}
  2391.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  2392.                                 {% endif %}
  2393.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  2394.                                 {% if is_authenticated and hoard.internalNote %}
  2395.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  2396.                                 {% endif %}
  2397.                                 <br>
  2398.                                 {% if is_authenticated %}
  2399.                                     {% if hoard.validatedByUser %}
  2400.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  2401.                                     {% else %}
  2402.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  2403.                                     {% endif %}
  2404.                                     {% if is_admin %}
  2405.                                         <br>
  2406.                                         {% if hoard.validatedByAdmin %}
  2407.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  2408.                                         {% else %}
  2409.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  2410.                                         {% endif %}
  2411.                                     {% endif %}
  2412.                                     <br>
  2413.                                     {% if hoard.coinDataValidatedByUser %}
  2414.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  2415.                                     {% else %}
  2416.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  2417.                                     {% endif %}
  2418.                                     {% if is_admin %}
  2419.                                         <br>
  2420.                                         {% if hoard.coinDataValidatedByAdmin %}
  2421.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  2422.                                         {% else %}
  2423.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  2424.                                         {% endif %}
  2425.                                     {% endif %}
  2426.                                 {% else %}
  2427.                                     {% if not hoard.coinDataValidatedByUser %}
  2428.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  2429.                                     {% endif %}
  2430.                                 {% endif %}
  2431.                             </div>
  2432.                         </div>
  2433.                     </div>
  2434.                 </div>  <!-- /col-6 -->
  2435.             </div>  <!-- /col-12 -->
  2436.         </div> <!-- /row -->
  2437.         <!-- hoard detail tabs -->
  2438.         <div class=\"row\">
  2439.             <div class=\"col-md-12 marginTop\">
  2440.                 <div id=\"tabs3\" class=\"tabs\">
  2441.                     <ul>
  2442.                         <li><a href=\"#tabs3-1\">Details</a></li>
  2443.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  2444.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  2445.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  2446.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  2447.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  2448.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  2449.                         <li><a href=\"#tabs3-6\">References</a></li>
  2450.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  2451.                         <li><a href=\"#tabs3-8\">Images</a></li>
  2452.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  2453.                     </ul>
  2454.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  2455.                         <ul>
  2456.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  2457.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  2458.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  2459.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  2460.                             {% if not hoard.hideFinder or is_authenticated %}
  2461.                                 {% 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 %}
  2462.                             {% endif %}
  2463.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  2464.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  2465.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  2466.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  2467.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  2468.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  2469.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  2470.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  2471.                         
  2472.                             {% if is_admin %}
  2473.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  2474.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  2475.                             {% endif %}
  2476.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  2477.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  2478.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  2479.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  2480.                                 {% endif %}
  2481.                             {% endif %}
  2482.                             {% if hoard.hideFinder and is_authenticated %}
  2483.                             <div>Fields with * are hidden in public view</div>
  2484.                             {% endif %}
  2485.                         </ul>
  2486.                     </div>
  2487.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  2488.                         {% if show_coins_summary %}
  2489.                             <p>Fetching coin data</p>
  2490.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  2491.                         {% else %}
  2492.                             {% if not hoard.coinDataValidatedByUser %}
  2493.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  2494.                             {% else %}
  2495.                                 The coin summary for this hoard has been hidden
  2496.                             {% endif %}
  2497.                         {% endif %}
  2498.                     </div>
  2499.                     <div id=\"tabs3-10\">
  2500.                         {% if show_coins %}
  2501.                             <div class=\"coin-data-container\">
  2502.                                 <p>Fetching coin data</p>
  2503.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  2504.                             </div>
  2505.                         {% else %}
  2506.                             {% if not hoard.coinDataValidatedByUser %}
  2507.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  2508.                             {% else %}
  2509.                                 The coins for this hoard have been hidden
  2510.                             {% endif %}
  2511.                         {% endif %}
  2512.                     </div>
  2513.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  2514.                         <ul>
  2515.                             {% if hoard.rating %}
  2516.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  2517.                             {% endif %}
  2518.                             {% if hoard.ratingComment %}
  2519.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  2520.                             {% endif %}
  2521.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  2522.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  2523.                         </ul>
  2524.                     </div>
  2525.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  2526.                         <ul>
  2527.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  2528.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  2529.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  2530.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  2531.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  2532.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  2533.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  2534.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  2535.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  2536.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  2537.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  2538.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  2539.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  2540.                                 {% endfor %}
  2541.                             </div>
  2542.                             {% endif %}
  2543.                             {% if hoard.archaeologyContextNatures is not empty %}
  2544.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  2545.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  2546.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  2547.                                 {% endfor %}
  2548.                             </div>
  2549.                             {% endif %}
  2550.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  2551.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  2552.                         </ul>
  2553.                     </div>
  2554.                     <div id=\"tabs3-4\">
  2555.                         {% block containers %}
  2556.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  2557.                             {% endembed %}
  2558.                          {% endblock %}
  2559.                     </div>
  2560.                     <div id=\"tabs3-5\">
  2561.                         {% block objects %}
  2562.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  2563.                             {% endembed %}
  2564.                          {% endblock %}
  2565.                     </div>
  2566.                     <div id=\"tabs3-6\">
  2567.                             {% if onlineDatabaseReferences  is not empty  %}
  2568.                             <div class=\"hoardlistview-6col\">
  2569.                                 <h2>Permalink in other online databases</h2>
  2570.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  2571.             \t\t\t\t\t\t{% if ref.reference %}
  2572.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  2573.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  2574.             \t\t\t\t\t\t\t{{ref.reference}}
  2575.             \t\t\t\t\t\t</a></div>
  2576.             \t\t\t\t\t\t{% endif %}
  2577.             \t\t\t\t\t\t{% if ref.referenceStr %}
  2578.                                         {% if 'http://' in ref.referenceStr %}
  2579.                                         <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>
  2580.                                         {% elseif 'https://' in ref.referenceStr %}
  2581.                                         <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>
  2582.                                         {% else %}
  2583.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  2584.                                         {% endif %}
  2585.                                     
  2586.             \t\t\t\t\t\t{% endif %}
  2587.             \t\t\t\t\t\t{% if ref.comment %}
  2588.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  2589.             \t\t\t\t\t\t{% endif %}
  2590.             \t\t\t\t\t\t<br>
  2591.             \t\t\t\t\t{% endfor %}
  2592.                             </div>
  2593.        \t\t\t\t\t\t{% endif %}
  2594.                             <div class=\"hoardlistview-6col\">
  2595.                                 <h2>References</h2>
  2596.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  2597.             \t\t\t\t\t{% for ref in hoardReferences %}
  2598.             \t\t\t\t\t\t{% if ref.reference %}
  2599.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  2600.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  2601.             \t\t\t\t\t\t\t{{ref.reference}}
  2602.             \t\t\t\t\t\t</a></div>
  2603.             \t\t\t\t\t\t{% endif %}
  2604.             \t\t\t\t\t\t{% if ref.referenceStr %}
  2605.                                         {% if 'http://' in ref.referenceStr %}
  2606.                                         <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>
  2607.                                         {% elseif 'https://' in ref.referenceStr %}
  2608.                                         <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>
  2609.                                         {% else %}
  2610.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  2611.                                         {% endif %}
  2612.                                     
  2613.             \t\t\t\t\t\t{% endif %}
  2614.             \t\t\t\t\t\t{% if ref.comment %}
  2615.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  2616.             \t\t\t\t\t\t{% endif %}
  2617.             \t\t\t\t\t\t<br>
  2618.             \t\t\t\t\t{% endfor %}
  2619.                             </div>
  2620.                     </div>
  2621.                     <div id=\"tabs3-7\">
  2622.                     </div>
  2623.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  2624.                         {% for key, image in images %}
  2625.                             <div class=\"row hoard-show-image-container\">
  2626.                                     <div class=\"col-md-12 magnify-image-container\">
  2627.                                         {% if image.hoardImages_id %}
  2628.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  2629.                                         {% else %}
  2630.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  2631.                                             Image not found
  2632.                                         {% endif %}
  2633.                                     </div>
  2634.                                     <div class=\"col-md-12\">
  2635.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  2636.                                             {% if image.uri1 is defined %}
  2637.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  2638.                                             {% endif %}
  2639.                                             {% if image.uri2 is defined %}
  2640.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  2641.                                             {% endif %}
  2642.                                             {% if image.comment is defined %}
  2643.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  2644.                                             {% endif %}
  2645.                                         </div>
  2646.                                     </div>
  2647.                             </div>
  2648.                         {% endfor %}
  2649.                     </div>
  2650.                     <div id=\"tabs3-11\">
  2651.                         <p>{{ hoard.credit }}</p>
  2652.                         {% if is_admin %}
  2653.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  2654.                         {% endif %}
  2655.                     </div>
  2656.                 </div>
  2657.             </div>
  2658.         </div>
  2659.     </div><!-- end page container -->
  2660. {% endblock %}
  2661. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  2662.     }
  2663. }
  2664. /* @OxHoard/hoard/show.html.twig */
  2665. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___903471706 extends Template
  2666. {
  2667.     private $source;
  2668.     private $macros = [];
  2669.     public function __construct(Environment $env)
  2670.     {
  2671.         parent::__construct($env);
  2672.         $this->source $this->getSourceContext();
  2673.         $this->blocks = [
  2674.         ];
  2675.     }
  2676.     protected function doGetParent(array $context)
  2677.     {
  2678.         // line 43
  2679.         return "import-libs/backbone.js.html.twig";
  2680.     }
  2681.     protected function doDisplay(array $context, array $blocks = [])
  2682.     {
  2683.         $macros $this->macros;
  2684.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2685.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  2686.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2687.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  2688.         $this->parent $this->loadTemplate("import-libs/backbone.js.html.twig""@OxHoard/hoard/show.html.twig"43);
  2689.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  2690.         
  2691.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2692.         
  2693.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2694.     }
  2695.     public function getTemplateName()
  2696.     {
  2697.         return "@OxHoard/hoard/show.html.twig";
  2698.     }
  2699.     public function isTraitable()
  2700.     {
  2701.         return false;
  2702.     }
  2703.     public function getDebugInfo()
  2704.     {
  2705.         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,);
  2706.     }
  2707.     public function getSourceContext()
  2708.     {
  2709.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  2710. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  2711. {% block stylesheets %}
  2712.     {{ parent() }}
  2713.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  2714.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  2715.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  2716. {% endblock %}
  2717. {% block javascripts %}
  2718.     {{ parent() }}
  2719.     <script>
  2720.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  2721.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  2722.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  2723.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  2724.     sortOptions = {}
  2725.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  2726.     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 %} };
  2727.     {% if is_authorised_to_edit %}
  2728.     isAuthorisedToEdit = true;
  2729.     {% else %}
  2730.     isAuthorisedToEdit = false;
  2731.     {% endif %}
  2732.     {% if can_see_location %}
  2733.         newMapResult = null
  2734.         \$( function() {
  2735.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  2736.         });
  2737.     {% endif %}
  2738.     </script>
  2739.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  2740.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  2741.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  2742.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  2743.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  2744. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  2745.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  2746.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  2747.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  2748.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  2749.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  2750.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  2751. {% endblock %}
  2752. {% block body -%}
  2753.     <noscript>
  2754.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  2755.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  2756.                 <p>This website requires Javascript to be enabled in your browser.</p>
  2757.                 <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>
  2758.     </noscript>
  2759.     <!-- content -->
  2760.     <div class=\"marginTop clearfix\"></div>
  2761.     <div id=\"content\" class=\"container\"> <!-- page content -->
  2762.         <div class=\"row\">
  2763.             {% if is_authorised_to_edit %}
  2764.                 <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>
  2765.             {% endif %}
  2766.             
  2767.             <h1>{{ hoard.findSpotName }}</h1>
  2768.             Download CSV:
  2769.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  2770.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  2771.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  2772.                     <div class=\"marginTop clearfix\"></div>
  2773.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  2774.                     <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>
  2775.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  2776.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  2777.                             <div class=\"modal-content\">
  2778.                                 <div class=\"modal-header\">
  2779.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  2780.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  2781.                                 </div>
  2782.                                 <div class=\"modal-body\">
  2783.                                     <div>
  2784.                                         <label for=\"chart-type\">Chart type </label>
  2785.                                         <select class=\"dropdown\" id=\"chart-type\">
  2786.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  2787.                                             <option value=\"pie\">Pie</option>
  2788.                                         </select>
  2789.                                         <label for=\"chart-attribute\">Coins per </label>
  2790.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  2791.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  2792.                                             <option value=\"Reign\">Reign</option>
  2793.                                             <option value=\"Person\">Person</option>
  2794.                                             <option value=\"Mint\">Mint</option>
  2795.                                             <option value=\"Denomination\">Denomination</option>
  2796.                                             <option value=\"Material\">Material</option>
  2797.                                         </select>
  2798.                                         <span id=\"chart-stacked-container\">
  2799.                                         <label for=\"chart-stacked\">Stacked per</label>
  2800.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  2801.                                             <option value=\"\" selected=\"selected\"> - </option>
  2802.                                             <option value=\"Period\" disabled>Period</option>
  2803.                                             <option value=\"Reign\">Reign</option>
  2804.                                             <option value=\"Person\">Person</option>
  2805.                                             <option value=\"Mint\">Mint</option>
  2806.                                             <option value=\"Denomination\">Denomination</option>
  2807.                                             <option value=\"Material\">Material</option>
  2808.                                         </select>
  2809.                                         </span>
  2810.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  2811.                                             <label for=\"chart-reign\"> for reign </label>
  2812.                                             <select class=\"dropdown\" id=\"chart-reign\">
  2813.                                             </select>
  2814.                                         </span>
  2815.                                     </div>
  2816.                                     <div id=\"show-legend\" class=\"hidden\">
  2817.                                         <fieldset>
  2818.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  2819.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  2820.                                         </fieldset>
  2821.                                     </div>
  2822.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  2823.                                     <div style=\"height: 70vh\">
  2824.                                         <canvas id=\"hoard-chart\"></canvas>
  2825.                                     </div>
  2826.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  2827.                                         <fieldset>
  2828.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  2829.                                             <label for=\"numbers\">Numbers</label>
  2830.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  2831.                                             <label for=\"percentages\">Percentages</label>
  2832.                                         </fieldset>
  2833.                                     </div>
  2834.                                 </div>
  2835.                                 <div class=\"modal-footer\">
  2836.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  2837.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  2838.                                 </div>
  2839.                             </div>
  2840.                         </div>
  2841.                     </div>
  2842.                     <div class=\"marginTop clearfix\"></div>
  2843.             <div class=\"col-md-12 marginTop\">
  2844.                 <div class=\"col-md-6\">
  2845.                     <!-- Location tabs -->
  2846.                     <div id=\"tabs\" class=\"tabs\">
  2847.                         <ul>
  2848.                             <li><a href=\"#tab-1\">Location</a></li>
  2849.                         </ul>
  2850.                         <div id=\"tab-1\">
  2851.                             <div class=\"hoardlistview-6col\">
  2852.                                 {% if can_see_location %}
  2853.                                 {% if not hoard.hideCity or is_authenticated %}
  2854.                                 {% if hoard.city %}
  2855.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  2856.                                 {% endif %}
  2857.                                 {% if hoard.address %}
  2858.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  2859.                                 {% endif %}
  2860.                                 {% endif %}
  2861.                                 {% else %}
  2862.                                 <p>
  2863.                                     This Hoard's location is hidden
  2864.                                 </p>
  2865.                                 {% endif %}
  2866.                                 {% if not hoard.hideCounty or is_authenticated %}
  2867.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  2868.                                 {% endif %}
  2869.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  2870.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  2871.                                     {% for country in hoard.countries %}
  2872.                                       {{ country }}{% if not loop.last %}, {% endif %}
  2873.                                     {% endfor %}
  2874.                                 </div>
  2875.                                 {% if can_see_location %}
  2876.                                 {% if hoard.ancientPlace %}
  2877.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  2878.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  2879.                                         {% if hoard.ancientPlace.uri2 %}
  2880.                                         <br>
  2881.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  2882.                                         {% endif %}
  2883.                                     </div>
  2884.                                 {% endif %}
  2885.                                 <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>
  2886.                                 {% if hoard.findSpotLocationDetail %}
  2887.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  2888.                                 {% endif %}
  2889.                                 {% if hoard.findSpotComment %}
  2890.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  2891.                                 {% endif %}
  2892.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  2893.                                 <div>Fields with * are hidden in public view</div>
  2894.                                 {% endif %}
  2895.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  2896.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  2897.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  2898.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  2899.                                     </div>
  2900.                                     <div style=\"padding: 10px;\">
  2901.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  2902.                                     </div>
  2903.                                     <div style=\"padding: 10px;\">
  2904.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  2905.                                     </div>
  2906.                                 </div>
  2907.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  2908.                                     <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\"/>
  2909.                                 </div>
  2910.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  2911.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  2912.                                         <div class=\"panel panel-default\">
  2913.                                             <div class=\"panel-heading\">
  2914.                                                 <h4 class=\"panel-title\">
  2915.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  2916.                                                         Data not added to the map
  2917.                                                     </a>
  2918.                                                 </h4>
  2919.                                             </div>
  2920.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  2921.                                                 <div class=\"panel-body\"></div>
  2922.                                             </div>
  2923.                                         </div>
  2924.                                     </div>
  2925.                                 </div>
  2926.                                 {% endif %}
  2927.                             </div>
  2928.                         </div>
  2929.                     </div>
  2930.                 </div>
  2931.                 <div class=\"col-md-6\">
  2932.                     <!-- Hoard Summary tabs -->
  2933.                     <div id=\"tabs\" class=\"tabs\">
  2934.                         <ul>
  2935.                             <li><a href=\"#tab-1\">Information</a></li>
  2936.                         </ul>
  2937.                         {% set total = 0 %}
  2938.                         {% for coin in hoard.coins %}
  2939.                             {% set total = total + coin.quantity %}
  2940.                         {% endfor %}
  2941.                         <div id=\"tab-1\">
  2942.                             <div class=\"hoardlistview-6col\">
  2943.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  2944.                                 <div class=\"datalabel\">Permalink</div>
  2945.                                 <div class=\"data\">
  2946.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  2947.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  2948.                                         <i class=\"fa fa-copy\"></i>
  2949.                                     </a>
  2950.                                 </div>
  2951.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  2952.                                 {% if hoard.findSpotOtherNames %}
  2953.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  2954.                                 {%  endif %}
  2955.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  2956.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  2957.                                 {% if hoard.discoveryYear2 %}
  2958.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  2959.                                 {% endif %}
  2960.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  2961.                                 {% if hoard.province %}
  2962.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  2963.                                 {% endif %}
  2964.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  2965.                                 {% if is_authenticated and hoard.internalNote %}
  2966.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  2967.                                 {% endif %}
  2968.                                 <br>
  2969.                                 {% if is_authenticated %}
  2970.                                     {% if hoard.validatedByUser %}
  2971.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  2972.                                     {% else %}
  2973.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  2974.                                     {% endif %}
  2975.                                     {% if is_admin %}
  2976.                                         <br>
  2977.                                         {% if hoard.validatedByAdmin %}
  2978.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  2979.                                         {% else %}
  2980.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  2981.                                         {% endif %}
  2982.                                     {% endif %}
  2983.                                     <br>
  2984.                                     {% if hoard.coinDataValidatedByUser %}
  2985.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  2986.                                     {% else %}
  2987.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  2988.                                     {% endif %}
  2989.                                     {% if is_admin %}
  2990.                                         <br>
  2991.                                         {% if hoard.coinDataValidatedByAdmin %}
  2992.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  2993.                                         {% else %}
  2994.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  2995.                                         {% endif %}
  2996.                                     {% endif %}
  2997.                                 {% else %}
  2998.                                     {% if not hoard.coinDataValidatedByUser %}
  2999.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  3000.                                     {% endif %}
  3001.                                 {% endif %}
  3002.                             </div>
  3003.                         </div>
  3004.                     </div>
  3005.                 </div>  <!-- /col-6 -->
  3006.             </div>  <!-- /col-12 -->
  3007.         </div> <!-- /row -->
  3008.         <!-- hoard detail tabs -->
  3009.         <div class=\"row\">
  3010.             <div class=\"col-md-12 marginTop\">
  3011.                 <div id=\"tabs3\" class=\"tabs\">
  3012.                     <ul>
  3013.                         <li><a href=\"#tabs3-1\">Details</a></li>
  3014.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  3015.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  3016.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  3017.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  3018.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  3019.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  3020.                         <li><a href=\"#tabs3-6\">References</a></li>
  3021.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  3022.                         <li><a href=\"#tabs3-8\">Images</a></li>
  3023.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  3024.                     </ul>
  3025.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  3026.                         <ul>
  3027.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  3028.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  3029.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  3030.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  3031.                             {% if not hoard.hideFinder or is_authenticated %}
  3032.                                 {% 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 %}
  3033.                             {% endif %}
  3034.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  3035.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  3036.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  3037.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  3038.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  3039.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  3040.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  3041.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  3042.                         
  3043.                             {% if is_admin %}
  3044.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  3045.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  3046.                             {% endif %}
  3047.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  3048.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  3049.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  3050.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  3051.                                 {% endif %}
  3052.                             {% endif %}
  3053.                             {% if hoard.hideFinder and is_authenticated %}
  3054.                             <div>Fields with * are hidden in public view</div>
  3055.                             {% endif %}
  3056.                         </ul>
  3057.                     </div>
  3058.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  3059.                         {% if show_coins_summary %}
  3060.                             <p>Fetching coin data</p>
  3061.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  3062.                         {% else %}
  3063.                             {% if not hoard.coinDataValidatedByUser %}
  3064.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  3065.                             {% else %}
  3066.                                 The coin summary for this hoard has been hidden
  3067.                             {% endif %}
  3068.                         {% endif %}
  3069.                     </div>
  3070.                     <div id=\"tabs3-10\">
  3071.                         {% if show_coins %}
  3072.                             <div class=\"coin-data-container\">
  3073.                                 <p>Fetching coin data</p>
  3074.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  3075.                             </div>
  3076.                         {% else %}
  3077.                             {% if not hoard.coinDataValidatedByUser %}
  3078.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  3079.                             {% else %}
  3080.                                 The coins for this hoard have been hidden
  3081.                             {% endif %}
  3082.                         {% endif %}
  3083.                     </div>
  3084.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  3085.                         <ul>
  3086.                             {% if hoard.rating %}
  3087.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  3088.                             {% endif %}
  3089.                             {% if hoard.ratingComment %}
  3090.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  3091.                             {% endif %}
  3092.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  3093.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  3094.                         </ul>
  3095.                     </div>
  3096.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  3097.                         <ul>
  3098.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  3099.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  3100.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  3101.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  3102.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  3103.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  3104.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  3105.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  3106.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  3107.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  3108.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  3109.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  3110.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  3111.                                 {% endfor %}
  3112.                             </div>
  3113.                             {% endif %}
  3114.                             {% if hoard.archaeologyContextNatures is not empty %}
  3115.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  3116.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  3117.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  3118.                                 {% endfor %}
  3119.                             </div>
  3120.                             {% endif %}
  3121.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  3122.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  3123.                         </ul>
  3124.                     </div>
  3125.                     <div id=\"tabs3-4\">
  3126.                         {% block containers %}
  3127.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  3128.                             {% endembed %}
  3129.                          {% endblock %}
  3130.                     </div>
  3131.                     <div id=\"tabs3-5\">
  3132.                         {% block objects %}
  3133.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  3134.                             {% endembed %}
  3135.                          {% endblock %}
  3136.                     </div>
  3137.                     <div id=\"tabs3-6\">
  3138.                             {% if onlineDatabaseReferences  is not empty  %}
  3139.                             <div class=\"hoardlistview-6col\">
  3140.                                 <h2>Permalink in other online databases</h2>
  3141.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  3142.             \t\t\t\t\t\t{% if ref.reference %}
  3143.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  3144.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  3145.             \t\t\t\t\t\t\t{{ref.reference}}
  3146.             \t\t\t\t\t\t</a></div>
  3147.             \t\t\t\t\t\t{% endif %}
  3148.             \t\t\t\t\t\t{% if ref.referenceStr %}
  3149.                                         {% if 'http://' in ref.referenceStr %}
  3150.                                         <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>
  3151.                                         {% elseif 'https://' in ref.referenceStr %}
  3152.                                         <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>
  3153.                                         {% else %}
  3154.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  3155.                                         {% endif %}
  3156.                                     
  3157.             \t\t\t\t\t\t{% endif %}
  3158.             \t\t\t\t\t\t{% if ref.comment %}
  3159.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  3160.             \t\t\t\t\t\t{% endif %}
  3161.             \t\t\t\t\t\t<br>
  3162.             \t\t\t\t\t{% endfor %}
  3163.                             </div>
  3164.        \t\t\t\t\t\t{% endif %}
  3165.                             <div class=\"hoardlistview-6col\">
  3166.                                 <h2>References</h2>
  3167.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  3168.             \t\t\t\t\t{% for ref in hoardReferences %}
  3169.             \t\t\t\t\t\t{% if ref.reference %}
  3170.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  3171.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  3172.             \t\t\t\t\t\t\t{{ref.reference}}
  3173.             \t\t\t\t\t\t</a></div>
  3174.             \t\t\t\t\t\t{% endif %}
  3175.             \t\t\t\t\t\t{% if ref.referenceStr %}
  3176.                                         {% if 'http://' in ref.referenceStr %}
  3177.                                         <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>
  3178.                                         {% elseif 'https://' in ref.referenceStr %}
  3179.                                         <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>
  3180.                                         {% else %}
  3181.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  3182.                                         {% endif %}
  3183.                                     
  3184.             \t\t\t\t\t\t{% endif %}
  3185.             \t\t\t\t\t\t{% if ref.comment %}
  3186.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  3187.             \t\t\t\t\t\t{% endif %}
  3188.             \t\t\t\t\t\t<br>
  3189.             \t\t\t\t\t{% endfor %}
  3190.                             </div>
  3191.                     </div>
  3192.                     <div id=\"tabs3-7\">
  3193.                     </div>
  3194.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  3195.                         {% for key, image in images %}
  3196.                             <div class=\"row hoard-show-image-container\">
  3197.                                     <div class=\"col-md-12 magnify-image-container\">
  3198.                                         {% if image.hoardImages_id %}
  3199.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  3200.                                         {% else %}
  3201.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  3202.                                             Image not found
  3203.                                         {% endif %}
  3204.                                     </div>
  3205.                                     <div class=\"col-md-12\">
  3206.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  3207.                                             {% if image.uri1 is defined %}
  3208.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  3209.                                             {% endif %}
  3210.                                             {% if image.uri2 is defined %}
  3211.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  3212.                                             {% endif %}
  3213.                                             {% if image.comment is defined %}
  3214.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  3215.                                             {% endif %}
  3216.                                         </div>
  3217.                                     </div>
  3218.                             </div>
  3219.                         {% endfor %}
  3220.                     </div>
  3221.                     <div id=\"tabs3-11\">
  3222.                         <p>{{ hoard.credit }}</p>
  3223.                         {% if is_admin %}
  3224.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  3225.                         {% endif %}
  3226.                     </div>
  3227.                 </div>
  3228.             </div>
  3229.         </div>
  3230.     </div><!-- end page container -->
  3231. {% endblock %}
  3232. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  3233.     }
  3234. }
  3235. /* @OxHoard/hoard/show.html.twig */
  3236. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1717882628 extends Template
  3237. {
  3238.     private $source;
  3239.     private $macros = [];
  3240.     public function __construct(Environment $env)
  3241.     {
  3242.         parent::__construct($env);
  3243.         $this->source $this->getSourceContext();
  3244.         $this->blocks = [
  3245.         ];
  3246.     }
  3247.     protected function doGetParent(array $context)
  3248.     {
  3249.         // line 44
  3250.         return "import-libs/handlebars.js.html.twig";
  3251.     }
  3252.     protected function doDisplay(array $context, array $blocks = [])
  3253.     {
  3254.         $macros $this->macros;
  3255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  3256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  3257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  3259.         $this->parent $this->loadTemplate("import-libs/handlebars.js.html.twig""@OxHoard/hoard/show.html.twig"44);
  3260.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  3261.         
  3262.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  3263.         
  3264.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  3265.     }
  3266.     public function getTemplateName()
  3267.     {
  3268.         return "@OxHoard/hoard/show.html.twig";
  3269.     }
  3270.     public function isTraitable()
  3271.     {
  3272.         return false;
  3273.     }
  3274.     public function getDebugInfo()
  3275.     {
  3276.         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,);
  3277.     }
  3278.     public function getSourceContext()
  3279.     {
  3280.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  3281. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  3282. {% block stylesheets %}
  3283.     {{ parent() }}
  3284.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  3285.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  3286.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  3287. {% endblock %}
  3288. {% block javascripts %}
  3289.     {{ parent() }}
  3290.     <script>
  3291.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  3292.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  3293.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  3294.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  3295.     sortOptions = {}
  3296.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  3297.     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 %} };
  3298.     {% if is_authorised_to_edit %}
  3299.     isAuthorisedToEdit = true;
  3300.     {% else %}
  3301.     isAuthorisedToEdit = false;
  3302.     {% endif %}
  3303.     {% if can_see_location %}
  3304.         newMapResult = null
  3305.         \$( function() {
  3306.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  3307.         });
  3308.     {% endif %}
  3309.     </script>
  3310.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  3311.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  3312.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  3313.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  3314.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  3315. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  3316.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  3317.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  3318.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  3319.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  3320.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  3321.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  3322. {% endblock %}
  3323. {% block body -%}
  3324.     <noscript>
  3325.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  3326.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  3327.                 <p>This website requires Javascript to be enabled in your browser.</p>
  3328.                 <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>
  3329.     </noscript>
  3330.     <!-- content -->
  3331.     <div class=\"marginTop clearfix\"></div>
  3332.     <div id=\"content\" class=\"container\"> <!-- page content -->
  3333.         <div class=\"row\">
  3334.             {% if is_authorised_to_edit %}
  3335.                 <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>
  3336.             {% endif %}
  3337.             
  3338.             <h1>{{ hoard.findSpotName }}</h1>
  3339.             Download CSV:
  3340.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  3341.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  3342.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  3343.                     <div class=\"marginTop clearfix\"></div>
  3344.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  3345.                     <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>
  3346.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  3347.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  3348.                             <div class=\"modal-content\">
  3349.                                 <div class=\"modal-header\">
  3350.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  3351.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  3352.                                 </div>
  3353.                                 <div class=\"modal-body\">
  3354.                                     <div>
  3355.                                         <label for=\"chart-type\">Chart type </label>
  3356.                                         <select class=\"dropdown\" id=\"chart-type\">
  3357.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  3358.                                             <option value=\"pie\">Pie</option>
  3359.                                         </select>
  3360.                                         <label for=\"chart-attribute\">Coins per </label>
  3361.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  3362.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  3363.                                             <option value=\"Reign\">Reign</option>
  3364.                                             <option value=\"Person\">Person</option>
  3365.                                             <option value=\"Mint\">Mint</option>
  3366.                                             <option value=\"Denomination\">Denomination</option>
  3367.                                             <option value=\"Material\">Material</option>
  3368.                                         </select>
  3369.                                         <span id=\"chart-stacked-container\">
  3370.                                         <label for=\"chart-stacked\">Stacked per</label>
  3371.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  3372.                                             <option value=\"\" selected=\"selected\"> - </option>
  3373.                                             <option value=\"Period\" disabled>Period</option>
  3374.                                             <option value=\"Reign\">Reign</option>
  3375.                                             <option value=\"Person\">Person</option>
  3376.                                             <option value=\"Mint\">Mint</option>
  3377.                                             <option value=\"Denomination\">Denomination</option>
  3378.                                             <option value=\"Material\">Material</option>
  3379.                                         </select>
  3380.                                         </span>
  3381.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  3382.                                             <label for=\"chart-reign\"> for reign </label>
  3383.                                             <select class=\"dropdown\" id=\"chart-reign\">
  3384.                                             </select>
  3385.                                         </span>
  3386.                                     </div>
  3387.                                     <div id=\"show-legend\" class=\"hidden\">
  3388.                                         <fieldset>
  3389.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  3390.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  3391.                                         </fieldset>
  3392.                                     </div>
  3393.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  3394.                                     <div style=\"height: 70vh\">
  3395.                                         <canvas id=\"hoard-chart\"></canvas>
  3396.                                     </div>
  3397.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  3398.                                         <fieldset>
  3399.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  3400.                                             <label for=\"numbers\">Numbers</label>
  3401.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  3402.                                             <label for=\"percentages\">Percentages</label>
  3403.                                         </fieldset>
  3404.                                     </div>
  3405.                                 </div>
  3406.                                 <div class=\"modal-footer\">
  3407.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  3408.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  3409.                                 </div>
  3410.                             </div>
  3411.                         </div>
  3412.                     </div>
  3413.                     <div class=\"marginTop clearfix\"></div>
  3414.             <div class=\"col-md-12 marginTop\">
  3415.                 <div class=\"col-md-6\">
  3416.                     <!-- Location tabs -->
  3417.                     <div id=\"tabs\" class=\"tabs\">
  3418.                         <ul>
  3419.                             <li><a href=\"#tab-1\">Location</a></li>
  3420.                         </ul>
  3421.                         <div id=\"tab-1\">
  3422.                             <div class=\"hoardlistview-6col\">
  3423.                                 {% if can_see_location %}
  3424.                                 {% if not hoard.hideCity or is_authenticated %}
  3425.                                 {% if hoard.city %}
  3426.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  3427.                                 {% endif %}
  3428.                                 {% if hoard.address %}
  3429.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  3430.                                 {% endif %}
  3431.                                 {% endif %}
  3432.                                 {% else %}
  3433.                                 <p>
  3434.                                     This Hoard's location is hidden
  3435.                                 </p>
  3436.                                 {% endif %}
  3437.                                 {% if not hoard.hideCounty or is_authenticated %}
  3438.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  3439.                                 {% endif %}
  3440.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  3441.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  3442.                                     {% for country in hoard.countries %}
  3443.                                       {{ country }}{% if not loop.last %}, {% endif %}
  3444.                                     {% endfor %}
  3445.                                 </div>
  3446.                                 {% if can_see_location %}
  3447.                                 {% if hoard.ancientPlace %}
  3448.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  3449.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  3450.                                         {% if hoard.ancientPlace.uri2 %}
  3451.                                         <br>
  3452.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  3453.                                         {% endif %}
  3454.                                     </div>
  3455.                                 {% endif %}
  3456.                                 <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>
  3457.                                 {% if hoard.findSpotLocationDetail %}
  3458.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  3459.                                 {% endif %}
  3460.                                 {% if hoard.findSpotComment %}
  3461.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  3462.                                 {% endif %}
  3463.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  3464.                                 <div>Fields with * are hidden in public view</div>
  3465.                                 {% endif %}
  3466.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  3467.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  3468.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  3469.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  3470.                                     </div>
  3471.                                     <div style=\"padding: 10px;\">
  3472.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  3473.                                     </div>
  3474.                                     <div style=\"padding: 10px;\">
  3475.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  3476.                                     </div>
  3477.                                 </div>
  3478.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  3479.                                     <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\"/>
  3480.                                 </div>
  3481.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  3482.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  3483.                                         <div class=\"panel panel-default\">
  3484.                                             <div class=\"panel-heading\">
  3485.                                                 <h4 class=\"panel-title\">
  3486.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  3487.                                                         Data not added to the map
  3488.                                                     </a>
  3489.                                                 </h4>
  3490.                                             </div>
  3491.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  3492.                                                 <div class=\"panel-body\"></div>
  3493.                                             </div>
  3494.                                         </div>
  3495.                                     </div>
  3496.                                 </div>
  3497.                                 {% endif %}
  3498.                             </div>
  3499.                         </div>
  3500.                     </div>
  3501.                 </div>
  3502.                 <div class=\"col-md-6\">
  3503.                     <!-- Hoard Summary tabs -->
  3504.                     <div id=\"tabs\" class=\"tabs\">
  3505.                         <ul>
  3506.                             <li><a href=\"#tab-1\">Information</a></li>
  3507.                         </ul>
  3508.                         {% set total = 0 %}
  3509.                         {% for coin in hoard.coins %}
  3510.                             {% set total = total + coin.quantity %}
  3511.                         {% endfor %}
  3512.                         <div id=\"tab-1\">
  3513.                             <div class=\"hoardlistview-6col\">
  3514.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  3515.                                 <div class=\"datalabel\">Permalink</div>
  3516.                                 <div class=\"data\">
  3517.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  3518.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  3519.                                         <i class=\"fa fa-copy\"></i>
  3520.                                     </a>
  3521.                                 </div>
  3522.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  3523.                                 {% if hoard.findSpotOtherNames %}
  3524.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  3525.                                 {%  endif %}
  3526.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  3527.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  3528.                                 {% if hoard.discoveryYear2 %}
  3529.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  3530.                                 {% endif %}
  3531.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  3532.                                 {% if hoard.province %}
  3533.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  3534.                                 {% endif %}
  3535.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  3536.                                 {% if is_authenticated and hoard.internalNote %}
  3537.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  3538.                                 {% endif %}
  3539.                                 <br>
  3540.                                 {% if is_authenticated %}
  3541.                                     {% if hoard.validatedByUser %}
  3542.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  3543.                                     {% else %}
  3544.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  3545.                                     {% endif %}
  3546.                                     {% if is_admin %}
  3547.                                         <br>
  3548.                                         {% if hoard.validatedByAdmin %}
  3549.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  3550.                                         {% else %}
  3551.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  3552.                                         {% endif %}
  3553.                                     {% endif %}
  3554.                                     <br>
  3555.                                     {% if hoard.coinDataValidatedByUser %}
  3556.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  3557.                                     {% else %}
  3558.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  3559.                                     {% endif %}
  3560.                                     {% if is_admin %}
  3561.                                         <br>
  3562.                                         {% if hoard.coinDataValidatedByAdmin %}
  3563.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  3564.                                         {% else %}
  3565.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  3566.                                         {% endif %}
  3567.                                     {% endif %}
  3568.                                 {% else %}
  3569.                                     {% if not hoard.coinDataValidatedByUser %}
  3570.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  3571.                                     {% endif %}
  3572.                                 {% endif %}
  3573.                             </div>
  3574.                         </div>
  3575.                     </div>
  3576.                 </div>  <!-- /col-6 -->
  3577.             </div>  <!-- /col-12 -->
  3578.         </div> <!-- /row -->
  3579.         <!-- hoard detail tabs -->
  3580.         <div class=\"row\">
  3581.             <div class=\"col-md-12 marginTop\">
  3582.                 <div id=\"tabs3\" class=\"tabs\">
  3583.                     <ul>
  3584.                         <li><a href=\"#tabs3-1\">Details</a></li>
  3585.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  3586.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  3587.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  3588.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  3589.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  3590.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  3591.                         <li><a href=\"#tabs3-6\">References</a></li>
  3592.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  3593.                         <li><a href=\"#tabs3-8\">Images</a></li>
  3594.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  3595.                     </ul>
  3596.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  3597.                         <ul>
  3598.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  3599.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  3600.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  3601.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  3602.                             {% if not hoard.hideFinder or is_authenticated %}
  3603.                                 {% 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 %}
  3604.                             {% endif %}
  3605.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  3606.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  3607.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  3608.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  3609.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  3610.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  3611.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  3612.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  3613.                         
  3614.                             {% if is_admin %}
  3615.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  3616.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  3617.                             {% endif %}
  3618.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  3619.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  3620.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  3621.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  3622.                                 {% endif %}
  3623.                             {% endif %}
  3624.                             {% if hoard.hideFinder and is_authenticated %}
  3625.                             <div>Fields with * are hidden in public view</div>
  3626.                             {% endif %}
  3627.                         </ul>
  3628.                     </div>
  3629.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  3630.                         {% if show_coins_summary %}
  3631.                             <p>Fetching coin data</p>
  3632.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  3633.                         {% else %}
  3634.                             {% if not hoard.coinDataValidatedByUser %}
  3635.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  3636.                             {% else %}
  3637.                                 The coin summary for this hoard has been hidden
  3638.                             {% endif %}
  3639.                         {% endif %}
  3640.                     </div>
  3641.                     <div id=\"tabs3-10\">
  3642.                         {% if show_coins %}
  3643.                             <div class=\"coin-data-container\">
  3644.                                 <p>Fetching coin data</p>
  3645.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  3646.                             </div>
  3647.                         {% else %}
  3648.                             {% if not hoard.coinDataValidatedByUser %}
  3649.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  3650.                             {% else %}
  3651.                                 The coins for this hoard have been hidden
  3652.                             {% endif %}
  3653.                         {% endif %}
  3654.                     </div>
  3655.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  3656.                         <ul>
  3657.                             {% if hoard.rating %}
  3658.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  3659.                             {% endif %}
  3660.                             {% if hoard.ratingComment %}
  3661.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  3662.                             {% endif %}
  3663.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  3664.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  3665.                         </ul>
  3666.                     </div>
  3667.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  3668.                         <ul>
  3669.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  3670.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  3671.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  3672.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  3673.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  3674.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  3675.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  3676.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  3677.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  3678.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  3679.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  3680.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  3681.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  3682.                                 {% endfor %}
  3683.                             </div>
  3684.                             {% endif %}
  3685.                             {% if hoard.archaeologyContextNatures is not empty %}
  3686.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  3687.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  3688.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  3689.                                 {% endfor %}
  3690.                             </div>
  3691.                             {% endif %}
  3692.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  3693.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  3694.                         </ul>
  3695.                     </div>
  3696.                     <div id=\"tabs3-4\">
  3697.                         {% block containers %}
  3698.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  3699.                             {% endembed %}
  3700.                          {% endblock %}
  3701.                     </div>
  3702.                     <div id=\"tabs3-5\">
  3703.                         {% block objects %}
  3704.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  3705.                             {% endembed %}
  3706.                          {% endblock %}
  3707.                     </div>
  3708.                     <div id=\"tabs3-6\">
  3709.                             {% if onlineDatabaseReferences  is not empty  %}
  3710.                             <div class=\"hoardlistview-6col\">
  3711.                                 <h2>Permalink in other online databases</h2>
  3712.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  3713.             \t\t\t\t\t\t{% if ref.reference %}
  3714.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  3715.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  3716.             \t\t\t\t\t\t\t{{ref.reference}}
  3717.             \t\t\t\t\t\t</a></div>
  3718.             \t\t\t\t\t\t{% endif %}
  3719.             \t\t\t\t\t\t{% if ref.referenceStr %}
  3720.                                         {% if 'http://' in ref.referenceStr %}
  3721.                                         <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>
  3722.                                         {% elseif 'https://' in ref.referenceStr %}
  3723.                                         <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>
  3724.                                         {% else %}
  3725.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  3726.                                         {% endif %}
  3727.                                     
  3728.             \t\t\t\t\t\t{% endif %}
  3729.             \t\t\t\t\t\t{% if ref.comment %}
  3730.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  3731.             \t\t\t\t\t\t{% endif %}
  3732.             \t\t\t\t\t\t<br>
  3733.             \t\t\t\t\t{% endfor %}
  3734.                             </div>
  3735.        \t\t\t\t\t\t{% endif %}
  3736.                             <div class=\"hoardlistview-6col\">
  3737.                                 <h2>References</h2>
  3738.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  3739.             \t\t\t\t\t{% for ref in hoardReferences %}
  3740.             \t\t\t\t\t\t{% if ref.reference %}
  3741.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  3742.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  3743.             \t\t\t\t\t\t\t{{ref.reference}}
  3744.             \t\t\t\t\t\t</a></div>
  3745.             \t\t\t\t\t\t{% endif %}
  3746.             \t\t\t\t\t\t{% if ref.referenceStr %}
  3747.                                         {% if 'http://' in ref.referenceStr %}
  3748.                                         <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>
  3749.                                         {% elseif 'https://' in ref.referenceStr %}
  3750.                                         <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>
  3751.                                         {% else %}
  3752.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  3753.                                         {% endif %}
  3754.                                     
  3755.             \t\t\t\t\t\t{% endif %}
  3756.             \t\t\t\t\t\t{% if ref.comment %}
  3757.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  3758.             \t\t\t\t\t\t{% endif %}
  3759.             \t\t\t\t\t\t<br>
  3760.             \t\t\t\t\t{% endfor %}
  3761.                             </div>
  3762.                     </div>
  3763.                     <div id=\"tabs3-7\">
  3764.                     </div>
  3765.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  3766.                         {% for key, image in images %}
  3767.                             <div class=\"row hoard-show-image-container\">
  3768.                                     <div class=\"col-md-12 magnify-image-container\">
  3769.                                         {% if image.hoardImages_id %}
  3770.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  3771.                                         {% else %}
  3772.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  3773.                                             Image not found
  3774.                                         {% endif %}
  3775.                                     </div>
  3776.                                     <div class=\"col-md-12\">
  3777.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  3778.                                             {% if image.uri1 is defined %}
  3779.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  3780.                                             {% endif %}
  3781.                                             {% if image.uri2 is defined %}
  3782.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  3783.                                             {% endif %}
  3784.                                             {% if image.comment is defined %}
  3785.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  3786.                                             {% endif %}
  3787.                                         </div>
  3788.                                     </div>
  3789.                             </div>
  3790.                         {% endfor %}
  3791.                     </div>
  3792.                     <div id=\"tabs3-11\">
  3793.                         <p>{{ hoard.credit }}</p>
  3794.                         {% if is_admin %}
  3795.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  3796.                         {% endif %}
  3797.                     </div>
  3798.                 </div>
  3799.             </div>
  3800.         </div>
  3801.     </div><!-- end page container -->
  3802. {% endblock %}
  3803. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  3804.     }
  3805. }
  3806. /* @OxHoard/hoard/show.html.twig */
  3807. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1279078495 extends Template
  3808. {
  3809.     private $source;
  3810.     private $macros = [];
  3811.     public function __construct(Environment $env)
  3812.     {
  3813.         parent::__construct($env);
  3814.         $this->source $this->getSourceContext();
  3815.         $this->blocks = [
  3816.         ];
  3817.     }
  3818.     protected function doGetParent(array $context)
  3819.     {
  3820.         // line 45
  3821.         return "import-libs/chart.js.html.twig";
  3822.     }
  3823.     protected function doDisplay(array $context, array $blocks = [])
  3824.     {
  3825.         $macros $this->macros;
  3826.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  3827.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  3828.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3829.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  3830.         $this->parent $this->loadTemplate("import-libs/chart.js.html.twig""@OxHoard/hoard/show.html.twig"45);
  3831.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  3832.         
  3833.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  3834.         
  3835.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  3836.     }
  3837.     public function getTemplateName()
  3838.     {
  3839.         return "@OxHoard/hoard/show.html.twig";
  3840.     }
  3841.     public function isTraitable()
  3842.     {
  3843.         return false;
  3844.     }
  3845.     public function getDebugInfo()
  3846.     {
  3847.         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,);
  3848.     }
  3849.     public function getSourceContext()
  3850.     {
  3851.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  3852. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  3853. {% block stylesheets %}
  3854.     {{ parent() }}
  3855.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  3856.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  3857.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  3858. {% endblock %}
  3859. {% block javascripts %}
  3860.     {{ parent() }}
  3861.     <script>
  3862.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  3863.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  3864.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  3865.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  3866.     sortOptions = {}
  3867.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  3868.     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 %} };
  3869.     {% if is_authorised_to_edit %}
  3870.     isAuthorisedToEdit = true;
  3871.     {% else %}
  3872.     isAuthorisedToEdit = false;
  3873.     {% endif %}
  3874.     {% if can_see_location %}
  3875.         newMapResult = null
  3876.         \$( function() {
  3877.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  3878.         });
  3879.     {% endif %}
  3880.     </script>
  3881.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  3882.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  3883.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  3884.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  3885.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  3886. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  3887.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  3888.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  3889.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  3890.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  3891.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  3892.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  3893. {% endblock %}
  3894. {% block body -%}
  3895.     <noscript>
  3896.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  3897.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  3898.                 <p>This website requires Javascript to be enabled in your browser.</p>
  3899.                 <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>
  3900.     </noscript>
  3901.     <!-- content -->
  3902.     <div class=\"marginTop clearfix\"></div>
  3903.     <div id=\"content\" class=\"container\"> <!-- page content -->
  3904.         <div class=\"row\">
  3905.             {% if is_authorised_to_edit %}
  3906.                 <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>
  3907.             {% endif %}
  3908.             
  3909.             <h1>{{ hoard.findSpotName }}</h1>
  3910.             Download CSV:
  3911.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  3912.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  3913.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  3914.                     <div class=\"marginTop clearfix\"></div>
  3915.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  3916.                     <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>
  3917.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  3918.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  3919.                             <div class=\"modal-content\">
  3920.                                 <div class=\"modal-header\">
  3921.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  3922.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  3923.                                 </div>
  3924.                                 <div class=\"modal-body\">
  3925.                                     <div>
  3926.                                         <label for=\"chart-type\">Chart type </label>
  3927.                                         <select class=\"dropdown\" id=\"chart-type\">
  3928.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  3929.                                             <option value=\"pie\">Pie</option>
  3930.                                         </select>
  3931.                                         <label for=\"chart-attribute\">Coins per </label>
  3932.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  3933.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  3934.                                             <option value=\"Reign\">Reign</option>
  3935.                                             <option value=\"Person\">Person</option>
  3936.                                             <option value=\"Mint\">Mint</option>
  3937.                                             <option value=\"Denomination\">Denomination</option>
  3938.                                             <option value=\"Material\">Material</option>
  3939.                                         </select>
  3940.                                         <span id=\"chart-stacked-container\">
  3941.                                         <label for=\"chart-stacked\">Stacked per</label>
  3942.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  3943.                                             <option value=\"\" selected=\"selected\"> - </option>
  3944.                                             <option value=\"Period\" disabled>Period</option>
  3945.                                             <option value=\"Reign\">Reign</option>
  3946.                                             <option value=\"Person\">Person</option>
  3947.                                             <option value=\"Mint\">Mint</option>
  3948.                                             <option value=\"Denomination\">Denomination</option>
  3949.                                             <option value=\"Material\">Material</option>
  3950.                                         </select>
  3951.                                         </span>
  3952.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  3953.                                             <label for=\"chart-reign\"> for reign </label>
  3954.                                             <select class=\"dropdown\" id=\"chart-reign\">
  3955.                                             </select>
  3956.                                         </span>
  3957.                                     </div>
  3958.                                     <div id=\"show-legend\" class=\"hidden\">
  3959.                                         <fieldset>
  3960.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  3961.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  3962.                                         </fieldset>
  3963.                                     </div>
  3964.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  3965.                                     <div style=\"height: 70vh\">
  3966.                                         <canvas id=\"hoard-chart\"></canvas>
  3967.                                     </div>
  3968.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  3969.                                         <fieldset>
  3970.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  3971.                                             <label for=\"numbers\">Numbers</label>
  3972.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  3973.                                             <label for=\"percentages\">Percentages</label>
  3974.                                         </fieldset>
  3975.                                     </div>
  3976.                                 </div>
  3977.                                 <div class=\"modal-footer\">
  3978.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  3979.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  3980.                                 </div>
  3981.                             </div>
  3982.                         </div>
  3983.                     </div>
  3984.                     <div class=\"marginTop clearfix\"></div>
  3985.             <div class=\"col-md-12 marginTop\">
  3986.                 <div class=\"col-md-6\">
  3987.                     <!-- Location tabs -->
  3988.                     <div id=\"tabs\" class=\"tabs\">
  3989.                         <ul>
  3990.                             <li><a href=\"#tab-1\">Location</a></li>
  3991.                         </ul>
  3992.                         <div id=\"tab-1\">
  3993.                             <div class=\"hoardlistview-6col\">
  3994.                                 {% if can_see_location %}
  3995.                                 {% if not hoard.hideCity or is_authenticated %}
  3996.                                 {% if hoard.city %}
  3997.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  3998.                                 {% endif %}
  3999.                                 {% if hoard.address %}
  4000.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  4001.                                 {% endif %}
  4002.                                 {% endif %}
  4003.                                 {% else %}
  4004.                                 <p>
  4005.                                     This Hoard's location is hidden
  4006.                                 </p>
  4007.                                 {% endif %}
  4008.                                 {% if not hoard.hideCounty or is_authenticated %}
  4009.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  4010.                                 {% endif %}
  4011.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  4012.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  4013.                                     {% for country in hoard.countries %}
  4014.                                       {{ country }}{% if not loop.last %}, {% endif %}
  4015.                                     {% endfor %}
  4016.                                 </div>
  4017.                                 {% if can_see_location %}
  4018.                                 {% if hoard.ancientPlace %}
  4019.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  4020.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  4021.                                         {% if hoard.ancientPlace.uri2 %}
  4022.                                         <br>
  4023.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  4024.                                         {% endif %}
  4025.                                     </div>
  4026.                                 {% endif %}
  4027.                                 <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>
  4028.                                 {% if hoard.findSpotLocationDetail %}
  4029.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  4030.                                 {% endif %}
  4031.                                 {% if hoard.findSpotComment %}
  4032.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  4033.                                 {% endif %}
  4034.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  4035.                                 <div>Fields with * are hidden in public view</div>
  4036.                                 {% endif %}
  4037.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  4038.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  4039.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  4040.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  4041.                                     </div>
  4042.                                     <div style=\"padding: 10px;\">
  4043.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  4044.                                     </div>
  4045.                                     <div style=\"padding: 10px;\">
  4046.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  4047.                                     </div>
  4048.                                 </div>
  4049.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  4050.                                     <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\"/>
  4051.                                 </div>
  4052.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  4053.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  4054.                                         <div class=\"panel panel-default\">
  4055.                                             <div class=\"panel-heading\">
  4056.                                                 <h4 class=\"panel-title\">
  4057.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  4058.                                                         Data not added to the map
  4059.                                                     </a>
  4060.                                                 </h4>
  4061.                                             </div>
  4062.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  4063.                                                 <div class=\"panel-body\"></div>
  4064.                                             </div>
  4065.                                         </div>
  4066.                                     </div>
  4067.                                 </div>
  4068.                                 {% endif %}
  4069.                             </div>
  4070.                         </div>
  4071.                     </div>
  4072.                 </div>
  4073.                 <div class=\"col-md-6\">
  4074.                     <!-- Hoard Summary tabs -->
  4075.                     <div id=\"tabs\" class=\"tabs\">
  4076.                         <ul>
  4077.                             <li><a href=\"#tab-1\">Information</a></li>
  4078.                         </ul>
  4079.                         {% set total = 0 %}
  4080.                         {% for coin in hoard.coins %}
  4081.                             {% set total = total + coin.quantity %}
  4082.                         {% endfor %}
  4083.                         <div id=\"tab-1\">
  4084.                             <div class=\"hoardlistview-6col\">
  4085.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  4086.                                 <div class=\"datalabel\">Permalink</div>
  4087.                                 <div class=\"data\">
  4088.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  4089.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  4090.                                         <i class=\"fa fa-copy\"></i>
  4091.                                     </a>
  4092.                                 </div>
  4093.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  4094.                                 {% if hoard.findSpotOtherNames %}
  4095.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  4096.                                 {%  endif %}
  4097.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  4098.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  4099.                                 {% if hoard.discoveryYear2 %}
  4100.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  4101.                                 {% endif %}
  4102.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  4103.                                 {% if hoard.province %}
  4104.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  4105.                                 {% endif %}
  4106.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  4107.                                 {% if is_authenticated and hoard.internalNote %}
  4108.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  4109.                                 {% endif %}
  4110.                                 <br>
  4111.                                 {% if is_authenticated %}
  4112.                                     {% if hoard.validatedByUser %}
  4113.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  4114.                                     {% else %}
  4115.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  4116.                                     {% endif %}
  4117.                                     {% if is_admin %}
  4118.                                         <br>
  4119.                                         {% if hoard.validatedByAdmin %}
  4120.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  4121.                                         {% else %}
  4122.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  4123.                                         {% endif %}
  4124.                                     {% endif %}
  4125.                                     <br>
  4126.                                     {% if hoard.coinDataValidatedByUser %}
  4127.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  4128.                                     {% else %}
  4129.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  4130.                                     {% endif %}
  4131.                                     {% if is_admin %}
  4132.                                         <br>
  4133.                                         {% if hoard.coinDataValidatedByAdmin %}
  4134.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  4135.                                         {% else %}
  4136.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  4137.                                         {% endif %}
  4138.                                     {% endif %}
  4139.                                 {% else %}
  4140.                                     {% if not hoard.coinDataValidatedByUser %}
  4141.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  4142.                                     {% endif %}
  4143.                                 {% endif %}
  4144.                             </div>
  4145.                         </div>
  4146.                     </div>
  4147.                 </div>  <!-- /col-6 -->
  4148.             </div>  <!-- /col-12 -->
  4149.         </div> <!-- /row -->
  4150.         <!-- hoard detail tabs -->
  4151.         <div class=\"row\">
  4152.             <div class=\"col-md-12 marginTop\">
  4153.                 <div id=\"tabs3\" class=\"tabs\">
  4154.                     <ul>
  4155.                         <li><a href=\"#tabs3-1\">Details</a></li>
  4156.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  4157.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  4158.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  4159.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  4160.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  4161.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  4162.                         <li><a href=\"#tabs3-6\">References</a></li>
  4163.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  4164.                         <li><a href=\"#tabs3-8\">Images</a></li>
  4165.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  4166.                     </ul>
  4167.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  4168.                         <ul>
  4169.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  4170.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  4171.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  4172.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  4173.                             {% if not hoard.hideFinder or is_authenticated %}
  4174.                                 {% 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 %}
  4175.                             {% endif %}
  4176.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  4177.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  4178.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  4179.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  4180.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  4181.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  4182.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  4183.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  4184.                         
  4185.                             {% if is_admin %}
  4186.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  4187.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  4188.                             {% endif %}
  4189.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  4190.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  4191.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  4192.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  4193.                                 {% endif %}
  4194.                             {% endif %}
  4195.                             {% if hoard.hideFinder and is_authenticated %}
  4196.                             <div>Fields with * are hidden in public view</div>
  4197.                             {% endif %}
  4198.                         </ul>
  4199.                     </div>
  4200.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  4201.                         {% if show_coins_summary %}
  4202.                             <p>Fetching coin data</p>
  4203.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  4204.                         {% else %}
  4205.                             {% if not hoard.coinDataValidatedByUser %}
  4206.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  4207.                             {% else %}
  4208.                                 The coin summary for this hoard has been hidden
  4209.                             {% endif %}
  4210.                         {% endif %}
  4211.                     </div>
  4212.                     <div id=\"tabs3-10\">
  4213.                         {% if show_coins %}
  4214.                             <div class=\"coin-data-container\">
  4215.                                 <p>Fetching coin data</p>
  4216.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  4217.                             </div>
  4218.                         {% else %}
  4219.                             {% if not hoard.coinDataValidatedByUser %}
  4220.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  4221.                             {% else %}
  4222.                                 The coins for this hoard have been hidden
  4223.                             {% endif %}
  4224.                         {% endif %}
  4225.                     </div>
  4226.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  4227.                         <ul>
  4228.                             {% if hoard.rating %}
  4229.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  4230.                             {% endif %}
  4231.                             {% if hoard.ratingComment %}
  4232.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  4233.                             {% endif %}
  4234.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  4235.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  4236.                         </ul>
  4237.                     </div>
  4238.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  4239.                         <ul>
  4240.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  4241.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  4242.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  4243.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  4244.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  4245.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  4246.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  4247.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  4248.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  4249.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  4250.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  4251.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  4252.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  4253.                                 {% endfor %}
  4254.                             </div>
  4255.                             {% endif %}
  4256.                             {% if hoard.archaeologyContextNatures is not empty %}
  4257.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  4258.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  4259.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  4260.                                 {% endfor %}
  4261.                             </div>
  4262.                             {% endif %}
  4263.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  4264.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  4265.                         </ul>
  4266.                     </div>
  4267.                     <div id=\"tabs3-4\">
  4268.                         {% block containers %}
  4269.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  4270.                             {% endembed %}
  4271.                          {% endblock %}
  4272.                     </div>
  4273.                     <div id=\"tabs3-5\">
  4274.                         {% block objects %}
  4275.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  4276.                             {% endembed %}
  4277.                          {% endblock %}
  4278.                     </div>
  4279.                     <div id=\"tabs3-6\">
  4280.                             {% if onlineDatabaseReferences  is not empty  %}
  4281.                             <div class=\"hoardlistview-6col\">
  4282.                                 <h2>Permalink in other online databases</h2>
  4283.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  4284.             \t\t\t\t\t\t{% if ref.reference %}
  4285.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  4286.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  4287.             \t\t\t\t\t\t\t{{ref.reference}}
  4288.             \t\t\t\t\t\t</a></div>
  4289.             \t\t\t\t\t\t{% endif %}
  4290.             \t\t\t\t\t\t{% if ref.referenceStr %}
  4291.                                         {% if 'http://' in ref.referenceStr %}
  4292.                                         <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>
  4293.                                         {% elseif 'https://' in ref.referenceStr %}
  4294.                                         <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>
  4295.                                         {% else %}
  4296.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  4297.                                         {% endif %}
  4298.                                     
  4299.             \t\t\t\t\t\t{% endif %}
  4300.             \t\t\t\t\t\t{% if ref.comment %}
  4301.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  4302.             \t\t\t\t\t\t{% endif %}
  4303.             \t\t\t\t\t\t<br>
  4304.             \t\t\t\t\t{% endfor %}
  4305.                             </div>
  4306.        \t\t\t\t\t\t{% endif %}
  4307.                             <div class=\"hoardlistview-6col\">
  4308.                                 <h2>References</h2>
  4309.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  4310.             \t\t\t\t\t{% for ref in hoardReferences %}
  4311.             \t\t\t\t\t\t{% if ref.reference %}
  4312.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  4313.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  4314.             \t\t\t\t\t\t\t{{ref.reference}}
  4315.             \t\t\t\t\t\t</a></div>
  4316.             \t\t\t\t\t\t{% endif %}
  4317.             \t\t\t\t\t\t{% if ref.referenceStr %}
  4318.                                         {% if 'http://' in ref.referenceStr %}
  4319.                                         <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>
  4320.                                         {% elseif 'https://' in ref.referenceStr %}
  4321.                                         <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>
  4322.                                         {% else %}
  4323.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  4324.                                         {% endif %}
  4325.                                     
  4326.             \t\t\t\t\t\t{% endif %}
  4327.             \t\t\t\t\t\t{% if ref.comment %}
  4328.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  4329.             \t\t\t\t\t\t{% endif %}
  4330.             \t\t\t\t\t\t<br>
  4331.             \t\t\t\t\t{% endfor %}
  4332.                             </div>
  4333.                     </div>
  4334.                     <div id=\"tabs3-7\">
  4335.                     </div>
  4336.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  4337.                         {% for key, image in images %}
  4338.                             <div class=\"row hoard-show-image-container\">
  4339.                                     <div class=\"col-md-12 magnify-image-container\">
  4340.                                         {% if image.hoardImages_id %}
  4341.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  4342.                                         {% else %}
  4343.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  4344.                                             Image not found
  4345.                                         {% endif %}
  4346.                                     </div>
  4347.                                     <div class=\"col-md-12\">
  4348.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  4349.                                             {% if image.uri1 is defined %}
  4350.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  4351.                                             {% endif %}
  4352.                                             {% if image.uri2 is defined %}
  4353.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  4354.                                             {% endif %}
  4355.                                             {% if image.comment is defined %}
  4356.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  4357.                                             {% endif %}
  4358.                                         </div>
  4359.                                     </div>
  4360.                             </div>
  4361.                         {% endfor %}
  4362.                     </div>
  4363.                     <div id=\"tabs3-11\">
  4364.                         <p>{{ hoard.credit }}</p>
  4365.                         {% if is_admin %}
  4366.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  4367.                         {% endif %}
  4368.                     </div>
  4369.                 </div>
  4370.             </div>
  4371.         </div>
  4372.     </div><!-- end page container -->
  4373. {% endblock %}
  4374. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  4375.     }
  4376. }
  4377. /* @OxHoard/hoard/show.html.twig */
  4378. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___213402641 extends Template
  4379. {
  4380.     private $source;
  4381.     private $macros = [];
  4382.     public function __construct(Environment $env)
  4383.     {
  4384.         parent::__construct($env);
  4385.         $this->source $this->getSourceContext();
  4386.         $this->blocks = [
  4387.         ];
  4388.     }
  4389.     protected function doGetParent(array $context)
  4390.     {
  4391.         // line 79
  4392.         return "@OxHoardBundle/flash.html.twig";
  4393.     }
  4394.     protected function doDisplay(array $context, array $blocks = [])
  4395.     {
  4396.         $macros $this->macros;
  4397.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  4398.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  4399.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  4400.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  4401.         $this->parent $this->loadTemplate("@OxHoardBundle/flash.html.twig""@OxHoard/hoard/show.html.twig"79);
  4402.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  4403.         
  4404.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  4405.         
  4406.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  4407.     }
  4408.     public function getTemplateName()
  4409.     {
  4410.         return "@OxHoard/hoard/show.html.twig";
  4411.     }
  4412.     public function isTraitable()
  4413.     {
  4414.         return false;
  4415.     }
  4416.     public function getDebugInfo()
  4417.     {
  4418.         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,);
  4419.     }
  4420.     public function getSourceContext()
  4421.     {
  4422.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  4423. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  4424. {% block stylesheets %}
  4425.     {{ parent() }}
  4426.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  4427.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  4428.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  4429. {% endblock %}
  4430. {% block javascripts %}
  4431.     {{ parent() }}
  4432.     <script>
  4433.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  4434.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  4435.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  4436.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  4437.     sortOptions = {}
  4438.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  4439.     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 %} };
  4440.     {% if is_authorised_to_edit %}
  4441.     isAuthorisedToEdit = true;
  4442.     {% else %}
  4443.     isAuthorisedToEdit = false;
  4444.     {% endif %}
  4445.     {% if can_see_location %}
  4446.         newMapResult = null
  4447.         \$( function() {
  4448.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  4449.         });
  4450.     {% endif %}
  4451.     </script>
  4452.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  4453.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  4454.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  4455.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  4456.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  4457. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  4458.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  4459.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  4460.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  4461.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  4462.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  4463.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  4464. {% endblock %}
  4465. {% block body -%}
  4466.     <noscript>
  4467.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  4468.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  4469.                 <p>This website requires Javascript to be enabled in your browser.</p>
  4470.                 <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>
  4471.     </noscript>
  4472.     <!-- content -->
  4473.     <div class=\"marginTop clearfix\"></div>
  4474.     <div id=\"content\" class=\"container\"> <!-- page content -->
  4475.         <div class=\"row\">
  4476.             {% if is_authorised_to_edit %}
  4477.                 <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>
  4478.             {% endif %}
  4479.             
  4480.             <h1>{{ hoard.findSpotName }}</h1>
  4481.             Download CSV:
  4482.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  4483.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  4484.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  4485.                     <div class=\"marginTop clearfix\"></div>
  4486.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  4487.                     <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>
  4488.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  4489.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  4490.                             <div class=\"modal-content\">
  4491.                                 <div class=\"modal-header\">
  4492.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  4493.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  4494.                                 </div>
  4495.                                 <div class=\"modal-body\">
  4496.                                     <div>
  4497.                                         <label for=\"chart-type\">Chart type </label>
  4498.                                         <select class=\"dropdown\" id=\"chart-type\">
  4499.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  4500.                                             <option value=\"pie\">Pie</option>
  4501.                                         </select>
  4502.                                         <label for=\"chart-attribute\">Coins per </label>
  4503.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  4504.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  4505.                                             <option value=\"Reign\">Reign</option>
  4506.                                             <option value=\"Person\">Person</option>
  4507.                                             <option value=\"Mint\">Mint</option>
  4508.                                             <option value=\"Denomination\">Denomination</option>
  4509.                                             <option value=\"Material\">Material</option>
  4510.                                         </select>
  4511.                                         <span id=\"chart-stacked-container\">
  4512.                                         <label for=\"chart-stacked\">Stacked per</label>
  4513.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  4514.                                             <option value=\"\" selected=\"selected\"> - </option>
  4515.                                             <option value=\"Period\" disabled>Period</option>
  4516.                                             <option value=\"Reign\">Reign</option>
  4517.                                             <option value=\"Person\">Person</option>
  4518.                                             <option value=\"Mint\">Mint</option>
  4519.                                             <option value=\"Denomination\">Denomination</option>
  4520.                                             <option value=\"Material\">Material</option>
  4521.                                         </select>
  4522.                                         </span>
  4523.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  4524.                                             <label for=\"chart-reign\"> for reign </label>
  4525.                                             <select class=\"dropdown\" id=\"chart-reign\">
  4526.                                             </select>
  4527.                                         </span>
  4528.                                     </div>
  4529.                                     <div id=\"show-legend\" class=\"hidden\">
  4530.                                         <fieldset>
  4531.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  4532.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  4533.                                         </fieldset>
  4534.                                     </div>
  4535.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  4536.                                     <div style=\"height: 70vh\">
  4537.                                         <canvas id=\"hoard-chart\"></canvas>
  4538.                                     </div>
  4539.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  4540.                                         <fieldset>
  4541.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  4542.                                             <label for=\"numbers\">Numbers</label>
  4543.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  4544.                                             <label for=\"percentages\">Percentages</label>
  4545.                                         </fieldset>
  4546.                                     </div>
  4547.                                 </div>
  4548.                                 <div class=\"modal-footer\">
  4549.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  4550.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  4551.                                 </div>
  4552.                             </div>
  4553.                         </div>
  4554.                     </div>
  4555.                     <div class=\"marginTop clearfix\"></div>
  4556.             <div class=\"col-md-12 marginTop\">
  4557.                 <div class=\"col-md-6\">
  4558.                     <!-- Location tabs -->
  4559.                     <div id=\"tabs\" class=\"tabs\">
  4560.                         <ul>
  4561.                             <li><a href=\"#tab-1\">Location</a></li>
  4562.                         </ul>
  4563.                         <div id=\"tab-1\">
  4564.                             <div class=\"hoardlistview-6col\">
  4565.                                 {% if can_see_location %}
  4566.                                 {% if not hoard.hideCity or is_authenticated %}
  4567.                                 {% if hoard.city %}
  4568.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  4569.                                 {% endif %}
  4570.                                 {% if hoard.address %}
  4571.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  4572.                                 {% endif %}
  4573.                                 {% endif %}
  4574.                                 {% else %}
  4575.                                 <p>
  4576.                                     This Hoard's location is hidden
  4577.                                 </p>
  4578.                                 {% endif %}
  4579.                                 {% if not hoard.hideCounty or is_authenticated %}
  4580.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  4581.                                 {% endif %}
  4582.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  4583.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  4584.                                     {% for country in hoard.countries %}
  4585.                                       {{ country }}{% if not loop.last %}, {% endif %}
  4586.                                     {% endfor %}
  4587.                                 </div>
  4588.                                 {% if can_see_location %}
  4589.                                 {% if hoard.ancientPlace %}
  4590.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  4591.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  4592.                                         {% if hoard.ancientPlace.uri2 %}
  4593.                                         <br>
  4594.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  4595.                                         {% endif %}
  4596.                                     </div>
  4597.                                 {% endif %}
  4598.                                 <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>
  4599.                                 {% if hoard.findSpotLocationDetail %}
  4600.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  4601.                                 {% endif %}
  4602.                                 {% if hoard.findSpotComment %}
  4603.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  4604.                                 {% endif %}
  4605.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  4606.                                 <div>Fields with * are hidden in public view</div>
  4607.                                 {% endif %}
  4608.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  4609.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  4610.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  4611.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  4612.                                     </div>
  4613.                                     <div style=\"padding: 10px;\">
  4614.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  4615.                                     </div>
  4616.                                     <div style=\"padding: 10px;\">
  4617.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  4618.                                     </div>
  4619.                                 </div>
  4620.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  4621.                                     <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\"/>
  4622.                                 </div>
  4623.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  4624.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  4625.                                         <div class=\"panel panel-default\">
  4626.                                             <div class=\"panel-heading\">
  4627.                                                 <h4 class=\"panel-title\">
  4628.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  4629.                                                         Data not added to the map
  4630.                                                     </a>
  4631.                                                 </h4>
  4632.                                             </div>
  4633.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  4634.                                                 <div class=\"panel-body\"></div>
  4635.                                             </div>
  4636.                                         </div>
  4637.                                     </div>
  4638.                                 </div>
  4639.                                 {% endif %}
  4640.                             </div>
  4641.                         </div>
  4642.                     </div>
  4643.                 </div>
  4644.                 <div class=\"col-md-6\">
  4645.                     <!-- Hoard Summary tabs -->
  4646.                     <div id=\"tabs\" class=\"tabs\">
  4647.                         <ul>
  4648.                             <li><a href=\"#tab-1\">Information</a></li>
  4649.                         </ul>
  4650.                         {% set total = 0 %}
  4651.                         {% for coin in hoard.coins %}
  4652.                             {% set total = total + coin.quantity %}
  4653.                         {% endfor %}
  4654.                         <div id=\"tab-1\">
  4655.                             <div class=\"hoardlistview-6col\">
  4656.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  4657.                                 <div class=\"datalabel\">Permalink</div>
  4658.                                 <div class=\"data\">
  4659.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  4660.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  4661.                                         <i class=\"fa fa-copy\"></i>
  4662.                                     </a>
  4663.                                 </div>
  4664.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  4665.                                 {% if hoard.findSpotOtherNames %}
  4666.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  4667.                                 {%  endif %}
  4668.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  4669.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  4670.                                 {% if hoard.discoveryYear2 %}
  4671.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  4672.                                 {% endif %}
  4673.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  4674.                                 {% if hoard.province %}
  4675.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  4676.                                 {% endif %}
  4677.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  4678.                                 {% if is_authenticated and hoard.internalNote %}
  4679.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  4680.                                 {% endif %}
  4681.                                 <br>
  4682.                                 {% if is_authenticated %}
  4683.                                     {% if hoard.validatedByUser %}
  4684.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  4685.                                     {% else %}
  4686.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  4687.                                     {% endif %}
  4688.                                     {% if is_admin %}
  4689.                                         <br>
  4690.                                         {% if hoard.validatedByAdmin %}
  4691.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  4692.                                         {% else %}
  4693.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  4694.                                         {% endif %}
  4695.                                     {% endif %}
  4696.                                     <br>
  4697.                                     {% if hoard.coinDataValidatedByUser %}
  4698.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  4699.                                     {% else %}
  4700.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  4701.                                     {% endif %}
  4702.                                     {% if is_admin %}
  4703.                                         <br>
  4704.                                         {% if hoard.coinDataValidatedByAdmin %}
  4705.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  4706.                                         {% else %}
  4707.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  4708.                                         {% endif %}
  4709.                                     {% endif %}
  4710.                                 {% else %}
  4711.                                     {% if not hoard.coinDataValidatedByUser %}
  4712.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  4713.                                     {% endif %}
  4714.                                 {% endif %}
  4715.                             </div>
  4716.                         </div>
  4717.                     </div>
  4718.                 </div>  <!-- /col-6 -->
  4719.             </div>  <!-- /col-12 -->
  4720.         </div> <!-- /row -->
  4721.         <!-- hoard detail tabs -->
  4722.         <div class=\"row\">
  4723.             <div class=\"col-md-12 marginTop\">
  4724.                 <div id=\"tabs3\" class=\"tabs\">
  4725.                     <ul>
  4726.                         <li><a href=\"#tabs3-1\">Details</a></li>
  4727.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  4728.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  4729.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  4730.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  4731.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  4732.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  4733.                         <li><a href=\"#tabs3-6\">References</a></li>
  4734.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  4735.                         <li><a href=\"#tabs3-8\">Images</a></li>
  4736.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  4737.                     </ul>
  4738.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  4739.                         <ul>
  4740.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  4741.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  4742.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  4743.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  4744.                             {% if not hoard.hideFinder or is_authenticated %}
  4745.                                 {% 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 %}
  4746.                             {% endif %}
  4747.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  4748.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  4749.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  4750.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  4751.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  4752.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  4753.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  4754.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  4755.                         
  4756.                             {% if is_admin %}
  4757.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  4758.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  4759.                             {% endif %}
  4760.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  4761.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  4762.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  4763.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  4764.                                 {% endif %}
  4765.                             {% endif %}
  4766.                             {% if hoard.hideFinder and is_authenticated %}
  4767.                             <div>Fields with * are hidden in public view</div>
  4768.                             {% endif %}
  4769.                         </ul>
  4770.                     </div>
  4771.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  4772.                         {% if show_coins_summary %}
  4773.                             <p>Fetching coin data</p>
  4774.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  4775.                         {% else %}
  4776.                             {% if not hoard.coinDataValidatedByUser %}
  4777.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  4778.                             {% else %}
  4779.                                 The coin summary for this hoard has been hidden
  4780.                             {% endif %}
  4781.                         {% endif %}
  4782.                     </div>
  4783.                     <div id=\"tabs3-10\">
  4784.                         {% if show_coins %}
  4785.                             <div class=\"coin-data-container\">
  4786.                                 <p>Fetching coin data</p>
  4787.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  4788.                             </div>
  4789.                         {% else %}
  4790.                             {% if not hoard.coinDataValidatedByUser %}
  4791.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  4792.                             {% else %}
  4793.                                 The coins for this hoard have been hidden
  4794.                             {% endif %}
  4795.                         {% endif %}
  4796.                     </div>
  4797.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  4798.                         <ul>
  4799.                             {% if hoard.rating %}
  4800.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  4801.                             {% endif %}
  4802.                             {% if hoard.ratingComment %}
  4803.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  4804.                             {% endif %}
  4805.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  4806.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  4807.                         </ul>
  4808.                     </div>
  4809.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  4810.                         <ul>
  4811.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  4812.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  4813.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  4814.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  4815.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  4816.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  4817.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  4818.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  4819.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  4820.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  4821.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  4822.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  4823.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  4824.                                 {% endfor %}
  4825.                             </div>
  4826.                             {% endif %}
  4827.                             {% if hoard.archaeologyContextNatures is not empty %}
  4828.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  4829.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  4830.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  4831.                                 {% endfor %}
  4832.                             </div>
  4833.                             {% endif %}
  4834.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  4835.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  4836.                         </ul>
  4837.                     </div>
  4838.                     <div id=\"tabs3-4\">
  4839.                         {% block containers %}
  4840.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  4841.                             {% endembed %}
  4842.                          {% endblock %}
  4843.                     </div>
  4844.                     <div id=\"tabs3-5\">
  4845.                         {% block objects %}
  4846.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  4847.                             {% endembed %}
  4848.                          {% endblock %}
  4849.                     </div>
  4850.                     <div id=\"tabs3-6\">
  4851.                             {% if onlineDatabaseReferences  is not empty  %}
  4852.                             <div class=\"hoardlistview-6col\">
  4853.                                 <h2>Permalink in other online databases</h2>
  4854.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  4855.             \t\t\t\t\t\t{% if ref.reference %}
  4856.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  4857.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  4858.             \t\t\t\t\t\t\t{{ref.reference}}
  4859.             \t\t\t\t\t\t</a></div>
  4860.             \t\t\t\t\t\t{% endif %}
  4861.             \t\t\t\t\t\t{% if ref.referenceStr %}
  4862.                                         {% if 'http://' in ref.referenceStr %}
  4863.                                         <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>
  4864.                                         {% elseif 'https://' in ref.referenceStr %}
  4865.                                         <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>
  4866.                                         {% else %}
  4867.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  4868.                                         {% endif %}
  4869.                                     
  4870.             \t\t\t\t\t\t{% endif %}
  4871.             \t\t\t\t\t\t{% if ref.comment %}
  4872.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  4873.             \t\t\t\t\t\t{% endif %}
  4874.             \t\t\t\t\t\t<br>
  4875.             \t\t\t\t\t{% endfor %}
  4876.                             </div>
  4877.        \t\t\t\t\t\t{% endif %}
  4878.                             <div class=\"hoardlistview-6col\">
  4879.                                 <h2>References</h2>
  4880.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  4881.             \t\t\t\t\t{% for ref in hoardReferences %}
  4882.             \t\t\t\t\t\t{% if ref.reference %}
  4883.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  4884.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  4885.             \t\t\t\t\t\t\t{{ref.reference}}
  4886.             \t\t\t\t\t\t</a></div>
  4887.             \t\t\t\t\t\t{% endif %}
  4888.             \t\t\t\t\t\t{% if ref.referenceStr %}
  4889.                                         {% if 'http://' in ref.referenceStr %}
  4890.                                         <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>
  4891.                                         {% elseif 'https://' in ref.referenceStr %}
  4892.                                         <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>
  4893.                                         {% else %}
  4894.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  4895.                                         {% endif %}
  4896.                                     
  4897.             \t\t\t\t\t\t{% endif %}
  4898.             \t\t\t\t\t\t{% if ref.comment %}
  4899.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  4900.             \t\t\t\t\t\t{% endif %}
  4901.             \t\t\t\t\t\t<br>
  4902.             \t\t\t\t\t{% endfor %}
  4903.                             </div>
  4904.                     </div>
  4905.                     <div id=\"tabs3-7\">
  4906.                     </div>
  4907.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  4908.                         {% for key, image in images %}
  4909.                             <div class=\"row hoard-show-image-container\">
  4910.                                     <div class=\"col-md-12 magnify-image-container\">
  4911.                                         {% if image.hoardImages_id %}
  4912.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  4913.                                         {% else %}
  4914.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  4915.                                             Image not found
  4916.                                         {% endif %}
  4917.                                     </div>
  4918.                                     <div class=\"col-md-12\">
  4919.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  4920.                                             {% if image.uri1 is defined %}
  4921.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  4922.                                             {% endif %}
  4923.                                             {% if image.uri2 is defined %}
  4924.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  4925.                                             {% endif %}
  4926.                                             {% if image.comment is defined %}
  4927.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  4928.                                             {% endif %}
  4929.                                         </div>
  4930.                                     </div>
  4931.                             </div>
  4932.                         {% endfor %}
  4933.                     </div>
  4934.                     <div id=\"tabs3-11\">
  4935.                         <p>{{ hoard.credit }}</p>
  4936.                         {% if is_admin %}
  4937.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  4938.                         {% endif %}
  4939.                     </div>
  4940.                 </div>
  4941.             </div>
  4942.         </div>
  4943.     </div><!-- end page container -->
  4944. {% endblock %}
  4945. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  4946.     }
  4947. }
  4948. /* @OxHoard/hoard/show.html.twig */
  4949. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___394344764 extends Template
  4950. {
  4951.     private $source;
  4952.     private $macros = [];
  4953.     public function __construct(Environment $env)
  4954.     {
  4955.         parent::__construct($env);
  4956.         $this->source $this->getSourceContext();
  4957.         $this->blocks = [
  4958.         ];
  4959.     }
  4960.     protected function doGetParent(array $context)
  4961.     {
  4962.         // line 447
  4963.         return "@OxHoardBundle/hoard/show_containers.html.twig";
  4964.     }
  4965.     protected function doDisplay(array $context, array $blocks = [])
  4966.     {
  4967.         $macros $this->macros;
  4968.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  4969.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  4970.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  4971.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  4972.         $this->parent $this->loadTemplate("@OxHoardBundle/hoard/show_containers.html.twig""@OxHoard/hoard/show.html.twig"447);
  4973.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  4974.         
  4975.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  4976.         
  4977.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  4978.     }
  4979.     public function getTemplateName()
  4980.     {
  4981.         return "@OxHoard/hoard/show.html.twig";
  4982.     }
  4983.     public function isTraitable()
  4984.     {
  4985.         return false;
  4986.     }
  4987.     public function getDebugInfo()
  4988.     {
  4989.         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,);
  4990.     }
  4991.     public function getSourceContext()
  4992.     {
  4993.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  4994. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  4995. {% block stylesheets %}
  4996.     {{ parent() }}
  4997.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  4998.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  4999.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  5000. {% endblock %}
  5001. {% block javascripts %}
  5002.     {{ parent() }}
  5003.     <script>
  5004.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  5005.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  5006.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  5007.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  5008.     sortOptions = {}
  5009.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  5010.     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 %} };
  5011.     {% if is_authorised_to_edit %}
  5012.     isAuthorisedToEdit = true;
  5013.     {% else %}
  5014.     isAuthorisedToEdit = false;
  5015.     {% endif %}
  5016.     {% if can_see_location %}
  5017.         newMapResult = null
  5018.         \$( function() {
  5019.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  5020.         });
  5021.     {% endif %}
  5022.     </script>
  5023.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  5024.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  5025.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  5026.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  5027.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  5028. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  5029.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  5030.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  5031.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  5032.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  5033.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  5034.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  5035. {% endblock %}
  5036. {% block body -%}
  5037.     <noscript>
  5038.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  5039.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  5040.                 <p>This website requires Javascript to be enabled in your browser.</p>
  5041.                 <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>
  5042.     </noscript>
  5043.     <!-- content -->
  5044.     <div class=\"marginTop clearfix\"></div>
  5045.     <div id=\"content\" class=\"container\"> <!-- page content -->
  5046.         <div class=\"row\">
  5047.             {% if is_authorised_to_edit %}
  5048.                 <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>
  5049.             {% endif %}
  5050.             
  5051.             <h1>{{ hoard.findSpotName }}</h1>
  5052.             Download CSV:
  5053.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  5054.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  5055.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  5056.                     <div class=\"marginTop clearfix\"></div>
  5057.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  5058.                     <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>
  5059.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  5060.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  5061.                             <div class=\"modal-content\">
  5062.                                 <div class=\"modal-header\">
  5063.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  5064.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  5065.                                 </div>
  5066.                                 <div class=\"modal-body\">
  5067.                                     <div>
  5068.                                         <label for=\"chart-type\">Chart type </label>
  5069.                                         <select class=\"dropdown\" id=\"chart-type\">
  5070.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  5071.                                             <option value=\"pie\">Pie</option>
  5072.                                         </select>
  5073.                                         <label for=\"chart-attribute\">Coins per </label>
  5074.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  5075.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  5076.                                             <option value=\"Reign\">Reign</option>
  5077.                                             <option value=\"Person\">Person</option>
  5078.                                             <option value=\"Mint\">Mint</option>
  5079.                                             <option value=\"Denomination\">Denomination</option>
  5080.                                             <option value=\"Material\">Material</option>
  5081.                                         </select>
  5082.                                         <span id=\"chart-stacked-container\">
  5083.                                         <label for=\"chart-stacked\">Stacked per</label>
  5084.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  5085.                                             <option value=\"\" selected=\"selected\"> - </option>
  5086.                                             <option value=\"Period\" disabled>Period</option>
  5087.                                             <option value=\"Reign\">Reign</option>
  5088.                                             <option value=\"Person\">Person</option>
  5089.                                             <option value=\"Mint\">Mint</option>
  5090.                                             <option value=\"Denomination\">Denomination</option>
  5091.                                             <option value=\"Material\">Material</option>
  5092.                                         </select>
  5093.                                         </span>
  5094.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  5095.                                             <label for=\"chart-reign\"> for reign </label>
  5096.                                             <select class=\"dropdown\" id=\"chart-reign\">
  5097.                                             </select>
  5098.                                         </span>
  5099.                                     </div>
  5100.                                     <div id=\"show-legend\" class=\"hidden\">
  5101.                                         <fieldset>
  5102.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  5103.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  5104.                                         </fieldset>
  5105.                                     </div>
  5106.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  5107.                                     <div style=\"height: 70vh\">
  5108.                                         <canvas id=\"hoard-chart\"></canvas>
  5109.                                     </div>
  5110.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  5111.                                         <fieldset>
  5112.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  5113.                                             <label for=\"numbers\">Numbers</label>
  5114.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  5115.                                             <label for=\"percentages\">Percentages</label>
  5116.                                         </fieldset>
  5117.                                     </div>
  5118.                                 </div>
  5119.                                 <div class=\"modal-footer\">
  5120.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  5121.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  5122.                                 </div>
  5123.                             </div>
  5124.                         </div>
  5125.                     </div>
  5126.                     <div class=\"marginTop clearfix\"></div>
  5127.             <div class=\"col-md-12 marginTop\">
  5128.                 <div class=\"col-md-6\">
  5129.                     <!-- Location tabs -->
  5130.                     <div id=\"tabs\" class=\"tabs\">
  5131.                         <ul>
  5132.                             <li><a href=\"#tab-1\">Location</a></li>
  5133.                         </ul>
  5134.                         <div id=\"tab-1\">
  5135.                             <div class=\"hoardlistview-6col\">
  5136.                                 {% if can_see_location %}
  5137.                                 {% if not hoard.hideCity or is_authenticated %}
  5138.                                 {% if hoard.city %}
  5139.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  5140.                                 {% endif %}
  5141.                                 {% if hoard.address %}
  5142.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  5143.                                 {% endif %}
  5144.                                 {% endif %}
  5145.                                 {% else %}
  5146.                                 <p>
  5147.                                     This Hoard's location is hidden
  5148.                                 </p>
  5149.                                 {% endif %}
  5150.                                 {% if not hoard.hideCounty or is_authenticated %}
  5151.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  5152.                                 {% endif %}
  5153.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  5154.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  5155.                                     {% for country in hoard.countries %}
  5156.                                       {{ country }}{% if not loop.last %}, {% endif %}
  5157.                                     {% endfor %}
  5158.                                 </div>
  5159.                                 {% if can_see_location %}
  5160.                                 {% if hoard.ancientPlace %}
  5161.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  5162.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  5163.                                         {% if hoard.ancientPlace.uri2 %}
  5164.                                         <br>
  5165.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  5166.                                         {% endif %}
  5167.                                     </div>
  5168.                                 {% endif %}
  5169.                                 <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>
  5170.                                 {% if hoard.findSpotLocationDetail %}
  5171.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  5172.                                 {% endif %}
  5173.                                 {% if hoard.findSpotComment %}
  5174.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  5175.                                 {% endif %}
  5176.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  5177.                                 <div>Fields with * are hidden in public view</div>
  5178.                                 {% endif %}
  5179.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  5180.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  5181.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  5182.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  5183.                                     </div>
  5184.                                     <div style=\"padding: 10px;\">
  5185.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  5186.                                     </div>
  5187.                                     <div style=\"padding: 10px;\">
  5188.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  5189.                                     </div>
  5190.                                 </div>
  5191.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  5192.                                     <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\"/>
  5193.                                 </div>
  5194.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  5195.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  5196.                                         <div class=\"panel panel-default\">
  5197.                                             <div class=\"panel-heading\">
  5198.                                                 <h4 class=\"panel-title\">
  5199.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  5200.                                                         Data not added to the map
  5201.                                                     </a>
  5202.                                                 </h4>
  5203.                                             </div>
  5204.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  5205.                                                 <div class=\"panel-body\"></div>
  5206.                                             </div>
  5207.                                         </div>
  5208.                                     </div>
  5209.                                 </div>
  5210.                                 {% endif %}
  5211.                             </div>
  5212.                         </div>
  5213.                     </div>
  5214.                 </div>
  5215.                 <div class=\"col-md-6\">
  5216.                     <!-- Hoard Summary tabs -->
  5217.                     <div id=\"tabs\" class=\"tabs\">
  5218.                         <ul>
  5219.                             <li><a href=\"#tab-1\">Information</a></li>
  5220.                         </ul>
  5221.                         {% set total = 0 %}
  5222.                         {% for coin in hoard.coins %}
  5223.                             {% set total = total + coin.quantity %}
  5224.                         {% endfor %}
  5225.                         <div id=\"tab-1\">
  5226.                             <div class=\"hoardlistview-6col\">
  5227.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  5228.                                 <div class=\"datalabel\">Permalink</div>
  5229.                                 <div class=\"data\">
  5230.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  5231.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  5232.                                         <i class=\"fa fa-copy\"></i>
  5233.                                     </a>
  5234.                                 </div>
  5235.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  5236.                                 {% if hoard.findSpotOtherNames %}
  5237.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  5238.                                 {%  endif %}
  5239.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  5240.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  5241.                                 {% if hoard.discoveryYear2 %}
  5242.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  5243.                                 {% endif %}
  5244.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  5245.                                 {% if hoard.province %}
  5246.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  5247.                                 {% endif %}
  5248.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  5249.                                 {% if is_authenticated and hoard.internalNote %}
  5250.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  5251.                                 {% endif %}
  5252.                                 <br>
  5253.                                 {% if is_authenticated %}
  5254.                                     {% if hoard.validatedByUser %}
  5255.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  5256.                                     {% else %}
  5257.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  5258.                                     {% endif %}
  5259.                                     {% if is_admin %}
  5260.                                         <br>
  5261.                                         {% if hoard.validatedByAdmin %}
  5262.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  5263.                                         {% else %}
  5264.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  5265.                                         {% endif %}
  5266.                                     {% endif %}
  5267.                                     <br>
  5268.                                     {% if hoard.coinDataValidatedByUser %}
  5269.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  5270.                                     {% else %}
  5271.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  5272.                                     {% endif %}
  5273.                                     {% if is_admin %}
  5274.                                         <br>
  5275.                                         {% if hoard.coinDataValidatedByAdmin %}
  5276.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  5277.                                         {% else %}
  5278.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  5279.                                         {% endif %}
  5280.                                     {% endif %}
  5281.                                 {% else %}
  5282.                                     {% if not hoard.coinDataValidatedByUser %}
  5283.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  5284.                                     {% endif %}
  5285.                                 {% endif %}
  5286.                             </div>
  5287.                         </div>
  5288.                     </div>
  5289.                 </div>  <!-- /col-6 -->
  5290.             </div>  <!-- /col-12 -->
  5291.         </div> <!-- /row -->
  5292.         <!-- hoard detail tabs -->
  5293.         <div class=\"row\">
  5294.             <div class=\"col-md-12 marginTop\">
  5295.                 <div id=\"tabs3\" class=\"tabs\">
  5296.                     <ul>
  5297.                         <li><a href=\"#tabs3-1\">Details</a></li>
  5298.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  5299.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  5300.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  5301.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  5302.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  5303.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  5304.                         <li><a href=\"#tabs3-6\">References</a></li>
  5305.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  5306.                         <li><a href=\"#tabs3-8\">Images</a></li>
  5307.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  5308.                     </ul>
  5309.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  5310.                         <ul>
  5311.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  5312.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  5313.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  5314.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  5315.                             {% if not hoard.hideFinder or is_authenticated %}
  5316.                                 {% 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 %}
  5317.                             {% endif %}
  5318.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  5319.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  5320.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  5321.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  5322.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  5323.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  5324.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  5325.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  5326.                         
  5327.                             {% if is_admin %}
  5328.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  5329.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  5330.                             {% endif %}
  5331.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  5332.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  5333.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  5334.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  5335.                                 {% endif %}
  5336.                             {% endif %}
  5337.                             {% if hoard.hideFinder and is_authenticated %}
  5338.                             <div>Fields with * are hidden in public view</div>
  5339.                             {% endif %}
  5340.                         </ul>
  5341.                     </div>
  5342.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  5343.                         {% if show_coins_summary %}
  5344.                             <p>Fetching coin data</p>
  5345.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  5346.                         {% else %}
  5347.                             {% if not hoard.coinDataValidatedByUser %}
  5348.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  5349.                             {% else %}
  5350.                                 The coin summary for this hoard has been hidden
  5351.                             {% endif %}
  5352.                         {% endif %}
  5353.                     </div>
  5354.                     <div id=\"tabs3-10\">
  5355.                         {% if show_coins %}
  5356.                             <div class=\"coin-data-container\">
  5357.                                 <p>Fetching coin data</p>
  5358.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  5359.                             </div>
  5360.                         {% else %}
  5361.                             {% if not hoard.coinDataValidatedByUser %}
  5362.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  5363.                             {% else %}
  5364.                                 The coins for this hoard have been hidden
  5365.                             {% endif %}
  5366.                         {% endif %}
  5367.                     </div>
  5368.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  5369.                         <ul>
  5370.                             {% if hoard.rating %}
  5371.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  5372.                             {% endif %}
  5373.                             {% if hoard.ratingComment %}
  5374.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  5375.                             {% endif %}
  5376.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  5377.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  5378.                         </ul>
  5379.                     </div>
  5380.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  5381.                         <ul>
  5382.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  5383.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  5384.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  5385.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  5386.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  5387.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  5388.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  5389.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  5390.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  5391.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  5392.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  5393.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  5394.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  5395.                                 {% endfor %}
  5396.                             </div>
  5397.                             {% endif %}
  5398.                             {% if hoard.archaeologyContextNatures is not empty %}
  5399.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  5400.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  5401.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  5402.                                 {% endfor %}
  5403.                             </div>
  5404.                             {% endif %}
  5405.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  5406.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  5407.                         </ul>
  5408.                     </div>
  5409.                     <div id=\"tabs3-4\">
  5410.                         {% block containers %}
  5411.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  5412.                             {% endembed %}
  5413.                          {% endblock %}
  5414.                     </div>
  5415.                     <div id=\"tabs3-5\">
  5416.                         {% block objects %}
  5417.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  5418.                             {% endembed %}
  5419.                          {% endblock %}
  5420.                     </div>
  5421.                     <div id=\"tabs3-6\">
  5422.                             {% if onlineDatabaseReferences  is not empty  %}
  5423.                             <div class=\"hoardlistview-6col\">
  5424.                                 <h2>Permalink in other online databases</h2>
  5425.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  5426.             \t\t\t\t\t\t{% if ref.reference %}
  5427.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  5428.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  5429.             \t\t\t\t\t\t\t{{ref.reference}}
  5430.             \t\t\t\t\t\t</a></div>
  5431.             \t\t\t\t\t\t{% endif %}
  5432.             \t\t\t\t\t\t{% if ref.referenceStr %}
  5433.                                         {% if 'http://' in ref.referenceStr %}
  5434.                                         <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>
  5435.                                         {% elseif 'https://' in ref.referenceStr %}
  5436.                                         <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>
  5437.                                         {% else %}
  5438.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  5439.                                         {% endif %}
  5440.                                     
  5441.             \t\t\t\t\t\t{% endif %}
  5442.             \t\t\t\t\t\t{% if ref.comment %}
  5443.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  5444.             \t\t\t\t\t\t{% endif %}
  5445.             \t\t\t\t\t\t<br>
  5446.             \t\t\t\t\t{% endfor %}
  5447.                             </div>
  5448.        \t\t\t\t\t\t{% endif %}
  5449.                             <div class=\"hoardlistview-6col\">
  5450.                                 <h2>References</h2>
  5451.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  5452.             \t\t\t\t\t{% for ref in hoardReferences %}
  5453.             \t\t\t\t\t\t{% if ref.reference %}
  5454.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  5455.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  5456.             \t\t\t\t\t\t\t{{ref.reference}}
  5457.             \t\t\t\t\t\t</a></div>
  5458.             \t\t\t\t\t\t{% endif %}
  5459.             \t\t\t\t\t\t{% if ref.referenceStr %}
  5460.                                         {% if 'http://' in ref.referenceStr %}
  5461.                                         <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>
  5462.                                         {% elseif 'https://' in ref.referenceStr %}
  5463.                                         <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>
  5464.                                         {% else %}
  5465.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  5466.                                         {% endif %}
  5467.                                     
  5468.             \t\t\t\t\t\t{% endif %}
  5469.             \t\t\t\t\t\t{% if ref.comment %}
  5470.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  5471.             \t\t\t\t\t\t{% endif %}
  5472.             \t\t\t\t\t\t<br>
  5473.             \t\t\t\t\t{% endfor %}
  5474.                             </div>
  5475.                     </div>
  5476.                     <div id=\"tabs3-7\">
  5477.                     </div>
  5478.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  5479.                         {% for key, image in images %}
  5480.                             <div class=\"row hoard-show-image-container\">
  5481.                                     <div class=\"col-md-12 magnify-image-container\">
  5482.                                         {% if image.hoardImages_id %}
  5483.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  5484.                                         {% else %}
  5485.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  5486.                                             Image not found
  5487.                                         {% endif %}
  5488.                                     </div>
  5489.                                     <div class=\"col-md-12\">
  5490.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  5491.                                             {% if image.uri1 is defined %}
  5492.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  5493.                                             {% endif %}
  5494.                                             {% if image.uri2 is defined %}
  5495.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  5496.                                             {% endif %}
  5497.                                             {% if image.comment is defined %}
  5498.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  5499.                                             {% endif %}
  5500.                                         </div>
  5501.                                     </div>
  5502.                             </div>
  5503.                         {% endfor %}
  5504.                     </div>
  5505.                     <div id=\"tabs3-11\">
  5506.                         <p>{{ hoard.credit }}</p>
  5507.                         {% if is_admin %}
  5508.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  5509.                         {% endif %}
  5510.                     </div>
  5511.                 </div>
  5512.             </div>
  5513.         </div>
  5514.     </div><!-- end page container -->
  5515. {% endblock %}
  5516. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  5517.     }
  5518. }
  5519. /* @OxHoard/hoard/show.html.twig */
  5520. class __TwigTemplate_130e9940c030730ab651fdd9f6d536f6___1896891524 extends Template
  5521. {
  5522.     private $source;
  5523.     private $macros = [];
  5524.     public function __construct(Environment $env)
  5525.     {
  5526.         parent::__construct($env);
  5527.         $this->source $this->getSourceContext();
  5528.         $this->blocks = [
  5529.         ];
  5530.     }
  5531.     protected function doGetParent(array $context)
  5532.     {
  5533.         // line 453
  5534.         return "@OxHoardBundle/hoard/show_objects.html.twig";
  5535.     }
  5536.     protected function doDisplay(array $context, array $blocks = [])
  5537.     {
  5538.         $macros $this->macros;
  5539.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  5540.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  5541.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  5542.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OxHoard/hoard/show.html.twig"));
  5543.         $this->parent $this->loadTemplate("@OxHoardBundle/hoard/show_objects.html.twig""@OxHoard/hoard/show.html.twig"453);
  5544.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5545.         
  5546.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  5547.         
  5548.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  5549.     }
  5550.     public function getTemplateName()
  5551.     {
  5552.         return "@OxHoard/hoard/show.html.twig";
  5553.     }
  5554.     public function isTraitable()
  5555.     {
  5556.         return false;
  5557.     }
  5558.     public function getDebugInfo()
  5559.     {
  5560.         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,);
  5561.     }
  5562.     public function getSourceContext()
  5563.     {
  5564.         return new Source("{% extends '@OxHoardBundle//layout.html.twig' %}
  5565. {% block title %}Hoard Details {{ hoard.id }}{% endblock %}
  5566. {% block stylesheets %}
  5567.     {{ parent() }}
  5568.     <script src=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.js\"></script>
  5569.     <link rel=\"stylesheet\" href=\"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css\" />
  5570.     <link rel=\"stylesheet\" href='/bundles/oxhoard/js/libs/magnifier/magnifier.css'>
  5571. {% endblock %}
  5572. {% block javascripts %}
  5573.     {{ parent() }}
  5574.     <script>
  5575.     coinShowLink = '{{ path('coin_show', { 'id': '__id__' }) }}';
  5576.     coinEditLink = '{{ path('coin_edit', { 'id': '__id__' }) }}';
  5577.     OcreTableUrl = '{{ path('hoard_ocre_table') }}';
  5578.     getCoinDataURL = '{{ path('ajax_hoard_coin_data', {'id': hoard.id}) }}';
  5579.     sortOptions = {}
  5580.     sortOptions.Reign = { {% for i in reigns %}  '{{i.reign}}': {{i.sortValue}}  {% if not loop.last %},{% endif %}{% endfor %} };
  5581.     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 %} };
  5582.     {% if is_authorised_to_edit %}
  5583.     isAuthorisedToEdit = true;
  5584.     {% else %}
  5585.     isAuthorisedToEdit = false;
  5586.     {% endif %}
  5587.     {% if can_see_location %}
  5588.         newMapResult = null
  5589.         \$( function() {
  5590.             newMapResult = newMap(\"map\", [{{ hoard.findSpotLatitude }}, {{ hoard.findSpotLongitude }}], true, false, true);
  5591.         });
  5592.     {% endif %}
  5593.     </script>
  5594.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/Event/Event.js'></script>
  5595.     <script type=\"text/javascript\" src='/bundles/oxhoard/js/libs/magnifier/Magnifier.js'></script>
  5596.     {% embed 'import-libs/underscore.js.html.twig' %}{% endembed %}
  5597.     {% embed 'import-libs/backbone.js.html.twig' %}{% endembed %}
  5598.     {% embed 'import-libs/handlebars.js.html.twig' %}{% endembed %}
  5599. \t{% embed 'import-libs/chart.js.html.twig' %}{% endembed %}
  5600.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/utils.js\"></script>
  5601.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/ocre_table.js\"></script>
  5602.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries_template.js\"></script>
  5603.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_summaries.js\"></script>
  5604.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/coin_visualisations.js\"></script>
  5605.     <script type=\"text/javascript\" src=\"/bundles/oxhoard/js/show_hoard.js\"></script>
  5606. {% endblock %}
  5607. {% block body -%}
  5608.     <noscript>
  5609.         <div class=\"container\" style=\"text-align:center; font-size:24px;\">
  5610.             <div style=\"position: fixed; top: 0px; left: 0px; z-index: 3000; height: 100%; width: 100%; background-color: #FFFFFF;\">
  5611.                 <p>This website requires Javascript to be enabled in your browser.</p>
  5612.                 <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>
  5613.     </noscript>
  5614.     <!-- content -->
  5615.     <div class=\"marginTop clearfix\"></div>
  5616.     <div id=\"content\" class=\"container\"> <!-- page content -->
  5617.         <div class=\"row\">
  5618.             {% if is_authorised_to_edit %}
  5619.                 <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>
  5620.             {% endif %}
  5621.             
  5622.             <h1>{{ hoard.findSpotName }}</h1>
  5623.             Download CSV:
  5624.             <a href=\"{{ path('hoard_csv_download', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Hoard</button></a>
  5625.             <a href=\"{{ path('hoard_csv_download_coins', {'id': hoard.id}) }}\"><button class=\"btn btn-default btn-xs\">Coins</button></a>
  5626.             {% embed '@OxHoardBundle/flash.html.twig' %}{% endembed %}
  5627.                     <div class=\"marginTop clearfix\"></div>
  5628.                     <button id=\"add-mints-to-map\" class=\"btn btn-default\" disabled type=\"button\">Circulation visualisation <i class=\"fa fa-spinner fa-spin\"></i></button>
  5629.                     <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>
  5630.                     <div class=\"modal fade\" id=\"charts-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"charts-modal-label\">
  5631.                         <div class=\"modal-dialog modal-lg\" role=\"document\">
  5632.                             <div class=\"modal-content\">
  5633.                                 <div class=\"modal-header\">
  5634.                                     <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>
  5635.                                     <h4 class=\"modal-title\" id=\"charts-modal-label\">Content visualisation: {{ hoard.findSpotName }}</h4>
  5636.                                 </div>
  5637.                                 <div class=\"modal-body\">
  5638.                                     <div>
  5639.                                         <label for=\"chart-type\">Chart type </label>
  5640.                                         <select class=\"dropdown\" id=\"chart-type\">
  5641.                                             <option value=\"bar\" selected=\"selected\">Bar</option>
  5642.                                             <option value=\"pie\">Pie</option>
  5643.                                         </select>
  5644.                                         <label for=\"chart-attribute\">Coins per </label>
  5645.                                         <select class=\"dropdown\" id=\"chart-attribute\">
  5646.                                             <option value=\"Period\" selected=\"selected\">Period</option>
  5647.                                             <option value=\"Reign\">Reign</option>
  5648.                                             <option value=\"Person\">Person</option>
  5649.                                             <option value=\"Mint\">Mint</option>
  5650.                                             <option value=\"Denomination\">Denomination</option>
  5651.                                             <option value=\"Material\">Material</option>
  5652.                                         </select>
  5653.                                         <span id=\"chart-stacked-container\">
  5654.                                         <label for=\"chart-stacked\">Stacked per</label>
  5655.                                         <select class=\"dropdown\" id=\"chart-stacked\">
  5656.                                             <option value=\"\" selected=\"selected\"> - </option>
  5657.                                             <option value=\"Period\" disabled>Period</option>
  5658.                                             <option value=\"Reign\">Reign</option>
  5659.                                             <option value=\"Person\">Person</option>
  5660.                                             <option value=\"Mint\">Mint</option>
  5661.                                             <option value=\"Denomination\">Denomination</option>
  5662.                                             <option value=\"Material\">Material</option>
  5663.                                         </select>
  5664.                                         </span>
  5665.                                         <span id=\"chart-reign-container\" style=\"display: none;\">
  5666.                                             <label for=\"chart-reign\"> for reign </label>
  5667.                                             <select class=\"dropdown\" id=\"chart-reign\">
  5668.                                             </select>
  5669.                                         </span>
  5670.                                     </div>
  5671.                                     <div id=\"show-legend\" class=\"hidden\">
  5672.                                         <fieldset>
  5673.                                             <input type=\"checkbox\" id=\"show-legend-checkbox\" checked/>
  5674.                                             <label for=\"show-legend-checkbox\">Show legend</label>
  5675.                                         </fieldset>
  5676.                                     </div>
  5677.                                     <div id=\"chart-sample-size\" class=\"hidden\">Size of the sample: <span class=\"sample\"></span></div>
  5678.                                     <div style=\"height: 70vh\">
  5679.                                         <canvas id=\"hoard-chart\"></canvas>
  5680.                                     </div>
  5681.                                     <div id=\"chart-pie-percentages\" class=\"hidden\">
  5682.                                         <fieldset>
  5683.                                             <input type=\"radio\" id=\"numbers\" name=\"pie-numbers-percentages\" value=\"numbers\" checked/>
  5684.                                             <label for=\"numbers\">Numbers</label>
  5685.                                             <input type=\"radio\" id=\"percentages\" name=\"pie-numbers-percentages\" value=\"percentages\"/>
  5686.                                             <label for=\"percentages\">Percentages</label>
  5687.                                         </fieldset>
  5688.                                     </div>
  5689.                                 </div>
  5690.                                 <div class=\"modal-footer\">
  5691.                                     <div style=\"text-align: left;\"><a href=\"/content/visualisation-principles\" class=\"visualisation-principles\">Visualisation principles</a></div>
  5692.                                     <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>
  5693.                                 </div>
  5694.                             </div>
  5695.                         </div>
  5696.                     </div>
  5697.                     <div class=\"marginTop clearfix\"></div>
  5698.             <div class=\"col-md-12 marginTop\">
  5699.                 <div class=\"col-md-6\">
  5700.                     <!-- Location tabs -->
  5701.                     <div id=\"tabs\" class=\"tabs\">
  5702.                         <ul>
  5703.                             <li><a href=\"#tab-1\">Location</a></li>
  5704.                         </ul>
  5705.                         <div id=\"tab-1\">
  5706.                             <div class=\"hoardlistview-6col\">
  5707.                                 {% if can_see_location %}
  5708.                                 {% if not hoard.hideCity or is_authenticated %}
  5709.                                 {% if hoard.city %}
  5710.                                 <div class=\"datalabel\">City</div><div class=\"data\">{{ hoard.city }}{% if hoard.hideCity %}*{% endif %}</div>
  5711.                                 {% endif %}
  5712.                                 {% if hoard.address %}
  5713.                                 <div class=\"datalabel\">Address</div><div class=\"data\">{{ hoard.address }}{% if hoard.hideCity %}*{% endif %}</div>
  5714.                                 {% endif %}
  5715.                                 {% endif %}
  5716.                                 {% else %}
  5717.                                 <p>
  5718.                                     This Hoard's location is hidden
  5719.                                 </p>
  5720.                                 {% endif %}
  5721.                                 {% if not hoard.hideCounty or is_authenticated %}
  5722.                                 <div class=\"datalabel\">County</div><div class=\"data\">{{ hoard.county }}{% if hoard.hideCounty %}*{% endif %}</div>
  5723.                                 {% endif %}
  5724.                                 <div class=\"datalabel\">Region</div><div class=\"data\">{{ hoard.region }}</div>
  5725.                                 <div class=\"datalabel\">Country</div><div class=\"data\">
  5726.                                     {% for country in hoard.countries %}
  5727.                                       {{ country }}{% if not loop.last %}, {% endif %}
  5728.                                     {% endfor %}
  5729.                                 </div>
  5730.                                 {% if can_see_location %}
  5731.                                 {% if hoard.ancientPlace %}
  5732.                                     <div class=\"datalabel\">Ancient place</div><div class=\"data\">
  5733.                                         <a href=\"{{ path('admin_ancientplace_show', { 'id': hoard.ancientPlace.id }) }}\">{{ hoard.ancientPlace }}{% if hoard.hideLocation %}*{% endif %}</a>
  5734.                                         {% if hoard.ancientPlace.uri2 %}
  5735.                                         <br>
  5736.                                         <a href=\"https://{{ hoard.ancientPlace.uri2|replace({'https://': ''})|replace({'http://': ''}) }}\">{{ hoard.ancientPlace.uri2 }} <i class='fa fa-external-link'></i></a>
  5737.                                         {% endif %}
  5738.                                     </div>
  5739.                                 {% endif %}
  5740.                                 <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>
  5741.                                 {% if hoard.findSpotLocationDetail %}
  5742.                                 <div class=\"datalabel\">Location details</div><div class=\"data\">{{ hoard.findSpotLocationDetail }}{% if hoard.hideLocation %}*{% endif %}</div>
  5743.                                 {% endif %}
  5744.                                 {% if hoard.findSpotComment %}
  5745.                                     <div class=\"datalabel\">Find spot comment</div><div class=\"data\">{{ hoard.findSpotComment }}{% if hoard.hideLocation %}*{% endif %}</div>
  5746.                                 {% endif %}
  5747.                                 {% if (hoard.hideCity or hoard.hideCounty) and is_authenticated%}
  5748.                                 <div>Fields with * are hidden in public view</div>
  5749.                                 {% endif %}
  5750.                                 <div id=\"map\" class=\"map-view marginTop\"></div>
  5751.                                 <div id=\"add-mints-to-map-key\" class=\"hidden\" style=\"display: flex; justify-content: center\">
  5752.                                     <div style=\"padding: 10px; padding-right: 20px;\">
  5753.                                         <img src=\"/bundles/oxhoard/img/precise-map-marker.png\"> Findspot
  5754.                                     </div>
  5755.                                     <div style=\"padding: 10px;\">
  5756.                                         <img src=\"/bundles/oxhoard/img/mint-marker.png\"> Mint(s) 
  5757.                                     </div>
  5758.                                     <div style=\"padding: 10px;\">
  5759.                                         <img src=\"/bundles/oxhoard/img/mint-marker-no-quantity.png\"> Mint(s) with unspecified number of coins 
  5760.                                     </div>
  5761.                                 </div>
  5762.                                 <div id=\"add-mints-to-map-container\" class=\"hidden\">
  5763.                                     <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\"/>
  5764.                                 </div>
  5765.                                 <div id=\"circulation-visualisation-report\" style=\"display: none;\">
  5766.                                     <div class=\"panel-group\" id=\"circulation-visualisation-accordion\" style=\"display: none;\">
  5767.                                         <div class=\"panel panel-default\">
  5768.                                             <div class=\"panel-heading\">
  5769.                                                 <h4 class=\"panel-title\">
  5770.                                                     <a data-toggle=\"collapse\" data-parent=\"#circulation-visualisation-accordion\" href=\"#no-co-ords\">
  5771.                                                         Data not added to the map
  5772.                                                     </a>
  5773.                                                 </h4>
  5774.                                             </div>
  5775.                                             <div id=\"no-co-ords\" class=\"panel-collapse collapse ui-tabs\">
  5776.                                                 <div class=\"panel-body\"></div>
  5777.                                             </div>
  5778.                                         </div>
  5779.                                     </div>
  5780.                                 </div>
  5781.                                 {% endif %}
  5782.                             </div>
  5783.                         </div>
  5784.                     </div>
  5785.                 </div>
  5786.                 <div class=\"col-md-6\">
  5787.                     <!-- Hoard Summary tabs -->
  5788.                     <div id=\"tabs\" class=\"tabs\">
  5789.                         <ul>
  5790.                             <li><a href=\"#tab-1\">Information</a></li>
  5791.                         </ul>
  5792.                         {% set total = 0 %}
  5793.                         {% for coin in hoard.coins %}
  5794.                             {% set total = total + coin.quantity %}
  5795.                         {% endfor %}
  5796.                         <div id=\"tab-1\">
  5797.                             <div class=\"hoardlistview-6col\">
  5798.                                 <div class=\"datalabel\">ID</div><div class=\"data\">{{ hoard.id }}</div>
  5799.                                 <div class=\"datalabel\">Permalink</div>
  5800.                                 <div class=\"data\">
  5801.                                     <a id=\"permalink-value\" href=\"{{ permalink }}\">{{ permalink }}</a>
  5802.                                     <a class=\"btn btn-default\" id=\"copy-permalink\" title=\"Copy permalink\">
  5803.                                         <i class=\"fa fa-copy\"></i>
  5804.                                     </a>
  5805.                                 </div>
  5806.                                 <div class=\"datalabel\">Hoard name</div><div class=\"data\">{{ hoard.findSpotName}}</div>
  5807.                                 {% if hoard.findSpotOtherNames %}
  5808.                                 <div class=\"datalabel\">Alternative names</div><div class=\"data\">{{ hoard.findSpotOtherNames}}</div>
  5809.                                 {%  endif %}
  5810.                                 <div class=\"datalabel\">Data type</div><div class=\"data\">{{ hoard.hoardType}}</div>
  5811.                                 <div class=\"datalabel\">Date of discovery (from)</div><div class=\"data\">{{ hoard.discoveryday1 }} {{ discoverymonth1_text }} {{ hoard.discoveryyear1 }}</div><br>
  5812.                                 {% if hoard.discoveryYear2 %}
  5813.                                 <div class=\"datalabel\">(to)</div><div class=\"data\">{{ hoard.discoveryday2 }} {{ discoverymonth2_text }} {{ hoard.discoveryyear2 }}</div>
  5814.                                 {% endif %}
  5815.                                 <div class=\"datalabel\">Total number of coins</div><div class=\"data\">{{ total }}</div>
  5816.                                 {% if hoard.province %}
  5817.                                     <div class=\"datalabel\">Roman Province</div><div class=\"data\">{{ hoard.province }}</div>
  5818.                                 {% endif %}
  5819.                                 <div class=\"datalabel\">Summary</div><div class=\"data\">{{ hoard.comment }}</div>
  5820.                                 {% if is_authenticated and hoard.internalNote %}
  5821.                                 <div class=\"datalabel\">Internal note</div><div class=\"data\">{{hoard.internalNote}}</div>
  5822.                                 {% endif %}
  5823.                                 <br>
  5824.                                 {% if is_authenticated %}
  5825.                                     {% if hoard.validatedByUser %}
  5826.                                         <i class=\"fa fa-check-circle \"></i> This hoard has been validated by the contributor
  5827.                                     {% else %}
  5828.                                         <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by the contributor
  5829.                                     {% endif %}
  5830.                                     {% if is_admin %}
  5831.                                         <br>
  5832.                                         {% if hoard.validatedByAdmin %}
  5833.                                             <i class=\"fa fa-check-circle \"></i> This hoard has been validated by an administrator
  5834.                                         {% else %}
  5835.                                             <i class=\"fa fa-times-circle \"></i> This hoard has not yet been validated by an administrator
  5836.                                         {% endif %}
  5837.                                     {% endif %}
  5838.                                     <br>
  5839.                                     {% if hoard.coinDataValidatedByUser %}
  5840.                                         <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by the contributor
  5841.                                     {% else %}
  5842.                                         <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by the contributor
  5843.                                     {% endif %}
  5844.                                     {% if is_admin %}
  5845.                                         <br>
  5846.                                         {% if hoard.coinDataValidatedByAdmin %}
  5847.                                             <i class=\"fa fa-check-circle \"></i> The coin level data have been validated by an administrator
  5848.                                         {% else %}
  5849.                                             <i class=\"fa fa-times-circle \"></i> The coin level data have not yet been validated by an administrator
  5850.                                         {% endif %}
  5851.                                     {% endif %}
  5852.                                 {% else %}
  5853.                                     {% if not hoard.coinDataValidatedByUser %}
  5854.                                         <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  5855.                                     {% endif %}
  5856.                                 {% endif %}
  5857.                             </div>
  5858.                         </div>
  5859.                     </div>
  5860.                 </div>  <!-- /col-6 -->
  5861.             </div>  <!-- /col-12 -->
  5862.         </div> <!-- /row -->
  5863.         <!-- hoard detail tabs -->
  5864.         <div class=\"row\">
  5865.             <div class=\"col-md-12 marginTop\">
  5866.                 <div id=\"tabs3\" class=\"tabs\">
  5867.                     <ul>
  5868.                         <li><a href=\"#tabs3-1\">Details</a></li>
  5869.                         <li><a href=\"#tabs3-9\">Coins Summary</a></li>
  5870.                         <li><a href=\"#tabs3-10\">Coins</a></li>
  5871.                         <li><a href=\"#tabs3-2\">Rating</a></li>
  5872.                         <li><a href=\"#tabs3-3\">Archaeological context</a></li>
  5873.                         <li><a href=\"#tabs3-4\">Containers</a></li>
  5874.                         <li><a href=\"#tabs3-5\">Objects</a></li>
  5875.                         <li><a href=\"#tabs3-6\">References</a></li>
  5876.                         <li><a href=\"#tabs3-7\">Reports</a></li>
  5877.                         <li><a href=\"#tabs3-8\">Images</a></li>
  5878.                         <li><a href=\"#tabs3-11\">Credit</a></li>
  5879.                     </ul>
  5880.                     <div id=\"tabs3-1\" class=\"hoardlistview-6col\">
  5881.                         <ul>
  5882.                             {% if hoard.discoveryMethod is not empty %}<li><div class=\"datalabel\">Discovery method</div> <div class=\"data\">{{ hoard.discoveryMethod }}</div></li>{% endif %}
  5883.                             {% if hoard.discoveryDepth is not empty %}<li><div class=\"datalabel\">Discovery depth (m)</div> <div class=\"data\">{{ hoard.discoveryDepth }}</div></li>{% endif %}
  5884.                             {% if hoard.discoveryLandUse is not empty %}<li><div class=\"datalabel\">Land Use</div> <div class=\"data\">{{ hoard.discoveryLandUse }}</div></li>{% endif %}
  5885.                             {% if hoard.owner is not empty %}<li><div class=\"datalabel\">Disposition</div> <div class=\"data\">{{ hoard.owner }}</div></li>{% endif %}
  5886.                             {% if not hoard.hideFinder or is_authenticated %}
  5887.                                 {% 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 %}
  5888.                             {% endif %}
  5889.                             {% if hoard.discoveryComment is not empty %}<li><div class=\"datalabel\">Comment</div> <div class=\"data\">{{ hoard.discoveryComment }}</div></li>{% endif %}
  5890.                             {% if hoard.closingReign1 is not empty %}<li><div class=\"datalabel\">Closing reign (earliest)</div> <div class=\"data\">{{ hoard.closingReign1 }}</div></li>{% endif %}
  5891.                             {% if hoard.terminalYear1 is not empty %}<li><div class=\"datalabel\">Terminal year (earliest)</div> <div class=\"data\">{{ hoard.terminalYear1 }}</div></li>{% endif %}
  5892.                             {% if hoard.closingReign2 is not empty %}<li><div class=\"datalabel\">Closing reign (latest)</div> <div class=\"data\">{{ hoard.closingReign2 }}</div></li>{% endif %}
  5893.                             {% if hoard.terminalYear2 is not empty %}<li><div class=\"datalabel\">Terminal year (latest)</div> <div class=\"data\">{{ hoard.terminalYear2 }}</div></li>{% endif %}
  5894.                             {% if hoard.openingYear1 is not empty %}<li><div class=\"datalabel\">Opening year (earliest)</div> <div class=\"data\">{{ hoard.openingYear1 }}</div></li>{% endif %}
  5895.                             {% if hoard.openingYear2 is not empty %}<li><div class=\"datalabel\">Opening year (latest)</div> <div class=\"data\">{{ hoard.openingYear2 }}</div></li>{% endif %}
  5896.                             {% if hoard.coinLevelData is not empty %}<li><div class=\"datalabel\">Coin-level data</div> <div class=\"data\">{{ hoard.coinLevelData }}</div></li>{% endif %}
  5897.                         
  5898.                             {% if is_admin %}
  5899.                                 <li><div class=\"datalabel\">Created by</div> <div class=\"data\">{% if hoard.created %}{{hoard.created}}{% else %}Not known{% endif %}</div></li>
  5900.                                 <li><div class=\"datalabel\">Last Modified by</div> <div class=\"data\">{% if hoard.modified %}{{hoard.modified}}{% else %}Not known{% endif %}</div></li>
  5901.                             {% endif %}
  5902.                             {% if hoard.hideWhat is not empty and is_authenticated %}
  5903.                                 {% if is_admin or hoard.hideFrom != 'Public and Collaborators' %}
  5904.                                     <li><div class=\"datalabel\">Hide what</div> <div class=\"data\">{{ hoard.hideWhat }}</div></li>
  5905.                                     {% if hoard.hideFrom is not empty %}<li><div class=\"datalabel\">Hide from</div> <div class=\"data\">{{ hoard.hideFrom }}</div></li>{% endif %}
  5906.                                 {% endif %}
  5907.                             {% endif %}
  5908.                             {% if hoard.hideFinder and is_authenticated %}
  5909.                             <div>Fields with * are hidden in public view</div>
  5910.                             {% endif %}
  5911.                         </ul>
  5912.                     </div>
  5913.                     <div id=\"tabs3-9\" class=\"coin-summary-container\">
  5914.                         {% if show_coins_summary %}
  5915.                             <p>Fetching coin data</p>
  5916.                             <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  5917.                         {% else %}
  5918.                             {% if not hoard.coinDataValidatedByUser %}
  5919.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  5920.                             {% else %}
  5921.                                 The coin summary for this hoard has been hidden
  5922.                             {% endif %}
  5923.                         {% endif %}
  5924.                     </div>
  5925.                     <div id=\"tabs3-10\">
  5926.                         {% if show_coins %}
  5927.                             <div class=\"coin-data-container\">
  5928.                                 <p>Fetching coin data</p>
  5929.                                 <img class=\"coin-loading-spinner\" src=\"/bundles/oxhoard/img/ajax-loader.gif\" alt=\"Loading\" width=\"128\" height=\"15\" />
  5930.                             </div>
  5931.                         {% else %}
  5932.                             {% if not hoard.coinDataValidatedByUser %}
  5933.                                 <i class=\"fa fa-times-circle \"></i> The coin data of this hoard have not yet been validated and therefore are not yet visible.
  5934.                             {% else %}
  5935.                                 The coins for this hoard have been hidden
  5936.                             {% endif %}
  5937.                         {% endif %}
  5938.                     </div>
  5939.                     <div id=\"tabs3-2\" class=\"hoardlistview-6col\">
  5940.                         <ul>
  5941.                             {% if hoard.rating %}
  5942.                                 <li><div class=\"datalabel\">Numismatic rating</div> <div class=\"data\">{{ hoard.rating }}</div></li>
  5943.                             {% endif %}
  5944.                             {% if hoard.ratingComment %}
  5945.                                 <li><div class=\"datalabel\">Rating comment</div> <div class=\"data\">{{ hoard.ratingComment }}</div></li>
  5946.                             {% endif %}
  5947.                             {% if hoard.contextualRating %}<li><div class=\"datalabel\">Context rating</div> <div class=\"data\">{{ hoard.contextualRating }}</div></li>{% endif %}
  5948.                             {% if hoard.findSpotRating %}<li><div class=\"datalabel\">Findspot rating</div> <div class=\"data\">{{ hoard.findSpotRating }}</div></li>{% endif %}
  5949.                         </ul>
  5950.                     </div>
  5951.                     <div id=\"tabs3-3\" class=\"hoardlistview-6col\">
  5952.                         <ul>
  5953.                             {% if hoard.archaeologyStartYear is not empty %}<li><div class=\"datalabel\">Date of excavation (from)</div> <div class=\"data\">{{ hoard.archaeologyStartYear }}</div></li>{% endif %}
  5954.                             {% if hoard.archaeologyEndYear is not empty %}<li><div class=\"datalabel\">Date of excavation (to)</div> <div class=\"data\">{{ hoard.archaeologyEndYear }}</div></li>{% endif %}
  5955.                             {% if hoard.archaeologyNaturalFeatures is not empty %}<li><div class=\"datalabel\">Natural features</div> <div class=\"data\">{{ hoard.archaeologyNaturalFeatures }}</div></li>{% endif %}
  5956.                             {% if hoard.archaeologySiteComment is not empty %}<li><div class=\"datalabel\">Site comment</div> <div class=\"data\">{{ hoard.archaeologySiteComment }}</div></li>{% endif %}
  5957.                             {% if hoard.archaeologyContextDate1 is not empty %}<li><div class=\"datalabel\">Date of context (from)</div> <div class=\"data\">{{ hoard.archaeologyContextDate1 }}</div></li>{% endif %}
  5958.                             {% if hoard.archaeologyContextDate2 is not empty %}<li><div class=\"datalabel\">Date of context (to)</div> <div class=\"data\">{{ hoard.archaeologyContextDate2 }}</div></li>{% endif %}
  5959.                             {% if hoard.archaeologyAssociatedFeatures is not empty %}<li><div class=\"datalabel\">Associated features</div> <div class=\"data\">{{ hoard.archaeologyAssociatedFeatures }}</div></li>{% endif %}
  5960.                             {% if hoard.archaeologyRecoveryMethod is not empty %}<li><div class=\"datalabel\">Recovery method</div> <div class=\"data\">{{ hoard.archaeologyRecoveryMethod }}</div></li>{% endif %}
  5961.                             {% if hoard.archaeologySiteContext is not empty %}<li><div class=\"datalabel\">Site class</div> <div class=\"data\">{{ hoard.archaeologySiteContext }}</div></li>{% endif %}
  5962.                             {% if hoard.archaeologySiteContextDetails is not empty %}
  5963.                             <div class=\"datalabel\">Context</div><div class=\"data\">
  5964.                                 {% for archaeologySiteContextDetail in hoard.archaeologySiteContextDetails %}
  5965.                                   {{ archaeologySiteContextDetail }}{% if not loop.last %}, {% endif %}
  5966.                                 {% endfor %}
  5967.                             </div>
  5968.                             {% endif %}
  5969.                             {% if hoard.archaeologyContextNatures is not empty %}
  5970.                             <div class=\"datalabel\">Depositional context</div><div class=\"data\">
  5971.                                 {% for archaeologyContextNature in hoard.archaeologyContextNatures %}
  5972.                                 {{ archaeologyContextNature }}{% if not loop.last %}, {% endif %}
  5973.                                 {% endfor %}
  5974.                             </div>
  5975.                             {% endif %}
  5976.                             {% if hoard.archaeologyPeriod is not empty %}<li><div class=\"datalabel\">Period</div> <div class=\"data\">{{ hoard.archaeologyPeriod }}</div></li>{% endif %}
  5977.                             {% if hoard.archaeologyEndPeriod is not empty %}<li><div class=\"datalabel\">End period</div> <div class=\"data\">{{ hoard.archaeologyEndPeriod }}</div></li>{% endif %}
  5978.                         </ul>
  5979.                     </div>
  5980.                     <div id=\"tabs3-4\">
  5981.                         {% block containers %}
  5982.                             {% embed '@OxHoardBundle/hoard/show_containers.html.twig' %}
  5983.                             {% endembed %}
  5984.                          {% endblock %}
  5985.                     </div>
  5986.                     <div id=\"tabs3-5\">
  5987.                         {% block objects %}
  5988.                             {% embed '@OxHoardBundle/hoard/show_objects.html.twig' %}
  5989.                             {% endembed %}
  5990.                          {% endblock %}
  5991.                     </div>
  5992.                     <div id=\"tabs3-6\">
  5993.                             {% if onlineDatabaseReferences  is not empty  %}
  5994.                             <div class=\"hoardlistview-6col\">
  5995.                                 <h2>Permalink in other online databases</h2>
  5996.             \t\t\t\t\t{% for ref in onlineDatabaseReferences %}
  5997.             \t\t\t\t\t\t{% if ref.reference %}
  5998.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  5999.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  6000.             \t\t\t\t\t\t\t{{ref.reference}}
  6001.             \t\t\t\t\t\t</a></div>
  6002.             \t\t\t\t\t\t{% endif %}
  6003.             \t\t\t\t\t\t{% if ref.referenceStr %}
  6004.                                         {% if 'http://' in ref.referenceStr %}
  6005.                                         <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>
  6006.                                         {% elseif 'https://' in ref.referenceStr %}
  6007.                                         <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>
  6008.                                         {% else %}
  6009.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  6010.                                         {% endif %}
  6011.                                     
  6012.             \t\t\t\t\t\t{% endif %}
  6013.             \t\t\t\t\t\t{% if ref.comment %}
  6014.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  6015.             \t\t\t\t\t\t{% endif %}
  6016.             \t\t\t\t\t\t<br>
  6017.             \t\t\t\t\t{% endfor %}
  6018.                             </div>
  6019.        \t\t\t\t\t\t{% endif %}
  6020.                             <div class=\"hoardlistview-6col\">
  6021.                                 <h2>References</h2>
  6022.                                 {% if hoard.referenceString is not empty %}<li><div class=\"datalabel\">Reference (string)</div> <div class=\"data\">{{ hoard.referenceString }}</div></li>{% endif %}
  6023.             \t\t\t\t\t{% for ref in hoardReferences %}
  6024.             \t\t\t\t\t\t{% if ref.reference %}
  6025.             \t\t\t\t\t\t<div class=\"datalabel\">Reference</div>
  6026.             \t\t\t\t\t\t<div class=\"data\"><a href=\"{{ path('reference_show', {'id': ref.reference.id})}}\">
  6027.             \t\t\t\t\t\t\t{{ref.reference}}
  6028.             \t\t\t\t\t\t</a></div>
  6029.             \t\t\t\t\t\t{% endif %}
  6030.             \t\t\t\t\t\t{% if ref.referenceStr %}
  6031.                                         {% if 'http://' in ref.referenceStr %}
  6032.                                         <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>
  6033.                                         {% elseif 'https://' in ref.referenceStr %}
  6034.                                         <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>
  6035.                                         {% else %}
  6036.                                         <div class=\"datalabel\">Ref</div><div class=\"data\">{{ ref.referenceStr }}</div>
  6037.                                         {% endif %}
  6038.                                     
  6039.             \t\t\t\t\t\t{% endif %}
  6040.             \t\t\t\t\t\t{% if ref.comment %}
  6041.             \t\t\t\t\t\t<div class=\"datalabel\">Comment</div><div class=\"data\">{{ ref.comment }}</div>
  6042.             \t\t\t\t\t\t{% endif %}
  6043.             \t\t\t\t\t\t<br>
  6044.             \t\t\t\t\t{% endfor %}
  6045.                             </div>
  6046.                     </div>
  6047.                     <div id=\"tabs3-7\">
  6048.                     </div>
  6049.                     <div id=\"tabs3-8\" class=\"should-initialise-magnify\">
  6050.                         {% for key, image in images %}
  6051.                             <div class=\"row hoard-show-image-container\">
  6052.                                     <div class=\"col-md-12 magnify-image-container\">
  6053.                                         {% if image.hoardImages_id %}
  6054.                                             <img id=\"hoard-image-{{key}}\" src=\"/image/hoard/{{ image.hoardImages_id }}\" class=\"magnify-image-inside\"/>
  6055.                                         {% else %}
  6056.                                             <img id=hoard-image-{{key}} src=\"/bundles/oxhoard//img/warning.png\" />
  6057.                                             Image not found
  6058.                                         {% endif %}
  6059.                                     </div>
  6060.                                     <div class=\"col-md-12\">
  6061.                                         <div class=\"hoardimage-metadata hoardlistview-12col\">
  6062.                                             {% if image.uri1 is defined %}
  6063.                                                 <div class=\"datalabel\">URI 1</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri1 }}\">{{ image.uri1 }}</a></div>
  6064.                                             {% endif %}
  6065.                                             {% if image.uri2 is defined %}
  6066.                                                 <div class=\"datalabel\">URI 2</div><div class=\"data\"><a target=\"_blank\" href=\"{{ image.uri2 }}\">{{ image.uri2 }}</a></div>
  6067.                                             {% endif %}
  6068.                                             {% if image.comment is defined %}
  6069.                                                 <div class=\"datalabel\">Comment</div><div class=\"data\">{{ image.comment }}</div>
  6070.                                             {% endif %}
  6071.                                         </div>
  6072.                                     </div>
  6073.                             </div>
  6074.                         {% endfor %}
  6075.                     </div>
  6076.                     <div id=\"tabs3-11\">
  6077.                         <p>{{ hoard.credit }}</p>
  6078.                         {% if is_admin %}
  6079.                           <a href=\"{{ path('hoard_revisions', {id: hoard.id}) }}\" class=\"btn btn-default\">View Hoard Revisions</a>
  6080.                         {% endif %}
  6081.                     </div>
  6082.                 </div>
  6083.             </div>
  6084.         </div>
  6085.     </div><!-- end page container -->
  6086. {% endblock %}
  6087. ""@OxHoard/hoard/show.html.twig""/srv/web-20231016100413-2bc3d337/src/Ox/HoardBundle/Resources/views/hoard/show.html.twig");
  6088.     }
  6089. }