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
750cb9ef
Commit
750cb9ef
authored
Mar 25, 2020
by
bettin5
Browse files
put substring in var
parent
7e557b39
Changes
1
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
750cb9ef
...
...
@@ -317,15 +317,18 @@ Refer to comments in the code to understand the used algorithm.
<field
name=
"type_refs"
>
<xsl:value-of
select=
"./relatedItem/@type"
/>
</field>
<xsl:choose>
<xsl:when
test=
"./relatedItem/ref/@target"
>
<field
name=
"tartget"
>
<xsl:value-of
select=
"substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')"
/>
<xsl:variable
name=
"targetString"
select=
"substring-after(./relatedItem/ref/@target, 'http://fbl_bln/Lit/')"
/>
<field
name=
"target"
>
<xsl:value-of
select=
"$targetString"
/>
</field>
</xsl:when>
<xsl:when
test=
"./relatedItem/bibl/ref/@target"
>
<field
name=
"tartget"
>
<xsl:value-of
select=
"substring-after(./relatedItem/bibl/ref/@target, 'http://fbl_bln/Lit/')"
/>
<xsl:variable
name=
"targetString_bibl"
select=
"substring-after(./relatedItem/bibl/ref/@target, 'http://fbl_bln/Lit/')"
/>
<field
name=
"target"
>
<xsl:value-of
select=
"$targetString_bibl"
/>
</field>
</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