Skip to content

Commit

Permalink
Merge branch 'master' of github.com:slub/slub_digitalcollections
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bigga committed Mar 31, 2022
2 parents 5aa2339 + 1014a78 commit 7970e31
Show file tree
Hide file tree
Showing 5 changed files with 536 additions and 23 deletions.
17 changes: 10 additions & 7 deletions Resources/Private/Less/Controls.less
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@
background: url('@{control-icons}') no-repeat 0 0;
background-size: auto 120px;
}
&.download-fulltext:before {
background-position: -280px -40px;
}
&.local-presentation:before {
background-position: -440px -80px;
}
Expand All @@ -132,15 +129,21 @@
&.local-contact:before {
background-position: -400px -40px;
}
&.download-document:before,
&[title$="Seite"]:before,
&[title$="Page"]:before {
background-position: -360px -40px;
&.download-fulltext:before {
background-position: -280px -40px;
}
&#tx-dlf-tools-fulltextdownload:before {
background-position: -280px -40px;
}
&.download-page:before,
&[title$="ument"]:before {
background-position: -320px -40px;
}
&.download-document:before,
&[title$="Seite"]:before,
&[title$="Page"]:before {
background-position: -360px -40px;
}
&.persistence-document:before {
background-position: -360px -80px;
}
Expand Down
25 changes: 11 additions & 14 deletions Resources/Private/Partials/KitodoPageView.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@
<ul>
<f:comment><!-- [Page downloads (PDF)] ------------------------------ --></f:comment>
<li class="pdf-download has-multilinks">
<span class="multilink-label"><f:translate key="download.pdf.pdfDownload" extensionName="slub_digitalcollections" /></span>
<div class="multilinks">
<f:if condition="{dc:downloadLinks(type:'work')}">
<f:link.external
Expand All @@ -256,14 +255,14 @@
<f:then>
<f:link.external
uri="<dc:xpath xpath='({xpathDownload})[{gp-page}]' />"
class="download-page pdf left"
class="download-document pdf left"
target="_blank"
title="<f:translate key='download.pdf.leftPage' extensionName='slub_digitalcollections' />">
<f:translate key="download.pdf.leftPage" extensionName="slub_digitalcollections" />
</f:link.external>
<f:link.external
uri="<dc:xpath xpath='({xpathDownload})[{gp-page2}]' />"
class="download-page pdf right"
class="download-document pdf right"
target="_blank"
title="<f:translate key='download.pdf.rightPage' extensionName='slub_digitalcollections' />">
<f:translate key="download.pdf.rightPage" extensionName="slub_digitalcollections" />
Expand All @@ -272,7 +271,7 @@
<f:else>
<f:link.external
uri="<dc:xpath xpath='({xpathDownload})[{gp-page}]' />"
class="download-page pdf singlepage"
class="download-document pdf singlepage"
target="_blank"
title="<f:translate key='download.pdf.singlePage' extensionName='slub_digitalcollections' />">
<f:translate key="download.pdf.singlePage" extensionName="slub_digitalcollections" />
Expand Down Expand Up @@ -303,18 +302,17 @@
<f:if condition="{gp-double} == 1">
<f:then>
<li class="jpg-download has-multilinks">
<span class="multilink-label"><f:translate key="download.image.imageDownload" extensionName="slub_digitalcollections" /></span>
<div class="multilinks">
<f:link.external
uri="<dc:xpath xpath='(//mets:fileSec/mets:fileGrp{usedFileGrp}//mets:file/mets:FLocat/@xlink:href)[{gp-page}]' />{f:if(condition:\"{mimeType}=='application/vnd.kitodo.iiif'\", then:'/full/full/0/default.jpg')}"
class="download-page image left"
class="download-document image left"
target="_blank"
title="<f:translate key='download.image.leftPage' extensionName='slub_digitalcollections' />">
<f:translate key="download.image.leftPage" extensionName="slub_digitalcollections" />
</f:link.external>
<f:link.external
uri="<dc:xpath xpath='(//mets:fileSec/mets:fileGrp{usedFileGrp}//mets:file/mets:FLocat/@xlink:href)[{gp-page2}]' />{f:if(condition:\"{mimeType}=='application/vnd.kitodo.iiif'\", then:'/full/full/0/default.jpg')}"
class="download-page image right"
class="download-document image right"
target="_blank"
title="<f:translate key='download.image.rightPage' extensionName='slub_digitalcollections' />">
<f:translate key="download.image.rightPage" extensionName="slub_digitalcollections" />
Expand All @@ -326,7 +324,7 @@
<li class="jpg-download">
<f:link.external
uri="<dc:xpath xpath='(//mets:fileSec/mets:fileGrp{usedFileGrp}//mets:file/mets:FLocat/@xlink:href)[{gp-page}]' />{f:if(condition:\"{mimeType}=='application/vnd.kitodo.iiif'\", then:'/full/full/0/default.jpg')}"
class="download-page image"
class="download-document image"
target="_blank"
title="<f:translate key='download.image.singlePage' extensionName='slub_digitalcollections' />">
<f:translate key="download.image.singlePage" extensionName="slub_digitalcollections" />
Expand All @@ -340,17 +338,16 @@
<f:if condition="{gp-double} == 1">
<f:then>
<li class="xml-download has-multilinks">
<span class="multilink-label"><f:translate key="download.fulltext.fulltextDownload" extensionName="slub_digitalcollections" /></span>
<div class="multilinks">
<f:link.external
uri="<dc:xpath xpath='(//mets:fileSec/mets:fileGrp[@USE=\"FULLTEXT\"]//mets:file/mets:FLocat/@xlink:href)[{gp-page}]' />"
class="download-page fulltext left"
class="download-fulltext fulltext left"
target="_blank"
title="<f:translate key='download.fulltext.leftPage' extensionName='slub_digitalcollections' />"><f:translate key="download.fulltext.leftPage" extensionName="slub_digitalcollections" />
</f:link.external>
<f:link.external
uri="<dc:xpath xpath='(//mets:fileSec/mets:fileGrp[@USE=\"FULLTEXT\"]//mets:file/mets:FLocat/@xlink:href)[{gp-page2}]' />"
class="download-page fulltext right"
class="download-fulltext fulltext right"
target="_blank"
title="<f:translate key='download.fulltext.rightPage' extensionName='slub_digitalcollections' />"><f:translate key="download.fulltext.rightPage" extensionName="slub_digitalcollections" />
</f:link.external>
Expand All @@ -361,7 +358,7 @@
<li class="xml-download">
<f:link.external
uri="<dc:xpath xpath='(//mets:fileSec/mets:fileGrp[@USE=\"FULLTEXT\"]//mets:file/mets:FLocat/@xlink:href)[{gp-page}]' />"
class="download-page ocr"
class="download-fulltext ocr"
target="_blank"
title="<f:translate key='download.fulltext.singlePage' extensionName='slub_digitalcollections' />"><f:translate key="download.fulltext.singlePage" extensionName="slub_digitalcollections" />
</f:link.external>
Expand All @@ -383,7 +380,7 @@
<li class="mets-download">
<f:link.external
uri="https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=<dc:xpath xpath='(//mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:recordInfo/mods:recordIdentifier)' />"
class="download-document mets"
class="download-page mets"
target="_blank"
title="<f:translate key='download.mets' extensionName='slub_digitalcollections' />">
<f:translate key="download.mets" extensionName="slub_digitalcollections" />
Expand All @@ -397,7 +394,7 @@
<li class="iiif-download">
<f:link.external
uri="https://iiif.slub-dresden.de/iiif/2/{dc:xpath(xpath: '//mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:extension/slub:slub/slub:id[@type=\"digital\"]')}/manifest.json"
class="download-document iiif"
class="download-page iiif"
target="_blank"
title="{f:translate(key: 'download.iiif', extensionName='slub_digitalcollections')}"><f:translate key="download.iiif" extensionName="slub_digitalcollections" />
</f:link.external>
Expand Down
Loading

0 comments on commit 7970e31

Please sign in to comment.