Hi Steffen
For 2.8.x and trunk at least, you can check about these files/classes to change:
-
xml/csw/capabilities.xml, xml/csw/capabilities-inspire.xml: define your outputschema
-
org.fao.geonet.csw.common.OutputSchema: modify parse method to support your output schema
-
org.fao.geonet.kernel.csw.services.getrecords.SearchController: See applyElementSetName method
if (outputSchema == OutputSchema.OGC_CORE) {
prefix = “ogc”;
}
else if (outputSchema == OutputSchema.ISO_PROFILE) {
prefix = “iso”;
}
else if (outputSchema == OutputSchema.YOUROUTPUTSCHEMA) {
prefix = “XX”; // the value you want to use as a prefix
}
you need to create also in schema_plugins/YOURPROFILE/present/csw create the files for brief, full and summary representations: XX-brief.xsl, XX-full.xsl and XX-summary.xsl (XX prefix should be the same value as in previous java code)
Hopefully this should be improved in plugin profiles to avoid java code changes in the future when adding a new outputschema.
Regards,
Jose García
On Tue, Nov 13, 2012 at 11:25 AM, user_osgeo <steffen.schwarz85@anonymised.com275…> wrote:
Hello,
i have a question regarding the outputSchema when sending a getRecords
request in Geonetwork CSW Demo Requests.
There are already defined certain outputSchemas like "csw-IsoRecord and this
is working great. But now i would like to include some more outputSchemas,
which are defined by myself. if i understand it correctly, there is already
a placeholder called outputSchema:own for this case.
But there is the problem. How do I implement such a own outputSchema in
GeoNetwork. Unfortunately, i didn’t find an instruction or a how to guide to
this case.
Can someone help me with this problem. Thanks in advance.
regards
–
View this message in context: http://osgeo-org.1560.n6.nabble.com/CSW-Request-getRecords-define-own-outputSchema-tp5015911.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
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