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
dc9d0502
Commit
dc9d0502
authored
Feb 01, 2021
by
bettin5@sub.uni-goettingen.de
Browse files
add new field article_title that contain parent-title
parent
b7ae0952
Changes
2
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
dc9d0502
...
...
@@ -116,6 +116,7 @@ Refer to comments in the code to understand the used algorithm.
</xsl:if>
</xsl:template>
<!-- scraping the gnd database for meta data the result is marc21 with works with numbers as identifyer -->
<xsl:template
match=
"marc:record"
>
<xsl:choose>
<xsl:when
test=
"marc:datafield[@tag='100']"
>
...
...
@@ -258,7 +259,6 @@ Refer to comments in the code to understand the used algorithm.
</field>
</xsl:for-each>
<!-- TITLE -->
<xsl:for-each
select=
"title"
>
<xsl:choose>
<xsl:when
test=
"./@type = 'main'"
>
...
...
@@ -649,6 +649,9 @@ Refer to comments in the code to understand the used algorithm.
<field
name=
"article_id"
>
<xsl:value-of
select=
"$context/@xml:id"
/>
</field>
<field
name=
"article_title"
>
<xsl:value-of
select=
"//title[@type='desc']/normalize-space()"
/>
</field>
<field
name=
"doctype"
>
page
</field>
<field
name=
"page_number"
>
<xsl:value-of
select=
"$pageNumber"
/>
...
...
solr/gfl/conf/schema.xml
View file @
dc9d0502
...
...
@@ -91,6 +91,7 @@
<!-- for doctype 'page' -->
<field
name=
"article_id"
type=
"string"
/>
<field
name=
"article_title"
type=
"string"
/>
<field
name=
"page_number"
type=
"int"
/>
<field
name=
"html_page"
type=
"text_de"
multiValued=
"false"
/>
<field
name=
"image_ids"
type=
"string"
multiValued=
"true"
/>
...
...
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