{% extends "base.html.twig" %} 
{% block css %} 
<link id="bsdp-css" href="https://unpkg.com/bootstrap-datepicker@1.9.0/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet"> 
<link href="https://cdn.jsdelivr.net/npm/@yaireo/tagify@3.7.3/dist/tagify.css" rel="stylesheet"> 
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.css" /> 
<style> 
</style> 
{% endblock %} 
{% block title %}{{ 'Fossielendatabase'|trans }}{% endblock %} 
{% block body %} 
        <p> </p> 
        <div class="row flex-md-row h-md-250 position-relative"> 
          <div class="col-md-9 position-static"> 
            <!-- Begin Page Content --> 
            <h2>{{ 'Fossielendatabase'|trans }}</h2> 
            <p>{{ 'Dit is het Fossielen database.'|trans }}<br> 
            {{ 'Wil je fossielen toevoegen aan de Fossielendatabase dat kan op <a href="{link}">deze pagina<a>.'|trans({'{link}' : path('fossildb_add')})|raw }}</p> 
            {{ form_start(form) }} 
            {{ form_row(form.taxanomy) }} 
            {{ form_row(form.location) }} 
            {{ form_row(form.era) }} 
            <div class="row"> 
              <div class="col-md-6"> 
              {{ form_row(form.genus) }} 
              </div> 
              <div class="col-md-6"> 
              {{ form_row(form.species) }} 
              </div> 
            </div> 
            <div class="row"> 
              <div class="col-md-6"> 
              {{ form_row(form.id) }} 
              </div> 
              <div class="col-md-6"> 
              {{ form_row(form.user) }} 
              </div> 
            </div> 
            <p><div class="w100 -right"> 
              <button class="btn btn-paleontica" type="submit">{% if button_text is defined %}{{button_text}}{% else %}{{ 'Zoeken'|trans }}{% endif %}</button> 
            </div> 
            </p> 
            {{ form_end(form) }} 
            <p></p> 
            {% if page is empty %} 
            <div style="width:100%; height: 3325px; position: relative"> 
              <a href="/id_system/fossil_id_search.php?cat=41"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(0px,574px,51px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=42"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(51px,574px,116px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=43"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(116px,574px,175px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=44"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(175px,574px,235px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=11"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(235px,574px,275px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=45"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(275px,574px,315px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=46"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(315px,574px,380px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=32"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(380px,574px,425px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=13"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(425px,574px,485px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=48"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(485px,574px,540px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=47"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(540px,574px,605px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=48"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(605px,574px,658px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=39"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(658px,574px,720px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=10"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(720px,574px,765px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=49"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(765px,574px,818px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=50"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(818px,574px,873px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=51"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(873px,574px,895px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=52"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(895px,574px,928px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=53"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(928px,574px,973px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=35"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(973px,574px,997px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=37"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(997px,574px,1050px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=54"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1050px,574px,1090px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=55"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1090px,574px,1120px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=56"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1120px,574px,1150px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=57"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1150px,574px,1200px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=17"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1200px,574px,1238px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=40"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1238px,574px,1275px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=58"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1275px,574px,1315px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=59"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1315px,574px,1380px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=60"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1380px,574px,1410px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=61"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1410px,574px,1440px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=62"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1440px,574px,1464px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=63"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1464px,574px,1523px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=2"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1523px,574px,1581px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=38"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1581px,574px,1640px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=7"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1640px,574px,1685px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=64"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1685px,574px,1720px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=6"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1720px,574px,1780px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=31"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1780px,574px,1834px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=65"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1834px,574px,1888px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=66"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1888px,574px,1920px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=67"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1920px,574px,1970px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=5"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(1970px,574px,2020px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=30"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2020px,574px,2080px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=12"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2080px,574px,2110px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=9"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2110px,574px,2146px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=68"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2146px,574px,2190px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=69"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2190px,574px,2235px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=70"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2235px,574px,2280px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=8"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2280px,574px,2310px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=4"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2310px,574px,2335px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=71"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2335px,574px,2380px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=34"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2380px,574px,2435px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=72"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2435px,574px,2495px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=73"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2495px,574px,2540px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=74"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2540px,574px,2575px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=19"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2575px,574px,2610px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=16"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2610px,574px,2650px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=14"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2650px,574px,2688px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=75"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2688px,574px,2738px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=76"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2738px,574px,2778px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=21"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2778px,574px,2830px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=22"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2830px,574px,2878px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=77"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2878px,574px,2930px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=23"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2930px,574px,2975px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=27"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(2975px,574px,3020px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=26"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(3020px,574px,3071px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=28"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(3071px,574px,3130px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=24"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(3130px,574px,3180px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=78"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(3180px,574px,3230px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=3"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(3230px,574px,3273px,0px);"> 
              </picture></a> 
              <a href="/id_system/fossil_id_search.php?cat=33"><picture> 
                <source media="(min-width: 576px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}.png"> 
                <source media="(max-width: 575px)" srcset="/images/phylogenetictree-{% if app.request.locale == 'nl' %}nl{% else %}en{% endif %}_small.png"> 
                <img src="/images/default.png" style="position: absolute; clip:rect(3273px,574px,3325px,0px);"> 
              </picture></a> 
            </div> 
            {% else %} 
            <div class="row"> 
              <div class="col-sm-2"> 
                {{ result.getTotalItemCount }} {{ 'gevonden'|trans }}. 
              </div> 
              <div class="col-sm-10 pagnation-paleontica"> 
                  {{ knp_pagination_render(result) }} 
              </div> 
            </div> 
            {% for item in result %} 
              {% include 'fossildb_item.html.twig' with {'item': item} %} 
              <p></p> 
            {% endfor %} 
            <div class="row"> 
              <div class="col-sm-2"> 
                {{ result.getTotalItemCount }} {{ 'gevonden'|trans }}. 
              </div> 
              <div class="col-sm-10 pagnation-paleontica"> 
                  {{ knp_pagination_render(result) }} 
              </div> 
            </div> 
            {% endif %} 
            <!-- END Page Content --> 
          </div> 
          {% include 'sidebar.html.twig' %} 
        </div> 
{% endblock %} 
{% block javascript %} 
    <script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script> 
    <script src="https://unpkg.com/bootstrap-datepicker@1.9.0/dist/js/bootstrap-datepicker.min.js"></script> 
    <script src="https://cdn.jsdelivr.net/npm/@yaireo/tagify@3.7.3/dist/tagify.min.js"></script> 
 
    <script> 
// START Taxanomy 
        var tagify_taxanomy = new Tagify(document.querySelector('input[id="fossildb_search_form_taxanomy"]'), { 
            delimiters : null, 
            //maxTags : 1, 
            templates : { 
                tag : function(v, tagData){ 
                    try{ 
                    filename=tagData.filename; 
                    name=tagData.value; 
                    return `<tag title='${name}' contenteditable='false' spellcheck="false" class='tagify__tag ${tagData.class ? tagData.class : ""}' ${this.getAttributes(tagData)}> 
                                <img onerror="this.style.visibility = 'hidden'" src='/images/icons/fossil/has_${filename}.png' class="jquery_icon_mini"> 
                                <x title='remove tag' class='tagify__tag__removeBtn'></x> 
                                <div>${name}</div> 
                            </tag>` 
                    } 
                    catch(err){} 
                }, 
 
                dropdownItem : function(tagData){ 
                    try{ 
                      filename=tagData.filename; 
                      name=tagData.value; 
                      return `<div class='tagify__dropdown__item ${tagData.class ? tagData.class : ""}'> 
                      <img onerror="this.style.visibility = 'hidden'" src='/images/icons/fossil/has_${filename}.png' class="jquery_icon_resultlist"> 
                      ${name}</div>` 
                    } 
                    catch(err){} 
                } 
            }, 
            enforceWhitelist : true, 
            whitelist : {{ filter.taxanomy|raw }}, 
            dropdown : { 
                enabled: 3 // suggest tags after a single character input 
            } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen 
        }), 
            controller; // for aborting the call 
 
        // listen to any keystrokes which modify tagify's input 
        tagify_taxanomy.on('input', onInput_taxanomy); 
 
        function onInput_taxanomy( e ){ 
          var value = e.detail.value; 
          tagify_taxanomy.settings.whitelist.length = 0; // reset the whitelist 
 
          // https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort 
          controller && controller.abort(); 
          controller = new AbortController(); 
 
          // show loading animation and hide the suggestions dropdown 
          tagify_taxanomy.loading(true).dropdown.hide.call(tagify_taxanomy) 
 
          fetch('{{ path('api_fossildb_taxaonmy') }}/?query=' + value, {signal:controller.signal}) 
            .then(RES => RES.json()) 
            .then(function(whitelist){ 
              // update inwhitelist Array in-place 
              tagify_taxanomy.settings.whitelist.splice(0, whitelist.length, ...whitelist) 
              tagify_taxanomy.loading(false).dropdown.show.call(tagify_taxanomy, value); // render the suggestions dropdown 
            }) 
        } 
// END Taxanomy 
// START Location 
        var tagify_location = new Tagify(document.querySelector('input[id="fossildb_search_form_location"]'), { 
            delimiters : null, 
            //maxTags : 1, 
            templates : { 
                tag : function(v, tagData){ 
                    try{ 
                    return `<tag style="background-color: ${tagData.color}" title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${tagData.class ? tagData.class : ""}' ${this.getAttributes(tagData)}> 
                                <x title='remove tag' class='tagify__tag__removeBtn'></x> 
                                <div><img onerror="this.style.visibility = 'hidden'" src='/images/icons/map-pin.png' class="jquery_icon_mini"> ${v}</div> 
                            </tag>` 
                    } 
                    catch(err){} 
                }, 
 
                dropdownItem : function(tagData){ 
                    try{ 
                      return `<div class='tagify__dropdown__item ${tagData.class ? tagData.class : ""}'> 
                      <img onerror="this.style.visibility = 'hidden'" src='/images/icons/map-pin.png' class="jquery_icon_mini"> ${tagData.value}</div>` 
                    } 
                    catch(err){} 
                } 
            }, 
            enforceWhitelist : true, 
            whitelist : {{ filter.location|raw }}, 
            dropdown : { 
                enabled: 3 // suggest tags after a single character input 
            } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen 
        }), 
            controller; // for aborting the call 
 
        // listen to any keystrokes which modify tagify's input 
        tagify_location.on('input', onInput_location); 
 
        function onInput_location( e ){ 
          var value = e.detail.value; 
          tagify_location.settings.whitelist.length = 0; // reset the whitelist 
 
          // https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort 
          controller && controller.abort(); 
          controller = new AbortController(); 
 
          // show loading animation and hide the suggestions dropdown 
          tagify_location.loading(true).dropdown.hide.call(tagify_location) 
 
          fetch('{{ path('api_fossildb_location') }}/?query=' + value, {signal:controller.signal}) 
            .then(RES => RES.json()) 
            .then(function(whitelist){ 
              // update inwhitelist Array in-place 
              tagify_location.settings.whitelist.splice(0, whitelist.length, ...whitelist) 
              tagify_location.loading(false).dropdown.show.call(tagify_location, value); // render the suggestions dropdown 
            }) 
        } 
// END Location 
// START Era 
        var tagify_era = new Tagify(document.querySelector('input[id="fossildb_search_form_era"]'), { 
            delimiters : null, 
            //maxTags : 1, 
            templates : { 
                tag : function(v, tagData){ 
                    try{ 
                    return `<tag style="background-color: ${tagData.color}" title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${tagData.class ? tagData.class : ""}' ${this.getAttributes(tagData)}> 
                                {#<span class="jquery_icon_mini" style="background-color: ${tagData.color};">   </span>#} 
                                <img onerror="this.style.visibility = 'hidden'" src='/images/icons/era/${tagData.name_en.toLowerCase()}.png' class="jquery_icon_mini"> 
                                <x title='remove tag' class='tagify__tag__removeBtn'></x> 
                                <div>${v}</div> 
                            </tag>` 
                    } 
                    catch(err){} 
                }, 
 
                dropdownItem : function(tagData){ 
                    try{ 
                      return `<div class='tagify__dropdown__item ${tagData.class ? tagData.class : ""}'> 
                      {#<span class="jquery_icon_resultlist" style="background-color: ${tagData.color};">   </span>#} 
                      <img onerror="this.style.visibility = 'hidden'" src='/images/icons/era/${tagData.name_en.toLowerCase()}.png' class="jquery_icon_resultlist"> 
                      ${tagData.value}</div>` 
                    } 
                    catch(err){} 
                } 
            }, 
            enforceWhitelist : true, 
            whitelist : {{ filter.era|raw }}, 
            dropdown : { 
                enabled: 3 // suggest tags after a single character input 
            } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen 
        }), 
            controller; // for aborting the call 
 
        // listen to any keystrokes which modify tagify's input 
        tagify_era.on('input', onInput_era); 
 
        function onInput_era( e ){ 
          var value = e.detail.value; 
          tagify_era.settings.whitelist.length = 0; // reset the whitelist 
 
          // https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort 
          controller && controller.abort(); 
          controller = new AbortController(); 
 
          // show loading animation and hide the suggestions dropdown 
          tagify_era.loading(true).dropdown.hide.call(tagify_era) 
 
          fetch('{{ path('api_fossildb_stratigraphyunits', { type: "era" }) }}/?query=' + value, {signal:controller.signal}) 
            .then(RES => RES.json()) 
            .then(function(whitelist){ 
              // update inwhitelist Array in-place 
              tagify_era.settings.whitelist.splice(0, whitelist.length, ...whitelist) 
              tagify_era.loading(false).dropdown.show.call(tagify_era, value); // render the suggestions dropdown 
            }) 
        } 
// END Era 
 
// START Genus 
        var tagify_genus = new Tagify(document.querySelector('input[id="fossildb_search_form_genus"]'), { 
            delimiters : null, 
            //maxTags : 1, 
            templates : { 
                tag : function(v, tagData){ 
                    try{ 
                    return `<tag title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${tagData.class ? tagData.class : ""}' ${this.getAttributes(tagData)}> 
                                <x title='remove tag' class='tagify__tag__removeBtn'></x> 
                                <div>${v}</div> 
                            </tag>` 
                    } 
                    catch(err){} 
                }, 
 
                dropdownItem : function(tagData){ 
                    try{ 
                      return `<div class='tagify__dropdown__item ${tagData.class ? tagData.class : ""}'> 
                      ${tagData.value}</div>` 
                    } 
                    catch(err){} 
                } 
            }, 
            enforceWhitelist : true, 
            whitelist : {{ filter.genus|raw }}, 
            dropdown : { 
                enabled: 3 // suggest tags after a single character input 
            } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen 
        }), 
            controller; // for aborting the call 
 
        // listen to any keystrokes which modify tagify's input 
        tagify_genus.on('input', onInput_genus); 
 
        function onInput_genus( e ){ 
          var value = e.detail.value; 
          tagify_genus.settings.whitelist.length = 0; // reset the whitelist 
 
          // https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort 
          controller && controller.abort(); 
          controller = new AbortController(); 
 
          // show loading animation and hide the suggestions dropdown 
          tagify_genus.loading(true).dropdown.hide.call(tagify_genus) 
 
          fetch('{{ path('api_fossildb_genus') }}/?query=' + value, {signal:controller.signal}) 
            .then(RES => RES.json()) 
            .then(function(whitelist){ 
              // update inwhitelist Array in-place 
              tagify_genus.settings.whitelist.splice(0, whitelist.length, ...whitelist) 
              tagify_genus.loading(false).dropdown.show.call(tagify_genus, value); // render the suggestions dropdown 
            }) 
        } 
// END Genus 
 
// START Species 
        var tagify_species = new Tagify(document.querySelector('input[id="fossildb_search_form_species"]'), { 
            delimiters : null, 
            //maxTags : 1, 
            templates : { 
                tag : function(v, tagData){ 
                    try{ 
                    return `<tag title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${tagData.class ? tagData.class : ""}' ${this.getAttributes(tagData)}> 
                                <x title='remove tag' class='tagify__tag__removeBtn'></x> 
                                <div>${v}</div> 
                            </tag>` 
                    } 
                    catch(err){} 
                }, 
 
                dropdownItem : function(tagData){ 
                    try{ 
                      return `<div class='tagify__dropdown__item ${tagData.class ? tagData.class : ""}'> 
                      ${tagData.value}</div>` 
                    } 
                    catch(err){} 
                } 
            }, 
            enforceWhitelist : true, 
            whitelist : {{ filter.species|raw }}, 
            dropdown : { 
                enabled: 3 // suggest tags after a single character input 
            } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen 
        }), 
            controller; // for aborting the call 
 
        // listen to any keystrokes which modify tagify's input 
        tagify_species.on('input', onInput_species); 
 
        function onInput_species( e ){ 
          var value = e.detail.value; 
          tagify_species.settings.whitelist.length = 0; // reset the whitelist 
 
          // https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort 
          controller && controller.abort(); 
          controller = new AbortController(); 
 
          // show loading animation and hide the suggestions dropdown 
          tagify_species.loading(true).dropdown.hide.call(tagify_species) 
 
          fetch('{{ path('api_fossildb_species') }}/?query=' + value, {signal:controller.signal}) 
            .then(RES => RES.json()) 
            .then(function(whitelist){ 
              // update inwhitelist Array in-place 
              tagify_species.settings.whitelist.splice(0, whitelist.length, ...whitelist) 
              tagify_species.loading(false).dropdown.show.call(tagify_species, value); // render the suggestions dropdown 
            }) 
        } 
// END Species 
 
// START User 
        var tagify_user = new Tagify(document.querySelector('input[id="fossildb_search_form_user"]'), { 
            delimiters : null, 
            //maxTags : 1, 
            templates : { 
                tag : function(v, tagData){ 
                    try{ 
                    return `<tag title='${v}' contenteditable='false' spellcheck="false" class='tagify__tag ${tagData.class ? tagData.class : ""}' ${this.getAttributes(tagData)}> 
                                <x title='remove tag' class='tagify__tag__removeBtn'></x> 
                                <div>${v}</div> 
                            </tag>` 
                    } 
                    catch(err){} 
                }, 
 
                dropdownItem : function(tagData){ 
                    try{ 
                      return `<div class='tagify__dropdown__item ${tagData.class ? tagData.class : ""}'> 
                      ${tagData.value}</div>` 
                    } 
                    catch(err){} 
                } 
            }, 
            enforceWhitelist : true, 
            whitelist : {{ filter.user|raw }}, 
            dropdown : { 
                enabled: 3 // suggest tags after a single character input 
            } // map tags' values to this property name, so this property will be the actual value and not the printed value on the screen 
        }), 
            controller; // for aborting the call 
 
        // listen to any keystrokes which modify tagify's input 
        tagify_user.on('input', onInput_user); 
 
        function onInput_user( e ){ 
          var value = e.detail.value; 
          tagify_user.settings.whitelist.length = 0; // reset the whitelist 
 
          // https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort 
          controller && controller.abort(); 
          controller = new AbortController(); 
 
          // show loading animation and hide the suggestions dropdown 
          tagify_user.loading(true).dropdown.hide.call(tagify_user) 
 
          fetch('{{ path('api_getuser') }}/?query=' + value, {signal:controller.signal}) 
            .then(RES => RES.json()) 
            .then(function(whitelist){ 
              // update inwhitelist Array in-place 
              tagify_user.settings.whitelist.splice(0, whitelist.length, ...whitelist) 
              tagify_user.loading(false).dropdown.show.call(tagify_user, value); // render the suggestions dropdown 
            }) 
        } 
// END User 
 
        jQuery(document).ready(function() { 
          $('.js-datepicker').datepicker({ 
            calendarWeeks: true, 
            autoclose: true, 
            clearBtn: true, 
            todayHighlight: true, 
            format: "dd-mm-yyyy", 
          }); 
 
        $('.js-autocomplete').each(function() { 
            var autocompleteUrl = $(this).data('autocomplete-url'); 
            $(this).autocomplete({hint: false}, [ 
                { 
                    source: function(query, cb) { 
                        $.ajax({ 
                            url: autocompleteUrl+'?query='+query, 
                        }).then(function(data) { 
                            cb(data.pages); 
                        }); 
                    }, 
                    displayKey: 'id', 
                    name: 'page', 
                    debounce: 500 // only request every 1/2 second 
                } 
            ]) 
        }); 
      }); 
    </script> 
    <script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js"></script> 
    <script> 
    $(document).on('click', '[data-toggle="lightbox"]', function(event) { 
        event.preventDefault(); 
        $(this).ekkoLightbox({ 
            wrapping: true, 
        }); 
    }); 
    </script> 
{% endblock %}