Commit 50db6995 authored by emelinemancel's avatar emelinemancel
Browse files

Maj XSL

parent 7c0aa8cd
Loading
Loading
Loading
Loading
+4 −19
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@
            <xsl:value-of select="@url"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="@xlink:href"/>
            <xsl:value-of select="@*:href"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
@@ -60,26 +60,11 @@
      <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, '/ui/images/',$link)"/>
          <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository,$link)"/>
        </xsl:attribute>
      </img>
    </xsl:template>

    <!-- <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"/>
        <xsl:text>.js</xsl:text>
      </xsl:variable>
      <img src="{@xlink:href}" class="img_viewer_link">
        <xsl:attribute name="onclick">
          <xsl:text>MAX.plugins['img_viewer'].openCollectionInDialog('</xsl:text>
          <xsl:value-of select="$resource"/>
          <xsl:text>')</xsl:text>
        </xsl:attribute>
      </img>
    </xsl:template> -->

    <xsl:template match="ead:daogrp">
      <div id="diaporama">
        <h2>
@@ -94,13 +79,13 @@
      <img class="img_viewer_link">
        <xsl:attribute name="src">
          <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository)"/>
          <xsl:value-of select="@xlink:href"/>
          <xsl:value-of select="@*:href"/>
        </xsl:attribute>
        <xsl:attribute name="href">#</xsl:attribute>
        <xsl:attribute name="onclick">
          <xsl:text>MAX.plugins['img_viewer'].openImagesInDialog('</xsl:text>
          <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository)"/>
          <xsl:value-of select="@xlink:href"/>
          <xsl:value-of select="@*:href"/>
          <xsl:text>')</xsl:text>
        </xsl:attribute>
      </img>