Skip to content

Commit

Permalink
created fallback for notatedMusic without graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Oct 11, 2015
1 parent a730017 commit 8aab21d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xsl/common_main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@
</xsl:element>
</xsl:when>
<!-- Local images -->
<xsl:otherwise>
<xsl:when test="tei:graphic/@url">
<xsl:variable name="content">
<xsl:element name="img">
<xsl:apply-templates select="@xml:id"/>
Expand All @@ -910,6 +910,13 @@
</xsl:element>
</xsl:variable>
<xsl:sequence select="wega:createLightboxAnchor($href,$title,'doc',$content)"/>
</xsl:when>
<!-- Fallback if no image url is present -->
<xsl:otherwise>
<xsl:element name="span">
<xsl:attribute name="class" select="'tei_notatedMusic tei_supplied'"/>
<xsl:value-of select="concat('Notenbeispiel: ', tei:desc)"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Expand Down

0 comments on commit 8aab21d

Please sign in to comment.