Commit f6ac8e9a authored by bettin5's avatar bettin5
Browse files

arrays for image ids/urls

parent ec54c3e6
......@@ -239,15 +239,32 @@ Refer to comments in the code to understand the used algorithm.
<!--################### text/body ##########################-->
<xsl:template match="facsimile">
<!--xsl:template match="facsimile">
<xsl:for-each select="./graphic">
<field name="image_ids">
<xsl:value-of select="./graphic/@xml:id"/>
<xsl:value-of select="./@xml:id"/>
</field>
<field name="image_urls">
<xsl:value-of select="./graphic/@url"/>
<xsl:value-of select="./@url"/>
</field>
</xsl:for-each>
</xsl:template-->
<xsl:template match="facsimile">
<xsl:for-each select="./graphic/@xml:id">
<field name="image_ids">
<xsl:value-of select="."/>
</field>
</xsl:for-each>
<xsl:for-each select="./graphic/@url">
<field name="image_urls">
<xsl:value-of select="."/>
</field>
</xsl:for-each>
</xsl:template>
<xsl:template match="text">
<xsl:choose>
<xsl:when test="./@xml:id">
......
......@@ -47,7 +47,7 @@
<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 'literatur' -->
<field name="uri" type="string" multiValued="true"/>
......@@ -64,8 +64,8 @@
<field name="article_id" type="string" />
<field name="page_number" type="int" />
<field name="html_page" type="text_de" multiValued="false" />
<field name="image_ids" type="string" />
<field name="image_urls" type="string" />
<field name="image_ids" type="string" multiValued="true"/>
<field name="image_urls" type="string" multiValued="true"/>
<!-- for doctype 'article' -->
<field name="number_of_pages" type="int" />
......
#Written by CorePropertiesLocator
#Wed Mar 04 12:42:22 UTC 2020
#Wed Mar 04 15:04:19 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
......
#Written by CorePropertiesLocator
#Wed Mar 04 12:42:22 UTC 2020
#Wed Mar 04 15:04:19 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
......
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