From: <fxp...@us...> - 2009-04-09 07:56:27
|
Revision: 2914 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=2914&view=rev Author: fxprunayre Date: 2009-04-09 07:56:21 +0000 (Thu, 09 Apr 2009) Log Message: ----------- Added che:legislationInformation in view/edit mode. Modified Paths: -------------- sandbox/geocat.ch/trunk/web/geonetwork/loc/deu/xml/strings.xml sandbox/geocat.ch/trunk/web/geonetwork/loc/eng/xml/strings.xml sandbox/geocat.ch/trunk/web/geonetwork/loc/fra/xml/strings.xml sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/deu/codelists.xml sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/eng/codelists.xml sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/fra/codelists.xml sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139.che/loc/eng/codelists.xml sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-utils.xsl Modified: sandbox/geocat.ch/trunk/web/geonetwork/loc/deu/xml/strings.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/loc/deu/xml/strings.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/loc/deu/xml/strings.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -9,6 +9,7 @@ <doc>Dokumentation</doc> <about>Über geocat.ch</about> </nav> + <legislationInformation>Legislation info</legislationInformation> <mostPopular>Am populärsten</mostPopular> <associateService>Dienste-Metadaten verlinken</associateService> <associateDataset>Daten-Metadaten verlinken</associateDataset> Modified: sandbox/geocat.ch/trunk/web/geonetwork/loc/eng/xml/strings.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/loc/eng/xml/strings.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/loc/eng/xml/strings.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -9,6 +9,7 @@ <doc>Documentation</doc> <about>About geocat.ch</about> </nav> + <legislationInformation>Legislation info</legislationInformation> <mostPopular>Most popular</mostPopular> <extentBbox>Bounding box only</extentBbox> <extentBboxAndPolygon>Bounding box and bounding polygon</extentBboxAndPolygon> Modified: sandbox/geocat.ch/trunk/web/geonetwork/loc/fra/xml/strings.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/loc/fra/xml/strings.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/loc/fra/xml/strings.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -9,6 +9,7 @@ <doc>Documentation</doc> <about>Autour de geocat</about> </nav> + <legislationInformation>Information sur la législation</legislationInformation> <metadata.expired> <formTitle>Recherche les métadonnées non mises à jour</formTitle> <limit>Limite de dernière modification :</limit> Modified: sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/deu/codelists.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/deu/codelists.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/deu/codelists.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -2053,5 +2053,10 @@ <description></description> </entry> </codelist> -</codelists> - + <codelist name="gmd:Country"> + <entry> + <code>Switzerland</code> + <label>Switzerland</label> + </entry> + </codelist> +</codelists> \ No newline at end of file Modified: sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/eng/codelists.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/eng/codelists.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/eng/codelists.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -1908,4 +1908,10 @@ <label>loose</label> </entry> </codelist> -</codelists> + <codelist name="gmd:Country"> + <entry> + <code>Switzerland</code> + <label>Switzerland</label> + </entry> + </codelist> +</codelists> \ No newline at end of file Modified: sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/fra/codelists.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/fra/codelists.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139/loc/fra/codelists.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -1883,4 +1883,10 @@ <description></description> </entry> </codelist> -</codelists> + <codelist name="gmd:Country"> + <entry> + <code>Suisse</code> + <label>Suisse</label> + </entry> + </codelist> +</codelists> \ No newline at end of file Modified: sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139.che/loc/eng/codelists.xml =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139.che/loc/eng/codelists.xml 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/xml/schemas/iso19139.che/loc/eng/codelists.xml 2009-04-09 07:56:21 UTC (rev 2914) @@ -198,4 +198,4 @@ <label>OtherServices</label> </entry> </codelist> -</codelists> +</codelists> \ No newline at end of file Modified: sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-iso19139.che.xsl 2009-04-09 07:56:21 UTC (rev 2914) @@ -12,13 +12,224 @@ xmlns:geonet="http://www.fao.org/geonetwork" xmlns:xalan = "http://xml.apache.org/xalan"> + <!-- Profil for switzerland define a new node in root element + for legislation information (che:legislationInformation). + That's why we need to overhide 3 main templates: + * tab menu on the viewer/editor + * editor simple mode + * editor advanced mode (priority set to 100 in order + to be processed for che:CHE_MD_Metadata even if it has + a gco:type attribute.) + --> + <xsl:template name="iso19139.cheCompleteTab"> + <xsl:param name="tabLink"/> + + <xsl:call-template name="iso19139CompleteTab"> + <xsl:with-param name="tabLink" select="$tabLink"/> + </xsl:call-template> + + <xsl:call-template name="displayTab"> + <xsl:with-param name="tab" select="'legislationInformation'"/> + <xsl:with-param name="text" select="/root/gui/strings/legislationInformation"/> + <xsl:with-param name="indent" select="'   '"/> + <xsl:with-param name="tabLink" select="$tabLink"/> + </xsl:call-template> + + </xsl:template> + + <xsl:template name="iso19139.cheSimple"> + <xsl:param name="schema"/> + <xsl:param name="edit"/> + <xsl:param name="flat"/> + + <xsl:call-template name="iso19139Simple"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + <xsl:with-param name="flat" select="$currTab='simple'"/> + </xsl:call-template> + + <xsl:apply-templates mode="elementEP" + select="che:legislationInformation|geonet:child[string(@name)='legislationInformation']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + <xsl:with-param name="flat" select="$flat"/> + </xsl:apply-templates> + </xsl:template> + <!-- Maybe we could do better for this template. TODO --> + <xsl:template mode="iso19139" match="che:CHE_MD_Metadata" priority="100"> + <xsl:param name="schema"/> + <xsl:param name="edit"/> + <xsl:param name="embedded"/> + + <xsl:call-template name="toggle-visibility-edit"> + <xsl:with-param name="edit" select="$edit"/> + </xsl:call-template> + + <xsl:choose> + + <!-- metadata tab --> + <xsl:when test="$currTab='metadata'"> + + <!-- thumbnail --> + <tr> + <td class="padded" align="center" valign="middle" colspan="2"> + <xsl:variable name="md"> + <xsl:apply-templates mode="brief" select="."/> + </xsl:variable> + <xsl:variable name="metadata" select="xalan:nodeset($md)/*[1]"/> + <xsl:call-template name="thumbnail"> + <xsl:with-param name="metadata" select="$metadata"/> + </xsl:call-template> + </td> + </tr> + + <xsl:call-template name="iso19139Metadata"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:call-template> + </xsl:when> + + <!-- identification tab --> + <xsl:when test="$currTab='identification'"> + + <!-- thumbnail --> + <tr> + <td class="padded" align="center" valign="middle" colspan="2"> + <xsl:variable name="md"> + <xsl:apply-templates mode="brief" select="."/> + </xsl:variable> + <xsl:variable name="metadata" select="xalan:nodeset($md)/*[1]"/> + <xsl:call-template name="thumbnail"> + <xsl:with-param name="metadata" select="$metadata"/> + </xsl:call-template> + </td> + </tr> + <xsl:apply-templates mode="elementEP" + select="gmd:identificationInfo|geonet:child[string(@name)='identificationInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- maintenance tab --> + <xsl:when test="$currTab='maintenance'"> + <xsl:apply-templates mode="elementEP" + select="gmd:metadataMaintenance|geonet:child[string(@name)='metadataMaintenance']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- constraints tab --> + <xsl:when test="$currTab='constraints'"> + <xsl:apply-templates mode="elementEP" + select="gmd:metadataConstraints|geonet:child[string(@name)='metadataConstraints']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- spatial tab --> + <xsl:when test="$currTab='spatial'"> + <xsl:apply-templates mode="elementEP" + select="gmd:spatialRepresentationInfo|geonet:child[string(@name)='spatialRepresentationInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- refSys tab --> + <xsl:when test="$currTab='refSys'"> + <xsl:apply-templates mode="elementEP" + select="gmd:referenceSystemInfo|geonet:child[string(@name)='referenceSystemInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- distribution tab --> + <xsl:when test="$currTab='distribution'"> + <xsl:apply-templates mode="elementEP" + select="gmd:distributionInfo|geonet:child[string(@name)='distributionInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- embedded distribution tab --> + <xsl:when test="$currTab='distribution2'"> + <xsl:apply-templates mode="elementEP" + select="gmd:distributionInfo/gmd:MD_Distribution/gmd:transferOptions/gmd:MD_DigitalTransferOptions"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- dataQuality tab --> + <xsl:when test="$currTab='dataQuality'"> + <xsl:apply-templates mode="elementEP" + select="gmd:dataQualityInfo|geonet:child[string(@name)='dataQualityInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- appSchInfo tab --> + <xsl:when test="$currTab='appSchInfo'"> + <xsl:apply-templates mode="elementEP" + select="gmd:applicationSchemaInfo|geonet:child[string(@name)='applicationSchemaInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- porCatInfo tab --> + <xsl:when test="$currTab='porCatInfo'"> + <xsl:apply-templates mode="elementEP" + select="gmd:portrayalCatalogueInfo|geonet:child[string(@name)='portrayalCatalogueInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- contentInfo tab --> + <xsl:when test="$currTab='contentInfo'"> + <xsl:apply-templates mode="elementEP" + select="gmd:contentInfo|geonet:child[string(@name)='contentInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- extensionInfo tab --> + <xsl:when test="$currTab='extensionInfo'"> + <xsl:apply-templates mode="elementEP" + select="gmd:metadataExtensionInfo|geonet:child[string(@name)='metadataExtensionInfo']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + <!-- legislationInformation tab --> + <xsl:when test="$currTab='legislationInformation'"> + <xsl:apply-templates mode="elementEP" + select="che:legislationInformation|geonet:child[string(@name)='legislationInformation']"> + <xsl:with-param name="schema" select="$schema"/> + <xsl:with-param name="edit" select="$edit"/> + </xsl:apply-templates> + </xsl:when> + + </xsl:choose> + </xsl:template> + + <!-- ===================================================================== --> <!-- these elements should be boxed --> <!-- ===================================================================== --> - <xsl:template mode="iso19139" match="che:CHE_MD_ArchiveConcept|che:CHE_MD_HistoryConcept|che:CHE_CI_ResponsibleParty| + <xsl:template mode="iso19139" match="che:legislationInformation|che:CHE_MD_ArchiveConcept|che:CHE_MD_HistoryConcept|che:CHE_CI_ResponsibleParty| che:CHE_MD_DataIdentification|che:CHE_MD_FeatureCatalogueDescription|che:class|che:attribute"> <xsl:param name="schema"/> <xsl:param name="edit"/> Modified: sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-utils.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-utils.xsl 2009-04-09 07:56:05 UTC (rev 2913) +++ sandbox/geocat.ch/trunk/web/geonetwork/xsl/metadata-utils.xsl 2009-04-09 07:56:21 UTC (rev 2914) @@ -392,7 +392,14 @@ </xsl:call-template> </xsl:when> - <!-- ISO 19139 --> + <!-- ISO 19139.che --> + <xsl:when test="starts-with($schema,'iso19139.che')"> + <xsl:call-template name="iso19139.cheCompleteTab"> + <xsl:with-param name="tabLink" select="$tabLink"/> + </xsl:call-template> + </xsl:when> + + <!-- ISO 19139 --> <xsl:when test="starts-with($schema,'iso19139')"> <xsl:call-template name="iso19139CompleteTab"> <xsl:with-param name="tabLink" select="$tabLink"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |