Commit 44eeddef authored by jerome's avatar jerome

change template to for each

parent d6feaef7
......@@ -74,13 +74,15 @@ Refer to comments in the code to understand the used algorithm.
</xsl:for-each>
<xsl:apply-templates select="facsimile" />
<xsl:apply-templates select="//body/listBibl" />
<xsl:apply-templates select="//name/@ref" mode="doc"/>
<xsl:for-each select="distinct-values(//name/@ref)">
<field name="entitys_in_documents">
<xsl:value-of select="."/>
</field>
</xsl:for-each>
</doc>
<xsl:apply-templates select="//name/@ref"/>
<xsl:apply-templates select="text" mode="page_splitting" />
</add>
</xsl:template>
<xsl:template match="name/@ref">
......@@ -355,18 +357,6 @@ Refer to comments in the code to understand the used algorithm.
</xsl:template>
<!--################### text/body ##########################-->
<xsl:template match="//name/@ref" mode="doc">
<xsl:for-each select="//name/@ref">
<xsl:if test=". != 'gnd:_' and ./parent::name/text() and ./parent::name/@type and starts-with(., 'gnd:') ">
<add-distinct>
<field name="entitys_in_documents">
<xsl:value-of select="."/>
</field>
</add-distinct>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="facsimile">
<xsl:for-each select="./graphic/@xml:id">
......
#Written by CorePropertiesLocator
#Thu Apr 23 07:49:27 UTC 2020
#Thu Apr 23 08:25:52 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
name=gfl
config=solrconfig.xml
#Written by CorePropertiesLocator
#Thu Apr 23 07:49:27 UTC 2020
#Thu Apr 23 08:25:52 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
name=gfloffline
config=solrconfig.xml
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