Commit b9b1d7cd authored by bettin5's avatar bettin5

fix relatedItem/bibl/ref to relatedItem//ref

parent 8f49b867
......@@ -312,20 +312,22 @@ Refer to comments in the code to understand the used algorithm.
<xsl:text disable-output-escaping="yes">]]&gt;</xsl:text>
</field>
<xsl:apply-templates select=".//note[@type='com']" />
<xsl:for-each select="//listBibl/bibl/relatedItem">
<xsl:if test="@type='print'">
<xsl:for-each select="//listBibl/bibl">
<xsl:if test="relatedItem/@type='print'">
<field name="type_refs">
<xsl:value-of select="./@type"/>
<xsl:value-of select="./relatedItem/@type"/>
</field>
<field name="tartget">
<xsl:value-of select="./bibl/ref/@target"/>
<xsl:value-of select="substring-after(./relatedItem//ref/@target, 'http://fbl_bln/Lit/')" />
</field>
<field name="ref_refs">
<xsl:value-of select="./bibl/ref/normalize-space()"/>
</field>
<field name="bibl_refs">
<xsl:value-of select="./bibl/text()/normalize-space()"/>
</field>
<xsl:value-of select="./relatedItem//ref/normalize-space()"/>
</field>
<xsl:if test="./relatedItem/bibl/text() != ''">
<field name="bibl_refs">
<xsl:value-of select="./relatedItem/bibl/text()/normalize-space()"/>
</field>
</xsl:if>
<field name="literature_refs">
<xsl:value-of select="./normalize-space()"/>
</field>
......
......@@ -101,7 +101,6 @@
<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="literature_refs" type="string" multiValued="true"/>
<field name="all_header_fields" type="text_de" 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