Commit 7c0aa8cd authored by emelinemancel's avatar emelinemancel
Browse files

Maj XSL

parent 5becaf11
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -40,14 +40,7 @@
        </div>
    </xsl:template>


    <xsl:template match="tei:graphic|ead:dao">
      <xsl:variable name="href">
        <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository ,@url)"/>
      </xsl:variable>
      <xsl:variable name="id">
        <xsl:value-of select="generate-id(.) "/>
      </xsl:variable>
      <xsl:variable name="link">
        <xsl:choose>
          <xsl:when test="@url">
@@ -58,15 +51,21 @@
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
      <xsl:variable name="href">
        <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository ,$link)"/>
      </xsl:variable>
      <xsl:variable name="id">
        <xsl:value-of select="generate-id(.) "/>
      </xsl:variable>
      <img class="viewable img_viewer_link" id="{$id}">
        <xsl:attribute name="onclick">MAX.plugins['img_viewer'].openImageInDialog('<xsl:value-of select="$href"/>')</xsl:attribute>
        <xsl:attribute name="src">
          <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository,$link)"/>
          <xsl:value-of select="concat($baseuri,$project, '/ui/images/',$link)"/>
        </xsl:attribute>
      </img>
    </xsl:template>

    <xsl:template match="ead:dao[@xlink:role!='']">
    <!-- <xsl:template match="ead:dao[@xlink:role!='']">
      <xsl:variable name="resource">
        <xsl:value-of select="concat($baseuri,$project,'/ui/js/')"/>
        <xsl:value-of select="ancestor::ead:c[@otherlevel='manuscrit'][1]/@id"/>
@@ -79,7 +78,7 @@
          <xsl:text>')</xsl:text>
        </xsl:attribute>
      </img>
    </xsl:template>
    </xsl:template> -->

    <xsl:template match="ead:daogrp">
      <div id="diaporama">