templates/apiary/honey.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend.html.twig' %}
  2. {% block title %}
  3.   {{ title }}|{{ parent() }}
  4. {% endblock %}
  5. {% block beta %}
  6.   {{ title }}
  7. {% endblock %}
  8. {% block gamma %}
  9.   {% if compilationsOfInterest|length and type != 'collection' %}
  10.     Die Inhalte der angezeigten Korrekturen stammen aus den Online-Beständen von
  11.     {% for key, coi in compilationsOfInterest %}
  12.       {% if key != 'BOEP'  %}{% if loop.first == false  %}, {% endif %}<a href="{{ path('PapyrillioBeehive_ApiaryHoney', {'type': 'bl', 'id': coi.volume }) }}" title="{{ coi.short }}">{{ coi.short|replace({' ' : '&nbsp;'})|raw }}</a>{% endif  %}
  13.     {% endfor %}
  14.     {% if compilationsOfInterest.BOEP is defined %}
  15.       {% if compilationsOfInterest|length > 1  %}, {% endif %}<a href="{{ path('PapyrillioBeehive_ApiaryHoney', {'type': 'collection', 'id': 'BOEP' }) }}" title="Bulletin of Online Emendations to Papyri">BOEP</a>
  16.     {% endif %}
  17.     {% if type not in ['bl', 'boep', 'editie', 'search', 'volume', 'volume_dclp'] and corrections|length and corrections|first.registerEntries|length %}
  18.       {% set r = corrections|first.registerEntries|first %}
  19.       <br />
  20.       Weitere identifier und Links:
  21.       <a href="http://www.trismegistos.org/text/{{ r.tm }}"  title="Weitere Informationen auf Trismegistos" target="_blank">TM {{ r.tm }}</a>
  22.       =
  23.       <a href="https://papyri.info/hgv/{{ r.hgv }}"  title="Weitere Informationen auf papyri.info" target="_blank">{{ r.ddb }}</a>
  24.       =
  25.       HGV {{ r.hgv }}
  26.     {% endif %}
  27.   {% elseif type == 'collection' %}
  28.     {% if id == 'BOEP' %}
  29.       Es ist jetzt möglich, alle BOEP-Korrekturen an einem Ort einzusehen. Diese sind alphabetisch nach ihrer BL-Abkürzung geordnet. Es ist nicht mehr notwendig, jedes einzelne BOEP zu überprüfen. Die laufenden Nummern sind nachträglich hinzugefügt worden.
  30.     {% elseif id == 'ddb' %}
  31.       Alle Korrekturen im BOEP, die dokumentarische Texte betreffen, sind an einem Ort gesammelt. Sie sind alphabetisch nach ihrem BL-Kürzel geordnet.
  32.     {% elseif id == 'dclp' %}
  33.       Alle Korrekturen im BOEP, die literarische und halbliterarische Texte betreffen, werden an einem Ort gesammelt. Sie sind alphabetisch nach ihrem BL-Kürzel geordnet.
  34.     {% endif %}
  35.   {% endif %}
  36. {% endblock %}
  37. {% block lefty_title %}
  38.   {%if type != 'editie' and corrections|length %}
  39.     {% if type in ['volume', 'volume_dclp'] %}
  40.       {{ id }} in
  41.       <br/>
  42.       BL&nbsp;Online
  43.     {% elseif type == 'register' %}
  44.       Editionen für Register-Id {{ id }}
  45.     {% elseif type == 'collection' and id == 'ddb'  %}
  46.       Editionen für BOEP doc.
  47.     {% elseif type == 'collection' and id == 'dclp'  %}
  48.       Editionen für BOEP lit.
  49.     {% elseif type != 'search' %}
  50.       Editionen in
  51.       <br />
  52.       {% if type == 'collection' %}
  53.         {{ corrections|first.compilation.collection }}
  54.       {% elseif type == 'tm' or  type == 'hgv' or  type == 'ddb' or  type == 'biblio' %}
  55.         {% if type == 'tm' or  type == 'hgv' or  type == 'biblio' %}{{ type | upper }}&nbsp;{% endif %}{{ id }}
  56.       {% elseif corrections|length %}
  57.         {{corrections|first.compilation.short}}
  58.       {% endif %}
  59.     {% endif %}
  60.   {% endif %}
  61. {% endblock %}
  62. {% block lefty %}
  63. {% if type not in ['editie', 'search'] %}
  64.   <ul>
  65.     {% if type == 'boep' and id != 'Bulletin of Online Emendations to Papyri' %}
  66.       {% set collection = '' %}
  67.       {% for c in corrections %}
  68.         {% set currentCollection = c.registerEntries|length and c.registerEntries|first.dclp|length ? 'DCLP' : 'DDB' %}
  69.           {% if currentCollection != collection %}
  70.             <li><a href="#{{ currentCollection }}">{{ currentCollection }}</a></li>
  71.             {% set collection = currentCollection %}
  72.           {% endif %}
  73.       {% endfor %}
  74.       <hr />
  75.     {% endif %}
  76.     {% set edition = '' %}
  77.     {% for c in corrections %}
  78.         {% if c.edition.title != edition %}
  79.           <li>
  80.             <a href="#{{ c.edition.title|replace({' ': '_', '.': ''}) }}" class="edition">
  81.               {{ c.edition.title }}
  82.             </a>
  83.           </li>
  84.           {% set edition = c.edition.title %}
  85.         {% endif %}
  86.     {% endfor %}
  87.   </ul>
  88. {% endif %}
  89. {% endblock %}
  90. {% block righty_title %}
  91.   {% if corrections|length %}
  92.     {% if type in ['tm', 'hgv', 'ddb', 'volume', 'volume_dclp', 'biblio', 'register', 'editie'] %}
  93.     {% else %}
  94.     weitere
  95.     {{ corrections|first.compilation.collection }}s
  96.     {% endif %}
  97.   {% endif %}
  98. {% endblock %}
  99. {% block righty %}
  100.   {% if type in ['tm', 'hgv', 'ddb', 'volume', 'volume_dclp', 'biblio', 'register', 'editie'] %}
  101.   {% else %}
  102.     <ul>
  103.       {% for c in compilations %}
  104.         {% if c.collection == 'BOEP' %}
  105.           <li><a href="{{ path('PapyrillioBeehive_ApiaryHoney', {'type': 'boep', 'id': c.title }) }}">{{ c.item}}</a></li>
  106.         {% else %}
  107.           {% if c.volume < 14 or c.volume > 100 %}
  108.             <li><a href="{{ path('PapyrillioBeehive_ApiaryHoney', {'type': 'bl', 'id': c.volume }) }}">{{ c.short}}</a></li>
  109.           {% endif %}
  110.         {% endif %}
  111.       {% endfor %}
  112.     </ul>
  113.   {% endif %}
  114. {% endblock %}
  115. {% block body %}
  116.   {% if corrections|length %}
  117.     {% if corrections|first.compilation.collection == 'BOEP' %}
  118.       {% include 'apiary/snippetBoep.html.twig' with {'corrections': corrections, 'type': type, 'id': id} %}
  119.     {% else %}
  120.       {% include 'apiary/snippetHoney.html.twig' with {'corrections': corrections, 'type': type, 'id': id} %}
  121.     {% endif %}
  122.   {% else %}
  123.     <p>Für {{ type|upper }}&nbsp;{{ id }} sind keine Datensätze abrufbar</p>
  124.   {% endif %}
  125. {% endblock %}