You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/05/08 16:42:50 UTC
svn commit: r536207 - in /lenya/trunk/src/modules/collection: sitemap.xmap
xslt/collection2cinclude.xsl
Author: andreas
Date: Tue May 8 07:42:50 2007
New Revision: 536207
URL: http://svn.apache.org/viewvc?view=rev&rev=536207
Log:
Cleaned up internal URLs in collection module
Modified:
lenya/trunk/src/modules/collection/sitemap.xmap
lenya/trunk/src/modules/collection/xslt/collection2cinclude.xsl
Modified: lenya/trunk/src/modules/collection/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/collection/sitemap.xmap?view=diff&rev=536207&r1=536206&r2=536207
==============================================================================
--- lenya/trunk/src/modules/collection/sitemap.xmap (original)
+++ lenya/trunk/src/modules/collection/sitemap.xmap Tue May 8 07:42:50 2007
@@ -29,7 +29,7 @@
<map:generate type="sitetree-fragment">
<map:parameter name="areas" value="{page-envelope:area}"/>
<map:parameter name="area" value="{page-envelope:area}"/>
- <map:parameter name="path" value="{doc-info:{page-envelope:publication-id}:{page-envelope:area}:{1}:{page-envelope:document-language}:path}"/>
+ <map:parameter name="path" value="{doc-info:{page-envelope:publication-id}:{page-envelope:area}:{1}:{2}:path}"/>
<map:parameter name="initial" value="false"/>
<map:parameter name="mimetype" value=""/>
</map:generate>
@@ -39,13 +39,13 @@
<map:serialize type="xml"/>
</map:match>
- <!-- metadata-{uuid}.xml -->
- <map:match pattern="metadata-*.xml">
+ <!-- metadata/{uuid}/{language}.xml -->
+ <map:match pattern="metadata/*/*.xml">
<map:generate type="lenyaMetaData">
<map:parameter name="pubid" value="{page-envelope:publication-id}"/>
<map:parameter name="area" value="{page-envelope:area}"/>
<map:parameter name="uuid" value="{1}"/>
- <map:parameter name="lang" value="{page-envelope:document-language}"/>
+ <map:parameter name="lang" value="{2}"/>
</map:generate>
<map:serialize type="xml"/>
</map:match>
Modified: lenya/trunk/src/modules/collection/xslt/collection2cinclude.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/collection/xslt/collection2cinclude.xsl?view=diff&rev=536207&r1=536206&r2=536207
==============================================================================
--- lenya/trunk/src/modules/collection/xslt/collection2cinclude.xsl (original)
+++ lenya/trunk/src/modules/collection/xslt/collection2cinclude.xsl Tue May 8 07:42:50 2007
@@ -11,7 +11,7 @@
<xsl:template match="col:collection">
<xsl:copy>
<xsl:copy-of select="@*"/>
- <ci:include src="cocoon://modules/collection/metadata-{$uuid}.xml"/>
+ <ci:include src="cocoon://modules/collection/metadata/{$uuid}/{$language}.xml"/>
<xsl:apply-templates select="col:document"/>
</xsl:copy>
</xsl:template>
@@ -20,7 +20,7 @@
<xsl:template match="col:document">
<xsl:copy>
<xsl:copy-of select="@*"/>
- <ci:include src="cocoon://modules/collection/metadata-{@uuid}.xml"/>
+ <ci:include src="cocoon://modules/collection/metadata/{$uuid}/{$language}.xml"/>
<ci:include src="lenya-document:{@uuid}"/>
</xsl:copy>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org