Commit 88351bec authored by ByronCinNZ's avatar ByronCinNZ

Fix issue related to 1- Add images side panel in Edit mode 2- Fixed the java...

Fix issue related to 1- Add images side panel in Edit mode 2- Fixed the java bean that was causing failures on edit
parent ff043b34
/*
* Copyright (C) 2001-2016 Food and Agriculture Organization of the
* United Nations (FAO-UN), United Nations World Food Programme (WFP)
* and United Nations Environment Programme (UNEP)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
* Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
* Rome - Italy. email: geonetwork@osgeo.org
*/
package org.fao.geonet.schema.iso19139;
import org.jdom.Namespace;
/**
* Namespaces for iso19139 metadata standard.
* <p/>
* Created by francois on 3/26/14.
*/
public class ISO19139Namespaces {
public static final Namespace GCO =
Namespace.getNamespace("gco", "http://www.isotc211.org/2005/gco");
public static final Namespace SRV =
Namespace.getNamespace("srv", "http://www.isotc211.org/2005/srv");
public static final Namespace GMD =
Namespace.getNamespace("gmd", "http://www.isotc211.org/2005/gmd");
public static final Namespace GML =
Namespace.getNamespace("gml", "http://www.opengis.net/gml");
public static final Namespace XSI =
Namespace.getNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
public static final Namespace GTS =
Namespace.getNamespace("gts", "http://www.isotc211.org/2005/gts");
public static final Namespace GMX =
Namespace.getNamespace("gmx", "http://www.isotc211.org/2005/gmx");
public static final Namespace XLINK =
Namespace.getNamespace("xlink", "http://www.w3.org/1999/xlink");
}
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0" xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gml="http://www.opengis.net/gml"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:geonet="http://www.fao.org/geonetwork"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:skos="http://www.w3.org/2004/02/skos/core#">
<xsl:import href="../iso19139/index-fields/default.xsl"/>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<xsl:template mode="index" match="gmd:MD_Keywords">
<xsl:variable name="thesaurusId" select="normalize-space(gmd:thesaurusName/*/gmd:identifier/*/gmd:code[starts-with(string(gmx:Anchor),'geonetwork.thesaurus')])"/>
<xsl:if test="$thesaurusId!=''">
<Field name="thesaurusName" string="{string($thesaurusId)}" store="true" index="true"/>
</xsl:if>
<!-- index keyword codes under lucene index field with name same
as thesaurus that contains the keyword codes -->
<xsl:for-each select="gmd:keyword/*">
<xsl:if test="name()='gmx:Anchor' and $thesaurusId!=''">
<!-- expecting something like
<gmx:Anchor
xlink:href="http://localhost:8080/geonetwork/srv/en/xml.keyword.get?thesaurus=register.theme.urn:marine.csiro.au:marlin:keywords:standardDataType&id=urn:marine.csiro.au:marlin:keywords:standardDataTypes:concept:3510">CMAR Vessel Data: ADCP</gmx:Anchor>
-->
<xsl:variable name="keywordId">
<xsl:for-each select="tokenize(@xlink:href,'&amp;')">
<xsl:if test="starts-with(string(.),'id=')">
<xsl:value-of select="substring-after(string(.),'id=')"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:if test="normalize-space($keywordId)!=''">
<Field name="{$thesaurusId}" string="{replace($keywordId,'%23','#')}" store="true" index="true"/>
</xsl:if>
</xsl:if>
</xsl:for-each>
<xsl:apply-templates mode="index" select="*"/>
</xsl:template>
</xsl:stylesheet>
......@@ -203,6 +203,28 @@
<!-- View configuration -->
<views>
<view name="default">
<sidePanel>
<!-- General online source manager
<directive data-gn-onlinesrc-list=""/>
-->
<!-- Simple overview manager + online source manger for other types
Limit the max number of overviews with data-number-of-overviews="3" attribute.
In the full view, editor can access and manage the file store and
thumbnail name and description not supported by the overview manager.
-->
<directive data-gn-overview-manager=""/>
<directive data-gn-onlinesrc-list=""
data-types="onlinesrc|parent|dataset|service|source|sibling|associated|fcats"/>
<directive gn-geo-publisher=""
data-ng-if="gnCurrentEdit.geoPublisherConfig"
data-config="{{gnCurrentEdit.geoPublisherConfig}}"
data-lang="lang"/>
<directive data-gn-validation-report=""/>
<directive data-gn-suggestion-list=""/>
<directive data-gn-need-help="user-guide/describing-information/creating-metadata.html"/>
</sidePanel>
<tab id="default" default="true" mode="flat">
<section name="gmd:identificationInfo">
<field xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../iso19139/present/csw/own-full.xsl"/>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:dc ="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:ows="http://www.opengis.net/ows"
xmlns:geonet="http://www.fao.org/geonetwork">
<xsl:param name="displayInfo"/>
<!-- ============================================================================= -->
<!--
<xsl:template match="gmd:MD_Metadata">
<csw:IsoRecord>
<xsl:apply-templates select="*"/>
</csw:IsoRecord>
</xsl:template>
-->
<!-- ============================================================================= -->
<xsl:template match="@*|node()[name(.)!='geonet:info']">
<xsl:variable name="info" select="geonet:info"/>
<xsl:copy>
<xsl:apply-templates select="@*|node()[name(.)!='geonet:info']"/>
<!-- GeoNetwork elements added when resultType is equal to results_with_summary -->
<xsl:if test="$displayInfo = 'true'">
<xsl:copy-of select="$info"/>
</xsl:if>
</xsl:copy>
</xsl:template>
<!-- ============================================================================= -->
</xsl:stylesheet>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2001-2016 Food and Agriculture Organization of the
~ United Nations (FAO-UN), United Nations World Food Programme (WFP)
~ and United Nations Environment Programme (UNEP)
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or (at
~ your option) any later version.
~
~ This program is distributed in the hope that it will be useful, but
~ WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program; if not, write to the Free Software
~ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
~
~ Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
~ Rome - Italy. email: geonetwork@osgeo.org
-->
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" >
<bean id="iso19139.anzlicSchemaPlugin"
class="org.fao.geonet.schema.iso19139.ISO19139SchemaPlugin">
<property name="elementsToProcess">
<util:list value-type="java.lang.String">
<value>gco:CharacterString</value>
<value>gmx:Anchor</value>
<value>gmd:featureTypes</value>
</util:list>
</property>
</bean>
<bean id="iso19139SchemaPlugin"
class="org.fao.geonet.schema.iso19139.ISO19139SchemaPlugin"/>
</beans>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment