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
570e6cf1
Commit
570e6cf1
authored
Sep 04, 2020
by
jerome
Browse files
distinguish between lit. and article
parent
6c62eeb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
570e6cf1
...
...
@@ -66,12 +66,13 @@ Refer to comments in the code to understand the used algorithm.
<xsl:template
match=
"TEI"
>
<add>
<doc>
<xsl:apply-templates
select=
"teiHeader|
text"
/>
<xsl:apply-templates
select=
"teiHeader|text"
/>
<xsl:for-each
select=
"distinct-values(//@xml:lang)"
>
<field
name=
"language"
>
<xsl:value-of
select=
"."
/>
</field>
</xsl:for-each>
<xsl:apply-templates
select=
"facsimile"
/>
<xsl:for-each
select=
"distinct-values(//name/@ref)"
>
<xsl:if
test=
". != 'gnd:_' and starts-with(., 'gnd:') "
>
...
...
@@ -413,8 +414,17 @@ Refer to comments in the code to understand the used algorithm.
</field>
</xsl:otherwise>
</xsl:choose>
<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!!! -->
</xsl:otherwise>
</xsl:choose>
<field
name=
"doctype"
>
article
</field>
<!--TODO select when it is article when literature-->
<field
name=
"number_of_pages"
>
<xsl:value-of
select=
"count(//pb)"
/>
...
...
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