You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/01/31 05:22:35 UTC
svn commit: r149216 - in lenya/branches/BRANCH_1_2_X/src/webapp/lenya:
info.xmap xslt/info/info.xsl
Author: gregor
Date: Sun Jan 30 20:22:33 2005
New Revision: 149216
URL: http://svn.apache.org/viewcvs?view=rev&rev=149216
Log:
Fixed site area image preview to work for all URLs
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/info.xmap
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/info.xmap
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/info.xmap?view=diff&r1=149215&r2=149216
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/info.xmap (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/info.xmap Sun Jan 30 20:22:33 2005
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!-- $Id: info.xmap,v 1.59 2004/06/29 16:11:49 andreas Exp $ -->
+<!-- $Id$ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
@@ -134,6 +134,8 @@
<map:transform src="xslt/info/info.xsl">
<map:parameter name="tab" value="{2}"/>
<map:parameter name="area" value="{1}"/>
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ <map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
<map:parameter name="documentid" value="{page-envelope:document-id}"/>
<map:parameter name="languageexists" value="true"/>
</map:transform>
@@ -146,6 +148,8 @@
<map:transform src="xslt/info/info.xsl">
<map:parameter name="tab" value="{2}"/>
<map:parameter name="area" value="{1}"/>
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ <map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
<map:parameter name="documentid" value="{page-envelope:document-id}"/>
<map:parameter name="languageexists" value="true"/>
</map:transform>
@@ -160,6 +164,8 @@
<map:transform src="xslt/info/info.xsl">
<map:parameter name="tab" value="{../2}"/>
<map:parameter name="area" value="{../1}"/>
+ <map:parameter name="contextprefix" value="{request:contextPath}"/>
+ <map:parameter name="publicationid" value="{page-envelope:publication-id}"/>
<map:parameter name="documentid" value="{page-envelope:document-id}"/>
<map:parameter name="languageexists" value="true"/>
</map:transform>
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl?view=diff&r1=149215&r2=149216
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/xslt/info/info.xsl Sun Jan 30 20:22:33 2005
@@ -31,6 +31,8 @@
<xsl:param name="tab"/>
<xsl:param name="area"/>
+<xsl:param name="contextprefix"/>
+<xsl:param name="publicationid"/>
<xsl:param name="documentid"/>
<xsl:param name="languageexists"/>
@@ -198,7 +200,7 @@
<td><xsl:value-of select="dc:source"/></td>
<td>
<xsl:if test="dc:format = 'image/jpeg' or dc:format = 'image/gif' or dc:format = 'image/png'">
- <img src="../authoring/{../lenya-info:documentnodeid}/{dc:source}" style="height: 32px; vertical-align: middle;"/> 
+ <img src="{$contextprefix}/{$publicationid}/authoring/{$documentid}/{dc:source}" style="height: 32px; vertical-align: middle;"/> 
</xsl:if>
</td>
<td><xsl:value-of select="dc:title"/></td>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org