Commit 02a2cc90 authored by jerome's avatar jerome
Browse files

excluded lit from fulltext

parent 9ca19d11
......@@ -419,10 +419,44 @@ Refer to comments in the code to understand the used algorithm.
<xsl:when test="contains(document-uri(/), 'Lit')">
<field name="doctype">literature</field>
<xsl:for-each select="//listBibl/bibl">
<xsl:if test="relatedItem/@type='print'">
<field name="type_refs">
<xsl:value-of select="./relatedItem/@type"/>
</field>
<xsl:choose>
<xsl:when test="./relatedItem/ref/@target">
<xsl:for-each select="./relatedItem/bibl/ref/@target">
<field name="target">
<xsl:value-of select="substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')" />
</field>
</xsl:for-each>
</xsl:when>
<xsl:when test="./relatedItem/bibl/ref/@target">
<xsl:for-each select="./relatedItem/bibl/ref/@target">
<field name="target">
<xsl:value-of select="substring-after(., 'http://fbl_bln/Lit/')" />
</field>
</xsl:for-each>
</xsl:when>
</xsl:choose>
<field name="ref_refs">
<xsl:value-of select="./relatedItem//ref/normalize-space()"/>
</field>
<xsl:if test="./relatedItem/bibl/text() != ''">
<field name="bibl_refs">
<xsl:value-of select="./relatedItem/bibl/text()/normalize-space()"/>
</field>
</xsl:if>
<field name="literature_refs">
<xsl:value-of select="./normalize-space()"/>
</field>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<field name="doctype">article</field><!--TODO test!!! -->
<field name="number_of_pages">
<xsl:value-of select="count(//pb)" />
</field>
......@@ -451,44 +485,8 @@ Refer to comments in the code to understand the used algorithm.
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select=".//note[@type='com']" />
<xsl:for-each select="//listBibl/bibl">
<xsl:if test="relatedItem/@type='print'">
<field name="type_refs">
<xsl:value-of select="./relatedItem/@type"/>
</field>
<xsl:choose>
<xsl:when test="./relatedItem/ref/@target">
<xsl:for-each select="./relatedItem/bibl/ref/@target">
<field name="target">
<xsl:value-of select="substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')" />
</field>
</xsl:for-each>
</xsl:when>
<xsl:when test="./relatedItem/bibl/ref/@target">
<xsl:for-each select="./relatedItem/bibl/ref/@target">
<field name="target">
<xsl:value-of select="substring-after(., 'http://fbl_bln/Lit/')" />
</field>
</xsl:for-each>
</xsl:when>
</xsl:choose>
<field name="ref_refs">
<xsl:value-of select="./relatedItem//ref/normalize-space()"/>
</field>
<xsl:if test="./relatedItem/bibl/text() != ''">
<field name="bibl_refs">
<xsl:value-of select="./relatedItem/bibl/text()/normalize-space()"/>
</field>
</xsl:if>
<field name="literature_refs">
<xsl:value-of select="./normalize-space()"/>
</field>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="body | div" mode="text_only">
......
#Written by CorePropertiesLocator
#Thu Sep 03 10:14:52 UTC 2020
#Mon Sep 07 12:32:24 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
......
#Written by CorePropertiesLocator
#Thu Sep 03 10:14:52 UTC 2020
#Mon Sep 07 12:32:24 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
......
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