Commit 658199ad authored by bettin5@sub.uni-goettingen.de's avatar bettin5@sub.uni-goettingen.de
Browse files

add fields for metadata and scrape them

parent 2fb63f56
......@@ -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">]]&gt;</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>
......
......@@ -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" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment