I’m trying to follow your suggestions to develop my custom XSLTs. Actually, they are the same ones already available by default in GeoNetwork, I’m just adding static information for abstract, lineage, keywords etc.
However, in our project we have about 10 data themes, out of which one has different those static info. Therefore I need to develop a sort of “switch” main xslt, which for WMS capabilities harvesting is the file: OGCWMSGetCapabilitiesLayer-to-19139.xsl for dataset metadata generation, is that correct?
I tried to apply a condition based on the preposition I’ve defined in each WMS endpoint I want harvest, e.g. LCR, and base on this apply the template of a specific mode:
And then in my LCR template (OGCWxSGetCapabilitiesLayer-to-19139.xsl) I added the mode “isLCRdataset” to each xsl:template definition.
However GeoNetwork does not accept this way, and creates on one metadata record for the service itself (using OGCWxSGetCapabilities-to-19119.xsl) and ignores my custom templates for datasets.
You mentioned before, you have developed already custom XSL templates and integrated them into GeoNetowork, did you also have to deal with several templates depending on the data theme you create metadata for?
···
On 31 October 2014 08:34, Jose Garcia <jose.garcia@anonymised.com> wrote:
Hi Tomas
Using the xsl of GeoNetwork is not that easy in XmlSpy as uses some saxon extensions.
What I do usually is to develop the xslt to process the metadata in XmlSpy or similar tool (should not be required any GeoNetwork xslt for this) and after add it to the folder where Geonetwork has the processes.
Regards,
Jose García
–
On Thu, Oct 30, 2014 at 9:05 PM, Tomas Kliment <tomas.kliment@anonymised.com> wrote:
Hello Jose,
It seems we decided to try both ways of implementing our requirement.
I’ve downloaded all the relevant XSL templates to my local XML Spy editor in order to run the transformation locally.
However, I cannot geet it working.
What is the XSLT version and processor used in the GeoNetwork project?
Thanks a lot,
Tomas
–
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net
On 20 October 2014 08:20, Jose Garcia <jose.garcia@anonymised.com> wrote:
Hi Tomas
The xslt process is not supported in this harvester, but can be extended to support it. The UI indeed has the field, but is hidden (https://github.com/geonetwork/core-geonetwork/blob/2.10.x/web/src/main/webapp/xsl/harvesting/ogcwxs/ogcwxs.xsl#L160). The java code would require to be extended to support it.
Other option is that you modify the xslt that GeoNetwork uses to transforms from WxS to ISO19139, to customise it with your custom extensions (see in the folder https://github.com/geonetwork/core-geonetwork/tree/2.10.x/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/convert/OGCWxSGetCapabilitiesto19119).
Regards,
Jose García
–
[
](http://about.me/klimeto)
Contact information:
Permanent address:
Juzna 4, 04801 Roznava
Slovakia
Current postal address:
Via Al Moro 1,
21038 Arolo (VA), Italy
Tel: +421 907 232019
Tel: +39 389 4955 954
e-mail: tomas.kliment@anonymised.com
URL: http://klimeto.com/
Work:
Grandholder
The National Research Council of Italy
Institute for the Dynamics of Environmental Processes (CNR-IDPA)
Via Mario Bianco, 9
20131 Milan, Italy
e-mail: tomas.kliment@anonymised.com5…
Office address:
Institute of Electromagnetic Sensing of the Environment (CNR-IREA)
Via Bassini, 15
20133 Milan, Italy
On Fri, Oct 17, 2014 at 9:39 PM, Tomas Kliment <tomas.kliment@anonymised.com> wrote:
Dear GeoNetwork developers,
I was wondering if there is a way to define a custom XSLT for the harvesting tasks of OGC WxS type, as is possible to set it for the Local Folder harvesting task?
In my project, I’ve got a workflow where the data producers provide the datasets in a specific folder, which I afterwards use to publish data as WMS Layers using GeoServer. The WMS endpoint exposed by GeoServer is then harvested by GeoNetwork to provide documentation, and searching capabilities. However, as you know there is not much metadata that can be harvested from the WMS GetCapabilities XML, therefore I’d like to extend the metadata with a custom XSLT I want to develop and execute them during the harvesting process.
Is there a config way to ensure this, or it has to be extended in the code?
Thanks a lot for your answers and support,
Wish you a nice weekend,
Tomas
–
[
](http://about.me/klimeto)
Contact information:
Permanent address:
Juzna 4, 04801 Roznava
Slovakia
Current postal address:
Via Al Moro 1,
21038 Arolo (VA), Italy
Tel: +421 907 232019
Tel: +39 389 4955 954
e-mail: tomas.kliment@anonymised.com
URL: http://klimeto.com/
Work:
Grandholder
The National Research Council of Italy
Institute for the Dynamics of Environmental Processes (CNR-IDPA)
Via Mario Bianco, 9
20131 Milan, Italy
Office address:
Institute of Electromagnetic Sensing of the Environment (CNR-IREA)
Via Bassini, 15
20133 Milan, Italy
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
–
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net
[
](http://about.me/klimeto)
Contact information:
Permanent address:
Juzna 4, 04801 Roznava
Slovakia
Current postal address:
Via Al Moro 1,
21038 Arolo (VA), Italy
Tel: +421 907 232019
Tel: +39 389 4955 954
e-mail: tomas.kliment@anonymised.com
URL: http://klimeto.com/
Work:
Grandholder
The National Research Council of Italy
Institute for the Dynamics of Environmental Processes (CNR-IDPA)
Via Mario Bianco, 9
20131 Milan, Italy
e-mail: tomas.kliment@anonymised.com
Office address:
Institute of Electromagnetic Sensing of the Environment (CNR-IREA)
Via Bassini, 15
20133 Milan, Italy