Commit f7ab5880 authored by thorsten.vitt's avatar thorsten.vitt
Browse files

Fixed aggregation of graphics

refs #14155
parent d322ae64
......@@ -119,12 +119,9 @@
<xsl:attribute name="rdf:resource" select="concat($rel-path, '.item.xml')"/>
</ore:aggregates>
<!-- aggregate the graphics of the current-TEI-Element -->
<xsl:for-each-group select=".//graphic" group-by="@url">
<xsl:for-each-group select=".//tei:graphic" group-by="@url">
<xsl:if test="current-grouping-key() ne ''">
<ore:aggregates>
<xsl:attribute name="rdf:resource"
select="concat('../', 'graphics/', current-grouping-key())"/>
</ore:aggregates>
<ore:aggregates rdf:resource="{current-grouping-key()}"/>
</xsl:if>
</xsl:for-each-group>
</xsl:template>
......
......@@ -61,7 +61,7 @@
<rdf:RDF>
<rdf:Description>
<xsl:choose>
<xsl:when test="self::tei:TEI[.//graphic]">
<xsl:when test="self::tei:TEI[.//tei:graphic]">
<xsl:copy-of select="$aggr"/>
</xsl:when>
<xsl:when test="self::tei:TEI">
......
Supports Markdown
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