Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Goethes Farbenlehre
gfl-importer
Commits
b1f3d819
Commit
b1f3d819
authored
Mar 26, 2020
by
bettin5
Browse files
foreach for targets to use substring()
parent
625958aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
b1f3d819
...
...
@@ -318,15 +318,19 @@ Refer to comments in the code to understand the used algorithm.
<xsl:value-of
select=
"./relatedItem/@type"
/>
</field>
<xsl:choose>
<xsl:when
test=
"./relatedItem/ref/@target"
>
<field
name=
"target"
>
<xsl:value-of
select=
"./relatedItem/ref/@target"
/>
</field>
<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=
"
./relatedItem/bibl/ref/@target
"
/>
<xsl:value-of
select=
"
substring-after(., 'http://fbl_bln/Lit/')
"
/>
</field>
</xsl:for-each>
</xsl:when>
</xsl:choose>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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