Skip to content
Snippets Groups Projects

[misc] hide paints

Merged Rachel Gaubil requested to merge chaptersModifs into main
2 files
+ 98
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 94
1
@@ -51,7 +51,8 @@
</xsl:template>
<!-- Img -->
<!-- Img -->
<xsl:template name="create_block_img">
<xsl:param name="tei" required="yes" tunnel="yes"/>
<xsl:param name="facsimileRef" required="yes" tunnel="yes"/>
@@ -142,6 +143,98 @@
</xsl:text>
</xsl:template>
<!--
<!-\- Img -\->
<xsl:template name="create_block_img">
<xsl:param name="tei" required="yes" tunnel="yes"/>
<xsl:param name="facsimileRef" required="yes" tunnel="yes"/>
<xsl:text>
{% macro img(pos) %}
</xsl:text>
<div class="osd-pane tab-pane fade" role="tabpanel" tabindex="0">
<xsl:attribute name="id">
<xsl:text>image-{{pos}}</xsl:text>
</xsl:attribute>
<xsl:attribute name="aria-labelledby">
<xsl:text>image-{{pos}}-tab</xsl:text>
</xsl:attribute>
<div class="osd-pane-content">
<xsl:attribute name="id">
<xsl:text>osd-pane-content-{{pos}}</xsl:text>
</xsl:attribute>
<div class="img-thumbnails">
<xsl:for-each select="$tei/tei:TEI/tei:facsimile[@corresp = $facsimileRef]/tei:surface">
<xsl:variable name="data-prefix"
select="replace(@facs, '(.*)/ark:/([^/]+/).*', '$1/iiif/ark:/$2')"/>
<xsl:variable name="data-suffix"
select="concat('/full/', $img_width, ',/0/native.jpg')"/>
<xsl:variable name="data-ident"
select="replace(@facs, '.*/ark:/[^/]+/(.*).item', '$1')"/>
<xsl:variable name="id" select="replace(@facs, '.*/(.*).item', '$1')"/>
<img class="img-thumbnail"
src="{$data-prefix}{$data-ident}/full/,80/0/color.jpg"
data-img="{$data-prefix}{$data-ident}/full/1600,/0/color.jpg"
data-credit="Source : BnF / Gallica">
<xsl:attribute name="id">
<xsl:text>image-{{pos}}-</xsl:text>
<xsl:value-of select="$id"/>
</xsl:attribute>
<xsl:attribute name="data-pos">
<xsl:text>{{pos}}</xsl:text>
</xsl:attribute>
</img>
</xsl:for-each>
</div>
<div class="osd-btn text-center">
<span>
<xsl:attribute name="id">
<xsl:text>osd-zoom-in-{{pos}}</xsl:text>
</xsl:attribute>
<i class="fa fa-search-plus"/>
</span>
<span>
<xsl:attribute name="id">
<xsl:text>osd-zoom-out-{{pos}}</xsl:text>
</xsl:attribute>
<i class="fa fa-search-minus"/>
</span>
<span>
<xsl:attribute name="id">
<xsl:text>osd-home-{{pos}}</xsl:text>
</xsl:attribute>
<i class="fa fa-home"/>
</span>
<span>
<xsl:attribute name="id">
<xsl:text>osd-full-page-{{pos}}</xsl:text>
</xsl:attribute>
<i class="fa fa-arrows-alt"/>
</span>
<span>
<xsl:attribute name="id">
<xsl:text>osd-left-{{pos}}</xsl:text>
</xsl:attribute>
<i class="fa fa-undo"/>
</span>
<span>
<xsl:attribute name="id">
<xsl:text>osd-right-{{pos}}</xsl:text>
</xsl:attribute>
<i class="fa fa-redo-alt"/>
</span>
</div>
<div class="openseadragon">
<xsl:attribute name="id">
<xsl:text>openseadragon-{{pos}}</xsl:text>
</xsl:attribute>
</div>
</div>
</div>
<xsl:text>
{% endmacro %}
</xsl:text>
</xsl:template>-->
<!-- Description -->
<xsl:template name="create_block_description">
Loading