<dfl:part name="Bild-kurz">
<dfl:div class="Bausteine Bild-kurz">
<dfl:wrap>{a8510}</dfl:wrap>
<!--Kailus 20160914: augmentiertes a8510 aus FTO berücksichtigt -->
<dfl:if test="fto">
<dfl:wrap>{fto//a8510}</dfl:wrap>
</dfl:if>
<dfl:if test="a8510 and (a8470 or .//aft28[=Verwalter]/a2950 or a8472 or a8540 or a8555 or a8460 or a8490 or .//aft30/a3100 or a8494 or .//a84060[=Aufnahme]/a84064 or a8577)">
<br/>
</dfl:if>
<dfl:if test="fto and (a8470 or .//aft28[=Verwalter]/a2950 or a8472 or a8540 or a8555 or a8460 or a8490 or .//aft30/a3100 or a8494 or .//a84060[=Aufnahme]/a84064 or a8577)">
<br/>
</dfl:if>
<!--<dfl:wrap>{{Aufnahme-Nr. {a8470>>a8472>>.//aft28[=Verwalter]/a2950}}, {Bilddatei: {a8540>>a8555}}}</dfl:wrap>-->
<!--
Siehe Kommentar Issue BKA3-211
-->
<dfl:choose>
<dfl:when test="(not(a8540) and not(a8555)) and (a8470 or a8472 or a84fl)">
<dfl:if test="a8510">
<br/>
</dfl:if>
<dfl:text>Dieses Bild wurde noch nicht digitalisiert.</dfl:text>
<br/>
</dfl:when>
<dfl:when test="not(a8540) and not(a8555) and not(a8470) and not(a8472) and not(a84fl)">
<dfl:if test="a8510">
<br/>
</dfl:if>
<dfl:text>Dieses Werk / dieser Werkteil ist unbebildert.</dfl:text>
<br/>
</dfl:when>
</dfl:choose>
<dfl:choose>
<dfl:when test="a8540">
<dfl:wrap>{Bilddatei-Nr. {a8540}}</dfl:wrap>
</dfl:when>
<dfl:when test="a84fl">
<dfl:wrap>{KHI-Nr. {a84fl}}</dfl:wrap>
</dfl:when>
<dfl:when test="a8470 or a8472 or .//aft28[=Verwalter]/a2950 or a8555">
<dfl:wrap>{Aufnahme-Nr. {a8470>>a8472>>.//aft28[=Verwalter]/a2950>>a8555}}</dfl:wrap>
</dfl:when>
</dfl:choose>
<dfl:if test="a8555 and not(a8540)">
<dfl:space/>
<dfl:text>(Vorschaubild)</dfl:text>
</dfl:if>
<!--<dfl:choose>
<dfl:when test="(a8470 and not(a8555)) or .//aft28[=Verwalter]/a2950">
<dfl:wrap>{Aufnahme-Nr.
{a8470>>.//aft28[=Verwalter]/a2950}}</dfl:wrap>
</dfl:when>
<dfl:when test="a8472">
<dfl:wrap>{Positiv-Nr. {a8472}}</dfl:wrap>
</dfl:when>
<dfl:when test="a8540">
<dfl:wrap>{Bilddatei {a8540}}</dfl:wrap>
</dfl:when>
<dfl:when test="a8555">
<dfl:wrap>{Bilddatei {a8555} (Vorschaubild)}</dfl:wrap>
</dfl:when>
</dfl:choose>-->
<dfl:if test="(a8470 or .//aft28[=Verwalter]/a2950 or a8472 or a8540 or a8555) and (a8460 or a8490 or .//aft30/a3100 or a8494 or .//a84060[=Aufnahme]/a84064 or a8577)">
<br/>
</dfl:if>
<dfl:wrap>{© {a8577>>a8460}}</dfl:wrap>
<dfl:if test="not(a8577)">
<dfl:space/>
<dfl:if test="a8490">
<dfl:text>/</dfl:text>
<dfl:space/>
</dfl:if>
<dfl:wrap>{Foto: {a8490>>.//aft30/a3100}}</dfl:wrap>
<dfl:if test="a8490">
<dfl:text>;</dfl:text>
</dfl:if>
<dfl:space/>
</dfl:if>
<dfl:if test="a8577">
<dfl:text>;</dfl:text>
<dfl:space/>
</dfl:if>
<!-- <dfl:wrap>{/ Foto: {a8490>>.//aft30/a3100}}; </dfl:wrap>-->
<dfl:wrap>{Aufn.-Datum: {a8494>>.//a84060[=Aufnahme]/a84064}}</dfl:wrap>
<dfl:if test="not(a8577)">
<dfl:text> - Rechte vorbehalten</dfl:text>
</dfl:if>
<dfl:if test="(a8541[=gesperrt*] or .//a926a/a8541[=gesperrt*])">
<dfl:text> - Dieses Bild wird aus rechtlichen Gründen nicht angezeigt</dfl:text>
</dfl:if>
<dfl:if test="a8541c[=*keine Bestellung*]">
<dfl:text>- Keine Bestellung</dfl:text>
</dfl:if>
<dfl:if test="a8541a[ri=.*kein download.*] or a8541[ri=.*(kein download|gesperrt|fehlt).*] or .//a926a/a8541a[ri=.*kein download.*] or .//a926a/a8541[ri=.*(kein download|gesperrt|fehlt).*]">
<dfl:text> - kein Download.</dfl:text>
</dfl:if>
<dfl:if test="not(fto) and self::a8450">
<!-- FM20170517: vorher: {Zugang: {a8496}}, {a8497} -->
<!-- FM20170823: a8478a, a8494b, a8487a, a8489a, a8479 eingefügt; festen Text vor a85fm geändert, vorher 'Teilbestand'. -->
<dfl:if test="(a8461|a8482|a8480|a8478|a8478a|a8494b|a8479|a8487|a8487a|a8489|a8489a|a8504|a85fl|a84bh|a85bh|a84gm|a85zi|a8515|a8476|a8498|a8496|a8497|a8499|a8596|a85fm)">
<dfl:text>; </dfl:text>
</dfl:if>
<dfl:wrap>{{a8461}; {a8482}; {a8480}; {a8478}; {a8478a}; {Repro-Datum: {a8494b}}; {Vorlage: {a8479}}; {a8487}; {a8487a}; {a8489}; {a8489a}; {a8504}}</dfl:wrap>
<dfl:if test="(a8461|a8482|a8480|a8478|a8478a|a8494b|a8479|a8487|a8487a|a8489|a8489a|a8504) and (a85fl|a84bh|a85bh|a84gm|a85zi|a8515|a8476|a8498|a8496|a8497|a8499|a8596|a85fm)">
<dfl:br/>
</dfl:if>
<!-- ABKA3-796 - Punkt3 -->
<dfl:wrap>{\n{Nr.des KHI Florenz: {a85fl}}, {Bibliotheca Hertziana-Nr. {a84bh}, {a85bh}}, {GNM-Nr. {a84gm}}, {ZI-Inventar-Nr. {a85zi}}, {Signatur: {a8515}}, {ehem. Aufnahme-Nr. {a8476}}, {Herkunft: {a8498}}, {Zugang: {a8496}, {a8497}}, {Literaturnachweis: {a8499}}, {a8596}, {Fotokonvolut: {a85fm}}}</dfl:wrap>
</dfl:if>
<dfl:if test="fto">
<!-- ABKA3-796 - Punkt3, ABKA3-1026 ($ETE_Variables/medium zur Ausführungszeit nicht immer gesetzt!) -->
<dfl:choose>
<dfl:when test="$ETEVariables/medium">
<!-- Direkt addressiertes Medium. Verwende ETE-Medium-Variable zur Auswahl des fto-Knotens. Entspricht Aufruf aus Trefferliste oder Aufruf über "Bildlink" in Detailanzeige. -->
<dfl:if test="(fto//aft28/a2951|fto//a8482|fto//a84360|fto//a84230|fto//a84260|fto//a84300|fto//a8504) and (//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a85fl|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a84bh|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a85bh|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a84gm|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a85zi|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a8515|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a2952|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a9020|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a9022|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a8596|//fto[a8450/a8540 = $ETEVariables/medium]/aft28/a85fm|//fto[a8450/a8540 = $ETEVariables/medium]/a8350|//fto[a8450/a8540 = $ETEVariables/medium]/a99ga)">
<dfl:br/>
</dfl:if>
<dfl:wrap>{\n{Nr.des KHI Florenz: {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a85fl}}, {Bibliotheca Hertziana-Nr. {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a84bh}, {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a85bh}}, {GNM-Nr. {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a84gm}}, {ZI-Inventar-Nr. {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a85zi}}, {Signatur: {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a8515}}, {ehem. Aufnahme-Nr. {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a2952}}, {Zugang: {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a9020}, {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a9022}}, {Literaturnachweis: {//fto[a8450/a8540 = $ETEVariables/medium][1]/a8350}}, {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a8596}, {Fotokonvolut: {//fto[a8450/a8540 = $ETEVariables/medium][1]/aft28/a85fm}}, {//fto[a8450/a8540 = $ETEVariables/medium][1]/a99ga}}</dfl:wrap>
</dfl:when>
<dfl:otherwise>
<dfl:variable name="curDID" select="@did"/>
<dfl:choose>
<!-- Kein direkt addressiertes Medium, verwende Leitbild aus edpmedium aus dem _source mit passender did aus dem ElasticSearch Result zur Auswahl des fto-Knotens -->
<dfl:when test="a8450[a8540=ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium or a8555=ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]">
<dfl:if test="(fto//aft28/a2951|fto//a8482|fto//a84360|fto//a84230|fto//a84260|fto//a84300|fto//a8504) and (//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a85fl|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a84bh|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a85bh|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a84gm|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a85zi|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a8515|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a2952|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a9020|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a9022|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a8596|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/aft28/a85fm|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/a8350|//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium]/a99ga)">
<dfl:br/>
</dfl:if>
<dfl:br/><dfl:wrap>{\n{Nr.des KHI Florenz: {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a85fl}}, {Bibliotheca Hertziana-Nr. {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a84bh}, {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a85bh}}, {GNM-Nr. {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a84gm}}, {ZI-Inventar-Nr. {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a85zi}}, {Signatur: {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a8515}}, {ehem. Aufnahme-Nr. {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a2952}}, {Zugang: {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a9020}, {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a9022}}, {Literaturnachweis: {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/a8350}}, {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a8596}, {Fotokonvolut: {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/aft28/a85fm}}, {//fto[a8450/a8540 = ancestor::root/remoteMethodResult/hits/hits/item/_source[did=$curDID]/cc/edpmedium][1]/a99ga}}</dfl:wrap>
</dfl:when>
<!-- Keine Informationen zum Medium vorhanden oder did findet keine Entsprechung in ElasticSearch Result. -->
<dfl:otherwise>
<dfl:mediaiterator context="document">
<dfl:if test="position()=1">
<!-- Verwende 1. Bild des Blocks zur Auswahl des fto-Knotens -->
<dfl:if test="(fto//aft28/a2951|fto//a8482|fto//a84360|fto//a84230|fto//a84260|fto//a84300|fto//a8504) and (//fto[a8450/a8540][1]/aft28/a85fl|//fto[a8450/a8540][1]/aft28/a84bh|//fto[a8450/a8540][1]/aft28/a85bh|//fto[a8450/a8540][1]/aft28/a84gm|//fto[a8450/a8540][1]/aft28/a85zi|//fto[a8450/a8540][1]/aft28/a8515|//fto[a8450/a8540][1]/aft28/a2952|//fto[a8450/a8540][1]/aft28/a9020|//fto[a8450/a8540][1]/aft28/a9022|//fto[a8450/a8540][1]/aft28/a8596|//fto[a8450/a8540][1]/aft28/a85fm|//fto[a8450/a8540][1]/a8350|//fto[a8450/a8540][1]/a99ga)">
<dfl:br/>
</dfl:if>
<dfl:wrap>{\n{Nr.des KHI Florenz: {//fto[a8450/a8540][1]/aft28/a85fl}}, {Bibliotheca Hertziana-Nr. {//fto[a8450/a8540][1]/aft28/a84bh}, {//fto[a8450/a8540][1]/aft28/a85bh}}, {GNM-Nr. {//fto[a8450/a8540][1]/aft28/a84gm}}, {ZI-Inventar-Nr. {//fto[a8450/a8540][1]/aft28/a85zi}}, {Signatur: {//fto[a8450/a8540][1]/aft28/a8515}}, {ehem. Aufnahme-Nr. {//fto[a8450/a8540][1]/aft28/a2952}}, {Zugang: {//fto[a8450/a8540][1]/aft28/a9020}, {//fto[a8450/a8540][1]/aft28/a9022}}, {Literaturnachweis: {//fto[a8450/a8540][1]/a8350}}, {//fto[a8450/a8540][1]/aft28/a8596}, {Fotokonvolut: {//fto[a8450/a8540][1]/aft28/a85fm}}, {//fto[a8450/a8540][1]/a99ga}}</dfl:wrap>
</dfl:if>
</dfl:mediaiterator>
<dfl:ifnothasmedia context="document">
<!-- Es gibt kein Medium oder kein aft28 im Dokument. Keine Ausgabe. -->
<dfl:if test="(fto//aft28/a2951|fto//a8482|fto//a84360|fto//a84230|fto//a84260|fto//a84300|fto//a8504)">
<dfl:br/>
</dfl:if>
</dfl:ifnothasmedia>
</dfl:otherwise>
</dfl:choose>
</dfl:otherwise>
</dfl:choose>
</dfl:if>
<dfl:if test="self::kur">
<!-- FM20170517: vorher: {Zugang: {self::kur//a8496}}, {self::kur//a8497} -->
<dfl:wrap>{{self::kur//a8461}, {self::kur//a8482}, {self::kur//a8480}, {self::kur//a8478}, {self::kur//a8487}, {self::kur//a8489}, {self::kur//a8504}}</dfl:wrap>
<!-- ABKA3-796 - Punkt3 -->
<dfl:if test="(self::kur//a8461 or self::kur//a8482 or self::kur//a8480 or self::kur//a8478 or self::kur//a8487 or self::kur//a8489 or self::kur//a8504) and (self::kur//a85fl or self::kur//a84bh or self::kur//a85bh or self::kur//a84gm or self::kur//a85zi or self::kur//a8515 or self::kur//a8476 or self::kur//a8498 or self::kur//a8496 or self::kur//a8497 or self::kur//a8499 or self::kur//a8596 or self::kur//a85fm)">
<dfl:br/>
</dfl:if>
<dfl:wrap>{\n{Nr.des KHI Florenz: {self::kur//a85fl}}, {Bibliotheca Hertziana-Nr. {self::kur//a84bh}, {self::kur//a85bh}}, {GNM-Nr. {self::kur//a84gm}}, {ZI-Inventar-Nr. {self::kur//a85zi}}, {Signatur: {self::kur//a8515}}, {ehem. Aufnahme-Nr. {self::kur//a8476}}, {Herkunft: {self::kur//a8498}}, {Zugang: {self::kur//a8496}, {self::kur//a8497}}, {Literaturnachweis: {self::kur//a8499}}, {self::kur//a8596}, {Fotokonvolut: {self::kur//a85fm}}}</dfl:wrap>
</dfl:if>
<dfl:if test="position()!=last()">
<dfl:br/>
</dfl:if>
</dfl:div>