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
658199ad
Commit
658199ad
authored
Feb 11, 2021
by
bettin5@sub.uni-goettingen.de
Browse files
add fields for metadata and scrape them
parent
2fb63f56
Changes
2
Hide whitespace changes
Inline
Side-by-side
gfl-plugin/src/main/resources/gfl-indexer.xslt
View file @
658199ad
...
...
@@ -569,7 +569,36 @@ Refer to comments in the code to understand the used algorithm.
</xsl:for-each-group>
</div>
<xsl:text
disable-output-escaping=
"yes"
>
]]
>
</xsl:text>
</field>
</field>
<field
name=
"institution"
>
<xsl:value-of
select=
"//repository/normalize-space()"
/><xsl:text>
,
</xsl:text>
<xsl:value-of
select=
"//institution/normalize-space()"
/><xsl:text>
,
</xsl:text>
<xsl:value-of
select=
"//settlement/normalize-space()"
/><xsl:text>
</xsl:text>
<xsl:value-of
select=
"//country/normalize-space()"
/>
</field>
<field
name=
"shelfmark"
>
<xsl:value-of
select=
"//idno/normalize-space()"
/>
</field>
<field
name=
"script_source"
>
<xsl:value-of
select=
"//supportDesc/extent/text()"
/><xsl:text>
</xsl:text>
<xsl:value-of
select=
"//supportDesc/extent/dimensions/height/normalize-space()"
/><xsl:text>
x
</xsl:text>
<xsl:value-of
select=
"//supportDesc/extent/dimensions/width/normalize-space()"
/><xsl:text>
</xsl:text><xsl:value-of
select=
"//supportDesc/extent/dimensions/@unit/normalize-space()"
/><xsl:text>
,
</xsl:text>
<xsl:value-of
select=
"//bindingDesc/normalize-space()"
/>
</field>
<field
name=
"writer"
>
<xsl:value-of
select=
"//handNote/normalize-space()"
/>
</field>
<field
name=
"reference"
>
<xsl:value-of
select=
"//relatedItem[@subtype = 'related']/normalize-space()"
/>
</field>
<field
name=
"response"
>
<xsl:value-of
select=
"//relatedItem[@subtype = 'response']/normalize-space()"
/>
</field>
<xsl:for-each
select=
"//relatedItem"
>
<field
name=
"related_items"
>
<xsl:value-of
select=
"./ref/normalize-space()"
/>
</field>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
...
...
solr/gfl/conf/schema.xml
View file @
658199ad
...
...
@@ -124,6 +124,15 @@
<field
name=
"bibl_refs"
type=
"string"
multiValued=
"true"
/>
<field
name=
"literature_refs"
type=
"string"
multiValued=
"true"
/>
<field
name=
"entitys_in_documents"
type=
"string"
multiValued=
"true"
/>
<!-- Metadata fields -->
<field
name=
"institution"
type=
"string"
multiValued=
"true"
/>
<field
name=
"shelfmark"
type=
"string"
multiValued=
"true"
/>
<field
name=
"script_source"
type=
"string"
multiValued=
"true"
/>
<field
name=
"writer"
type=
"string"
multiValued=
"true"
/>
<field
name=
"response"
type=
"string"
multiValued=
"true"
/>
<field
name=
"reference"
type=
"string"
multiValued=
"true"
/>
<field
name=
"related_items"
type=
"string"
multiValued=
"true"
/>
<field
name=
"all_header_fields"
type=
"text_de"
multiValued=
"true"
/>
<copyField
source=
"id"
dest=
"all_header_fields"
/>
...
...
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