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

Generate graphics metadata in the right place.

refs #14155
parent 855c25ea
......@@ -12,8 +12,7 @@
<xsl:template name="generate-graphic-meta">
<xsl:param name="header" tunnel="yes"/>
<xsl:param name="path"></xsl:param>
<xsl:result-document href="{concat($path, '/', 'graphics/', @url)}"
indent="yes">
<xsl:result-document href="{$path}/../{@url}.meta" indent="yes">
<tns:object>
<tns:generic>
<tns:provided>
......
......@@ -99,14 +99,13 @@
<xsl:variable name="path" select="tg:generate-Path($author, 'collection')"/>
<xsl:call-template name="mapping-table"/>
<!-- ************************* generate the graphic-meta files for the whole enzyklo *************************-->
<xsl:for-each-group select=".//tei:graphics" group-by="@url">
<!-- <xsl:variable name="title" select=".[tokenize(head, '\.|,|;')][1]"/>-->
<xsl:for-each-group select=".//tei:graphic" group-by="@url">
<!-- <xsl:variable name="title" select=".[tokenize(head, '\.|,|;')][1]"/>-->
<xsl:if test="current-grouping-key() ne ''">
<xsl:call-template name="generate-graphic-meta">
<xsl:with-param name="path"
select="concat($path, '/', 'graphics/', current-grouping-key(), '.meta')"/>
<xsl:with-param name="path" select="$path"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each-group>
......
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