Commit 1ab4f995 authored by bettin5's avatar bettin5
Browse files

field for entitys-> name,id,type

parent 76001dcc
......@@ -71,11 +71,28 @@ Refer to comments in the code to understand the used algorithm.
</xsl:for-each>
<xsl:apply-templates select="facsimile" />
<xsl:apply-templates select="//body/listBibl" />
</doc>
<xsl:apply-templates select="//@ref" />
</doc>
<xsl:apply-templates select="text" mode="page_splitting" />
</add>
</xsl:template>
<!--TODO felder umbennenn so das sie nicht in der suche sind -->
<xsl:template match="@ref">
<xsl:if test=". != 'gnd:_'">
<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>
</doc>
</xsl:if>
</xsl:template>
<xsl:template match="listBibl">
<xsl:for-each select="bibl">
<doc>
......@@ -239,16 +256,6 @@ Refer to comments in the code to understand the used algorithm.
<!--################### text/body ##########################-->
<!--xsl:template match="facsimile">
<xsl:for-each select="./graphic">
<field name="image_ids">
<xsl:value-of select="./@xml:id"/>
</field>
<field name="image_urls">
<xsl:value-of select="./@url"/>
</field>
</xsl:for-each>
</xsl:template-->
<xsl:template match="facsimile">
<xsl:for-each select="./graphic/@xml:id">
......
......@@ -49,6 +49,9 @@
<!-- 'article' or 'page' or 'literatur'-->
<field name="doctype" type="string" required="true" />
<!-- for doctype 'entity' -->
<field name="name" type="string" multiValued="true"/>
<!-- for doctype 'literature' -->
<field name="uri" type="string" multiValued="true"/>
<field name="literature_author" type="string" multiValued="true"/>
......
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