Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Goethes Farbenlehre
gfl-importer
Commits
9ca19d11
Commit
9ca19d11
authored
Sep 07, 2020
by
jerome
Browse files
delete fulltext from doctype:lit...
parent
570e6cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
9ca19d11
...
...
@@ -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"
>
<
![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"
>
]]
>
</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"
>
<
![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"
>
]]
>
</xsl:text>
</field>
<xsl:apply-templates
select=
".//note[@type='com']"
/>
<xsl:for-each
select=
"//listBibl/bibl"
>
<xsl:if
test=
"relatedItem/@type='print'"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment