Commit 9ca19d11 authored by jerome's avatar jerome
Browse files

delete fulltext from doctype:lit...

parent 570e6cf1
......@@ -418,39 +418,42 @@ Refer to comments in the code to understand the used algorithm.
<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!!! -->
<field name="number_of_pages">
<xsl:value-of select="count(//pb)" />
</field>
<field name="fulltext">
<xsl:apply-templates select="body" mode="text_only" />
</field>
<field name="fulltext_html">
<xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
<div class="article">
<xsl:variable name="context" select="." />
<xsl:for-each-group select="descendant::node()[not(node())]" group-starting-with="pb">
<xsl:if test="self::pb">
<div class="page">
<xsl:call-template name="page-beginning-with-possible-link">
<xsl:with-param name="current-pb" select="." />
</xsl:call-template>
<xsl:apply-templates select="$context/*" mode="page_splitting">
<xsl:with-param name="restricted-to" select="current-group()/ancestor-or-self::node()" tunnel="yes" />
</xsl:apply-templates>
</div>
</xsl:if>
</xsl:for-each-group>
</div>
<xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
</field>
</xsl:otherwise>
</xsl:choose>
<field name="number_of_pages">
<xsl:value-of select="count(//pb)" />
</field>
<field name="fulltext">
<xsl:apply-templates select="body" mode="text_only" />
</field>
<field name="fulltext_html">
<xsl:text disable-output-escaping="yes">&lt;![CDATA[</xsl:text>
<div class="article">
<xsl:variable name="context" select="." />
<xsl:for-each-group select="descendant::node()[not(node())]" group-starting-with="pb">
<xsl:if test="self::pb">
<div class="page">
<xsl:call-template name="page-beginning-with-possible-link">
<xsl:with-param name="current-pb" select="." />
</xsl:call-template>
<xsl:apply-templates select="$context/*" mode="page_splitting">
<xsl:with-param name="restricted-to" select="current-group()/ancestor-or-self::node()" tunnel="yes" />
</xsl:apply-templates>
</div>
</xsl:if>
</xsl:for-each-group>
</div>
<xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
</field>
<xsl:apply-templates select=".//note[@type='com']" />
<xsl:for-each select="//listBibl/bibl">
<xsl:if test="relatedItem/@type='print'">
......
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