From: <fxp...@us...> - 2009-05-04 10:27:05
|
Revision: 3526 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=3526&view=rev Author: fxprunayre Date: 2009-05-04 10:27:01 +0000 (Mon, 04 May 2009) Log Message: ----------- Hide category option and set default value to none on import. Modified Paths: -------------- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-insert-form.xsl Modified: sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl 2009-05-04 10:18:26 UTC (rev 3525) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-batchimport.xsl 2009-05-04 10:27:01 UTC (rev 3526) @@ -134,26 +134,13 @@ </select> </td> </tr> - <!-- categories --> - - <tr> - <th class="padded"><xsl:value-of select="/root/gui/strings/category"/></th> + <tr id="gn.categories"> + <th class="padded"></th> <td class="padded"> - <select class="content" name="category" size="1"> - <option value="_none_"> - <xsl:value-of select="/root/gui/strings/none"/> - </option> - <xsl:for-each select="/root/gui/categories/record"> - <xsl:sort select="label/child::*[name() = $lang]" order="ascending"/> - <option value="{id}"> - <xsl:value-of select="label/child::*[name() = $lang]"/> - </option> - </xsl:for-each> - </select> + <input type="hidden" name="category" value="_none_"/> </td> </tr> - </table> </form> </xsl:template> 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-04 10:18:26 UTC (rev 3525) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-insert-form.xsl 2009-05-04 10:27:01 UTC (rev 3526) @@ -323,32 +323,12 @@ </tr> <!-- categories --> -<!-- Ticket #13917 - <xsl:choose> - <xsl:when test="/root/gui/env/site/theme='geosource'"> - <input type="hidden" name="category" value="_none_"/> - </xsl:when> - <xsl:otherwise> - - <tr id="gn.categories"> - <th class="padded"><xsl:value-of select="/root/gui/strings/category"/></th> - <td class="padded"> - <select class="content" name="category" size="1"> - <option value="_none_"> - <xsl:value-of select="/root/gui/strings/none"/> - </option> - <xsl:for-each select="/root/gui/categories/record"> - <xsl:sort select="label/child::*[name() = $lang]" order="ascending"/> - <option value="{id}"> - <xsl:value-of select="label/child::*[name() = $lang]"/> - </option> - </xsl:for-each> - </select> - </td> - </tr> - </xsl:otherwise> - </xsl:choose> ---> + <tr id="gn.categories"> + <th class="padded"></th> + <td class="padded"> + <input type="hidden" name="category" value="_none_"/> + </td> + </tr> </table> <iframe id="upFrame" name="upFrame" width="200p" height="100p" onload="javascript:doFileUpload();" style="display:none;" /> <table id="gn.result" style="display:none;"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |