Skip to content
Snippets Groups Projects
Commit de177f98 authored by Max-Ferdinand Zeterberg's avatar Max-Ferdinand Zeterberg
Browse files

fix (commentary types): make serialisation of commentary types more flexible

parent db9200a7
No related branches found
No related tags found
1 merge request!44Resolve "Serialisierung Kommentar-Typen"
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -235,14 +235,9 @@ ...@@ -235,14 +235,9 @@
<xsl:template match="philology//note"> <xsl:template match="philology//note">
<li class="note-item"> <li class="note-item">
<xsl:variable name="noteItemId" select="generate-id()"/> <xsl:variable name="noteItemId" select="generate-id()"/>
<xsl:variable name="types" select="replace(replace(@type, 'con', 'inh'), ' ', ' / ')"/>
<label for="{$noteItemId}"> <label for="{$noteItemId}">
<xsl:choose> <xsl:value-of select="$types"/>
<xsl:when test="@type='lx'">lx</xsl:when>
<xsl:when test="@type='gr'">gr</xsl:when>
<xsl:when test="@type='rek'">rek</xsl:when>
<xsl:when test="@type='con'">inh</xsl:when>
<xsl:otherwise>xx</xsl:otherwise>
</xsl:choose>
</label> </label>
<input id="{$noteItemId}" type="checkbox"/> <input id="{$noteItemId}" type="checkbox"/>
<span> <span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment