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
e3ec6f43
Commit
e3ec6f43
authored
Mar 27, 2020
by
bettin5
Browse files
rm empty uris and replace _ with ' ' in id
parent
b1f3d819
Changes
2
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
e3ec6f43
...
...
@@ -82,7 +82,7 @@ Refer to comments in the code to understand the used algorithm.
<doc>
<field
name=
"entity_name"
>
<xsl:value-of
select=
"./parent::name/normalize-space()"
/>
</field>
</field>
<field
name =
"doctype"
>
<xsl:value-of
select=
"./parent::name/@type"
/>
</field>
...
...
@@ -97,14 +97,21 @@ Refer to comments in the code to understand the used algorithm.
<xsl:for-each
select=
"bibl"
>
<doc>
<field
name=
"id"
>
<xsl:value-of
select=
"./@xml:id"
/>
<xsl:value-of
select=
"
replace(
./@xml:id
, '_', ' ')
"
/>
</field>
<field
name=
"doctype"
>
literature
</field>
<xsl:for-each
select=
"relatedItem"
>
<field
name=
"uri"
>
<xsl:value-of
select=
"ref/@target"
/>
</field>
</xsl:for-each>
<xsl:choose>
<xsl:when
test=
"ref/@target = 'https://_' or ref/@target = '' or ref/@target = '_'"
>
<field
name=
"uri"
/>
</xsl:when>
<xsl:otherwise>
<field
name=
"uri"
>
<xsl:value-of
select=
"ref/@target"
/>
</field>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:for-each
select=
"author"
>
<field
name=
"literature_author"
>
<xsl:value-of
select=
"."
/>
...
...
@@ -139,11 +146,6 @@ Refer to comments in the code to understand the used algorithm.
<field
name=
"idno"
>
<xsl:value-of
select=
"idno"
/>
</field>
<xsl:for-each
select=
"relatedItem"
>
<field
name=
"refs"
>
<xsl:value-of
select=
"./normalize-space()"
/>
</field>
</xsl:for-each>
</doc>
</xsl:for-each>
</xsl:template>
...
...
solr/gfl/conf/schema.xml
View file @
e3ec6f43
...
...
@@ -67,7 +67,7 @@
<field
name=
"publisher"
type=
"string"
multiValued=
"true"
/>
<field
name=
"pub_date"
type=
"string"
multiValued=
"true"
/>
<field
name=
"idno"
type=
"string"
/>
<field
name=
"refs"
type=
"string"
multiValued=
"true"
/>
<!-- for doctype 'page' -->
...
...
@@ -96,6 +96,7 @@
<field
name=
"free_keyword"
type=
"text_de"
multiValued=
"true"
/>
<field
name=
"note_comment"
type=
"text_de"
multiValued=
"true"
/>
<field
name=
"image_id"
type=
"string"
multiValued=
"true"
/>
<field
name=
"type_refs"
type=
"string"
multiValued=
"true"
/>
<field
name=
"target"
type=
"string"
multiValued=
"true"
/>
<field
name=
"ref_refs"
type=
"string"
multiValued=
"true"
/>
...
...
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