Skip to content

Commit

Permalink
fix addition of currency symbols
Browse files Browse the repository at this point in the history
in cases where a tei:sic is present in the tei:measure
  • Loading branch information
peterstadler committed Dec 12, 2024
1 parent ab7677f commit 77db545
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xsl/common_funcs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@
<xsl:function name="wega:addCurrencySymbolIfNecessary" as="element(xhtml:span)?">
<xsl:param name="measure" as="element(tei:measure)"/>
<!-- Wenn kein Währungssymbol angegeben ist, setzen wir eins hinzu -->
<xsl:if test="matches(normalize-space(string-join($measure/node() except $measure/tei:note, '')),'^\d+\.*$') and $measure/@quantity &gt; 0">
<!-- Die Ausnahme $measure/tei:sic ist eingerichtet für A064109 -->
<xsl:if test="matches(normalize-space(string-join($measure/node() except $measure/tei:note except $measure/tei:sic, '')),'^\d+\.*$') and $measure/@quantity &gt; 0">
<xsl:element name="span">
<xsl:attribute name="class" select="'suppliedCurrencySymbol'"/>
<xsl:choose>
Expand Down

0 comments on commit 77db545

Please sign in to comment.