From: <pva...@us...> - 2009-05-06 07:59:12
|
Revision: 3610 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=3610&view=rev Author: pvalsecc Date: 2009-05-06 07:59:05 +0000 (Wed, 06 May 2009) Log Message: ----------- Reduced the list of possible stylsheet for import. Modified Paths: -------------- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-insert-form.xsl Added Paths: ----------- sandbox/geocat.ch/trunk/web/geonetwork/xsl/stylesheet-list.xsl Modified: sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl 2009-05-06 07:20:17 UTC (rev 3609) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl 2009-05-06 07:59:05 UTC (rev 3610) @@ -2,7 +2,8 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="main.xsl"/> - + <xsl:include href="stylesheet-list.xsl"/> + <xsl:template mode="script" match="/"> <script type="text/javascript" language="JavaScript"> @@ -101,15 +102,7 @@ <th class="padded"><xsl:value-of select="/root/gui/strings/styleSheet"/></th> <td class="padded"> <select class="content" name="styleSheet" id="styleSheet" size="1" onchange="updateSchema();"> - <option value="_none_"> - <xsl:value-of select="/root/gui/strings/none"/> - </option> - <xsl:for-each select="/root/gui/importStyleSheets/record"> - <xsl:sort select="name"></xsl:sort> - <option value="{id}"> - <xsl:value-of select="name"/> - </option> - </xsl:for-each> + <xsl:call-template name="stylesheet-list"/> </select> </td> </tr> Modified: sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-insert-form.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-insert-form.xsl 2009-05-06 07:20:17 UTC (rev 3609) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-insert-form.xsl 2009-05-06 07:59:05 UTC (rev 3610) @@ -2,6 +2,7 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="main.xsl"/> + <xsl:include href="stylesheet-list.xsl"/> <!-- ================================================================================ --> <!-- additional scripts --> @@ -285,15 +286,7 @@ <th class="padded"><xsl:value-of select="/root/gui/strings/styleSheet"/></th> <td class="padded"> <select class="content" id="styleSheet" name="styleSheet" size="1"> - <option value="_none_"> - <xsl:value-of select="/root/gui/strings/none"/> - </option> - <xsl:for-each select="/root/gui/importStyleSheets/record"> - <xsl:sort select="name"></xsl:sort> - <option value="{id}"> - <xsl:value-of select="name"/> - </option> - </xsl:for-each> + <xsl:call-template name="stylesheet-list"/> </select> </td> </tr> Added: sandbox/geocat.ch/trunk/web/geonetwork/xsl/stylesheet-list.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xsl/stylesheet-list.xsl (rev 0) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/stylesheet-list.xsl 2009-05-06 07:59:05 UTC (rev 3610) @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:template name="stylesheet-list"> + <option value="_none_"><xsl:value-of select="/root/gui/strings/none"/></option> + <option value="GM03_2-to-ISO19139CHE.xsl">GM03 v2+</option> + <option value="GM03-to-ISO19139CHE.xsl">GM03 v18</option> + + <!-- TODO: --> + <!--<option value="ISO19139-to-ISO19139CHE.xsl">ISO19119/ISO19139</option>--> + + <!-- Origs: --> + <!--<option value="ArcCatalog8_to_ISO19115.xsl">ArcCatalog8_to_ISO19115</option> + <option value="Convert_CSW-CITE_test_metadata.xsl">Convert_CSW-CITE_test_metadata</option> + <option value="ISO19115-to-ISO19139.xsl">ISO19115-to-ISO19139</option> + <option value="ISO19139CHE-to-GM03.xsl">ISO19139CHE-to-GM03</option> + <option value="ISO19139CHE-to-GM03small.xsl">ISO19139CHE-to-GM03small</option> + <option value="OGCSLD-to-ISO19139.xsl">OGCSLD-to-ISO19139</option> + <option value="OGCWMC-to-ISO19139.xsl">OGCWMC-to-ISO19139</option> + <option value="OGCWxSGetCapabilities-to-ISO19119_ISO19139.xsl">OGCWxSGetCapabilities-to-ISO19119_ISO19139</option>--> + +<!-- + <option value="_none_"> + <xsl:value-of select="/root/gui/strings/none"/> + </option> + <xsl:for-each select="/root/gui/importStyleSheets/record"> + <xsl:sort select="name"></xsl:sort> + <option value="{id}"> + <xsl:value-of select="name"/> + </option> + </xsl:for-each> +--> + </xsl:template> +</xsl:stylesheet> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |