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
02a2cc90
Commit
02a2cc90
authored
Sep 08, 2020
by
jerome
Browse files
excluded lit from fulltext
parent
9ca19d11
Changes
3
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
02a2cc90
...
...
@@ -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"
>
...
...
solr/gfl/core.properties
View file @
02a2cc90
#Written by CorePropertiesLocator
#
Thu
Sep 0
3
1
0:14:52
UTC 2020
#
Mon
Sep 0
7
1
2:32:24
UTC 2020
schema
=
schema.xml
dataDir
=
data
name
=
gfl
...
...
solr/gfloffline/core.properties
View file @
02a2cc90
#Written by CorePropertiesLocator
#
Thu
Sep 0
3
1
0:14:52
UTC 2020
#
Mon
Sep 0
7
1
2:32:24
UTC 2020
schema
=
schema.xml
dataDir
=
data
name
=
gfloffline
...
...
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