#775: Uploaded Plugin Profile does not work
-----------------------------+----------------------------------------------
Reporter: heikki | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: blocker | Milestone: v2.7.0
Component: General | Version:
Keywords: plugin profiles |
-----------------------------+----------------------------------------------
I have a Plugin Profile that works fine if I manually put it in
web/geonetwork/xml/schemas before starting GeoNetwork.
But it doesn't work when you upload it:
* I made a zip file of it and uploaded that; it got unzipped in
web/geonetwork/schemaPlugins
* the profile was listed in the admin page, where I could successfully
load the templates from my profile
* going to New Metadata, the names of the templates of this profile are
not displayed (Ext GUI);
* selecting one and trying to create a metadata from it fails, because it
tries to load XSLTs from its base ISO19139 schema from the
web/geonetwork/schemaPlugins directory (where they aren't) instead of from
the web/geonetwork/xml/schemas directory:
{{{
Error at xsl:include on line 7 column 57 of update-fixed-info.xsl:
XTSE0165: java.io.FileNotFoundException:
/web/geonetwork/schemaPlugins/iso19139/convert/functions.xsl (The system
cannot find the path specified)
}}}
* schemaplugin-uri-catalog.xml *was* updated with lines like
{{{
<uri name="blanks/metadata-schema07.xsl"
uri="../xml/schemas/iso19139.myprofile/present/metadata-
iso19139.myprofile.xsl" />
<uri name="blanks/metadata-schema07-edit.xsl"
uri="../xml/schemas/iso19139.myprofile/present/metadata-iso19139
.myprofile-edit.xsl" />
}}}
* finally I tried manually moving the profile directory from
web/geonetwork/schemaPlugins to web/geonetwork/xml/schemas, and restart.
Now the home page doesn't show up anymore because it is looking for my
profile in web/geonetwork/schemaPlugins:
{{{
Error at xsl:include on line 12 column 52 of metadata-utils.xsl:
XTSE0165: java.io.FileNotFoundException:
/web/geonetwork/schemaPlugins/iso19139.myprofile/present/metadata-
iso19139.myprofile.xsl (The system cannot find the path specified)
}}}
So to summarize, it seems there is some confusion when a Plugin Profile is
uploaded as to whether it is or should be in web/geonetwork/xml/schemas or
in web/geonetwork/schemaPlugins.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/775>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.