Skip to content

Commit

Permalink
Merge pull request #74 from beatrycze-volk/fix-reference
Browse files Browse the repository at this point in the history
Remove special case for catalouge search
  • Loading branch information
MarcMoschSLUB authored Mar 27, 2024
2 parents e31a93d + 7595c70 commit 75b5441
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions Resources/Private/Partials/KitodoPageView.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,7 @@
</f:if>

<f:comment><!-- [catalouge search ] ----------------------------- --></f:comment>
<f:if condition="<dc:xpath xpath='(//mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:extension/slub:slub/slub:id[@type=\"digital\"])' />">
<f:then>
<f:comment><!-- the SLUB catalogue way --></f:comment>
<li>
<f:link.external
uri="https://katalog.slub-dresden.de/ppn/<dc:xpath xpath='(//mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:extension/slub:slub/slub:id[@type=\"digital\"])' />"
class="local-catalog"
target="_blank"
title="<f:translate key='provider.slub_catalogue' extensionName='slub_digitalcollections' />">
<f:translate key='provider.slub_catalogue' extensionName='slub_digitalcollections' />
</f:link.external>
</li>
</f:then>
<f:else>
<f:comment><!-- the DFG-Viewer way --></f:comment>
<f:for each="{0: '1', 1: '2', 2: '3'}" as="index">
<f:for each="{0: '1', 1: '2', 2: '3'}" as="index">
<f:if condition="<dc:xpath xpath='(//mets:amdSec/mets:digiprovMD/mets:mdWrap[@OTHERMDTYPE=\"DVLINKS\"]/mets:xmlData/dv:links/dv:reference)[{index}]' />">
<li>
<f:if condition="<dc:xpath xpath='(//mets:amdSec/mets:digiprovMD/mets:mdWrap[@OTHERMDTYPE=\"DVLINKS\"]/mets:xmlData/dv:links/dv:reference/@linktext)[{index}]' />">
Expand All @@ -216,8 +201,6 @@
</li>
</f:if>
</f:for>
</f:else>
</f:if>

<f:comment><!-- [License informations] ------------------------------ --></f:comment>
<f:if condition="{settings.termsOfUsePid}">
Expand Down

0 comments on commit 75b5441

Please sign in to comment.