Commit b6fa1c43 authored by bettin5's avatar bettin5
Browse files

change schema:name and xslt:if/text

parent 1ab4f995
......@@ -78,17 +78,17 @@ Refer to comments in the code to understand the used algorithm.
</xsl:template>
<xsl:template match="@ref">
<xsl:if test=". != 'gnd:_'">
<xsl:if test=". != 'gnd:_' and ./parent::name/text() and ./parent::name/@type">
<doc>
<field name="name">
<xsl:value-of select="./parent::name/normalize-space()"/>
</field>
<field name ="doctype">
<xsl:value-of select="./parent::name/@type"/>
</field>
<field name="id">
<xsl:value-of select="."/>
</field>
<field name="entity_name">
<xsl:value-of select="./parent::name/normalize-space()"/>
</field>
<field name ="doctype">
<xsl:value-of select="./parent::name/@type"/>
</field>
<field name="id">
<xsl:value-of select="."/>
</field>
</doc>
</xsl:if>
</xsl:template>
......
......@@ -47,10 +47,10 @@
<field name="id" type="string" required="true"/>
<!-- 'article' or 'page' or 'literatur'-->
<field name="doctype" type="string" required="true" />
<field name="doctype" type="string" required="true"/>
<!-- for doctype 'entity' -->
<field name="name" type="string" multiValued="true"/>
<field name="entity_name" type="string" multiValued="true"/>
<!-- for doctype 'literature' -->
<field name="uri" type="string" multiValued="true"/>
......@@ -78,7 +78,7 @@
<field name="fulltext" type="text_de" multiValued="false" />
<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" /><!--TODO multivalue = "false"-->
<field name="title" type="text_de" multiValued="false" /><!-- maybe TODO multivalue = "false"-->
<field name="author" type="text_de" multiValued="false" />
<field name="recipient" type="text_de" multiValued="false" />
<field name="origin_place" type="text_de" multiValued="false" />
......
#Written by CorePropertiesLocator
#Thu Mar 05 12:12:58 UTC 2020
#Mon Mar 16 07:42:22 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
name=gfl
config=solrconfig.xml
#Written by CorePropertiesLocator
#Thu Mar 05 12:12:58 UTC 2020
#Mon Mar 16 07:42:22 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
name=gfloffline
config=solrconfig.xml
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