SF.net SVN: geonetwork:[5440] sandbox/geocat.ch/trunk/web/geonetwork/xsl/ metadata-iso19139.che.xsl

1 message Options
Embed this post
Permalink
jesseeichar

SF.net SVN: geonetwork:[5440] sandbox/geocat.ch/trunk/web/geonetwork/xsl/ metadata-iso19139.che.xsl

Reply Threaded More More options
Print post
Permalink
Revision: 5440
          http://geonetwork.svn.sourceforge.net/geonetwork/?rev=5440&view=rev
Author:   jesseeichar
Date:     2009-11-04 15:22:50 +0000 (Wed, 04 Nov 2009)

Log Message:
-----------
gmd:URL now displayed
Part of Bug 16374

Modified Paths:
--------------
    sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl

Modified: sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl
===================================================================
--- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl 2009-11-04 13:30:10 UTC (rev 5439)
+++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl 2009-11-04 15:22:50 UTC (rev 5440)
@@ -267,14 +267,26 @@
             </xsl:otherwise>
             </xsl:choose>
         </xsl:variable>
-        <xsl:call-template name="iso19139String">
-            <xsl:with-param name="schema" select="$schema" />
-            <xsl:with-param name="edit" select="$edit" />
-            <xsl:with-param name="langId" select="$langId" />
-            <xsl:with-param name="widget" select="$widget" />
-            <xsl:with-param name="rows" select="$rows" />
-            <xsl:with-param name="validator" select="$validator" />
-        </xsl:call-template>
+        <xsl:choose>
+            <xsl:when test="edit=true()">
+                <xsl:call-template name="iso19139String">
+                    <xsl:with-param name="schema" select="$schema" />
+                    <xsl:with-param name="edit" select="$edit" />
+                    <xsl:with-param name="langId" select="$langId" />
+                    <xsl:with-param name="widget" select="$widget" />
+                    <xsl:with-param name="rows" select="$rows" />
+                    <xsl:with-param name="validator" select="$validator" />
+                </xsl:call-template>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:call-template name="cheString">
+                    <xsl:with-param name="schema" select="$schema" />
+                    <xsl:with-param name="edit" select="$edit" />
+                    <xsl:with-param name="langId" select="$langId" />
+                    <xsl:with-param name="rows" select="$rows" />
+                </xsl:call-template>
+            </xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
 
 
@@ -369,9 +381,12 @@
                         <xsl:when test="(.//che:LocalisedURL)[@locale=$defaultLang]" >
                             <xsl:value-of select=".//che:LocalisedURL[@locale=$defaultLang]" />
                         </xsl:when>
+                        <xsl:when test="che:LocalisedURL" >
+                            <xsl:value-of select=".//che:LocalisedURL[@locale=$defaultLang]" />
+                        </xsl:when>
                         
                         <xsl:otherwise>
-                         <xsl:value-of select="che:LocalisedURL" />
+                         <xsl:value-of select="gmd:URL" />
                         </xsl:otherwise>
                     </xsl:choose>
                 </xsl:when>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-commit mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-commit