Commit b1daa65a authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

img_viewer: prise en compte des @facs avec url http. Fixes #73

parent 3db3c405
Loading
Loading
Loading
Loading
+7 −0
Changes for plugins-available/default/img_viewer/img_viewer.xsl: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -11,7 +11,14 @@

    <xsl:template match="tei:pb">
        <xsl:variable name="href">
            <xsl:choose>
                <xsl:when test="starts-with(@facs,'http')">
                    <xsl:value-of select="@facs"/>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="concat($baseuri,$project,'/',$imagesRepository,@facs)"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:variable>
        <a>
            <xsl:attribute name="class">pb img_viewer_link</xsl:attribute>