...
 
Commits (2)
......@@ -65,7 +65,6 @@ Refer to comments in the code to understand the used algorithm.
<xsl:template match="TEI">
<add>
<xsl:apply-templates select="//body/listBibl" />
<doc>
<xsl:apply-templates select="teiHeader| text" />
<xsl:for-each select="distinct-values(//@xml:lang)">
......@@ -75,11 +74,14 @@ Refer to comments in the code to understand the used algorithm.
</xsl:for-each>
<xsl:apply-templates select="facsimile" />
<xsl:for-each select="distinct-values(//name/@ref)">
<xsl:if test=". != 'gnd:_' and starts-with(., 'gnd:') ">
<field name="entitys_in_documents">
<xsl:value-of select="."/>
</field>
</xsl:if>
</xsl:for-each>
</doc>
<xsl:apply-templates select="//body/listBibl" />
<xsl:apply-templates select="//name/@ref"/>
<xsl:apply-templates select="text" mode="page_splitting" />
</add>
......@@ -355,6 +357,12 @@ Refer to comments in the code to understand the used algorithm.
<xsl:apply-templates mode="text_only" />
</field>
</xsl:template>
<xsl:template match="textClass/keywords[@scheme='frei']/term">
<field name="free_keyword">
<xsl:apply-templates mode="text_only" />
</field>
</xsl:template>
<!--################### text/body ##########################-->
......@@ -378,9 +386,24 @@ Refer to comments in the code to understand the used algorithm.
<xsl:value-of select="./@xml:id"/>
</field>
</xsl:when>
<xsl:when test="contains(document-uri(/), 'Lit_Archiv/')">
<field name="id">
<xsl:value-of select="substring-after(substring-before(document-uri(/), '.xml'), 'Lit_Archiv/')" />
</field>
</xsl:when>
<xsl:when test="contains(document-uri(/), 'Lit_Fbl_Bln/')">
<field name="id">
<xsl:value-of select="substring-after(substring-before(document-uri(/), '.xml'), 'Lit_Fbl_Bln/')" />
</field>
</xsl:when>
<xsl:when test="contains(document-uri(/), 'Lit_Bearbeitung/')">
<field name="id">
<xsl:value-of select="substring-after(substring-before(document-uri(/), '.xml'), 'Lit_Bearbeitung/')" />
</field>
</xsl:when>
<xsl:otherwise>
<field name="id">
<xsl:value-of select="substring-after(substring-before(document-uri(/), '.xml'), 'Lit_Bearbeitung/')" /> <!--dirty solution not safe with other dirs-->
<xsl:value-of select="document-uri(/)" />
</field>
</xsl:otherwise>
</xsl:choose>
......@@ -825,4 +848,4 @@ Refer to comments in the code to understand the used algorithm.
</xsl:if>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<schema name="gfl" version="1.5">
<uniqueKey>id</uniqueKey>
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"
......@@ -54,7 +53,6 @@
<!-- 'article' or 'page' or 'literatur'-->
<field name="doctype" type="string" required="true"/>
<field name="entitys_in_documents" type="string" multiValued="true"/>
<!-- for doctype 'entity' -->
<field name="entity_name" type="string_ci" multiValued="false"/>
......@@ -76,7 +74,6 @@
<field name="pub_date" type="string" multiValued="true"/>
<field name="idno" type="string" />
<!-- for doctype 'page' -->
<field name="article_id" type="string" />
......@@ -94,7 +91,7 @@
<field name="fulltext_html" type="text_de" multiValued="false" />
<field name="short_title" type="text_de" multiValued="false" />
<field name="title" type="text_de" multiValued="false" /><!-- maybe TODO multivalue = "false"-->
<field name="author" type="text_de" multiValued="false" />
<field name="author" type="text_de" multiValued="true" />
<field name="recipient" type="text_de" multiValued="false" />
<field name="origin_place" type="text_de" multiValued="false" />
<field name="destination_place" type="text_de" multiValued="false" />
......@@ -110,7 +107,7 @@
<field name="ref_refs" type="string" multiValued="true"/>
<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"/>
<field name="all_header_fields" type="text_de" multiValued="true" />
<copyField source="id" dest="all_header_fields" />
......
#Written by CorePropertiesLocator
#Fri Apr 24 07:10:23 UTC 2020
#Mon May 04 09:19:20 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
name=gfloffline
config=solrconfig.xml
#Written by CorePropertiesLocator
#Fri Apr 24 07:10:23 UTC 2020
#Mon May 04 09:19:20 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
name=gfl
config=solrconfig.xml