Commit 570e6cf1 authored by jerome's avatar jerome
Browse files

distinguish between lit. and article

parent 6c62eeb7
......@@ -66,12 +66,13 @@ Refer to comments in the code to understand the used algorithm.
<xsl:template match="TEI">
<add>
<doc>
<xsl:apply-templates select="teiHeader| text" />
<xsl:apply-templates select="teiHeader|text" />
<xsl:for-each select="distinct-values(//@xml:lang)">
<field name="language">
<xsl:value-of select="." />
</field>
</xsl:for-each>
<xsl:apply-templates select="facsimile" />
<xsl:for-each select="distinct-values(//name/@ref)">
<xsl:if test=". != 'gnd:_' and starts-with(., 'gnd:') ">
......@@ -413,8 +414,17 @@ Refer to comments in the code to understand the used algorithm.
</field>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="contains(document-uri(/), 'Lit')">
<field name="doctype">literature</field>
</xsl:when>
<xsl:otherwise>
<field name="doctype">article</field><!--TODO test!!! -->
</xsl:otherwise>
</xsl:choose>
<field name="doctype">article</field><!--TODO select when it is article when literature-->
<field name="number_of_pages">
<xsl:value-of select="count(//pb)" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment