#497: Context is wrong when adding an element in editor
--------------------------+-------------------------------------------------
Reporter: justinrowles | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: minor | Milestone: v2.6.5
Component: General | Version: v2.6.3
Keywords: |
--------------------------+-------------------------------------------------
When an element is added, an xml fragment is created which looks like:
<root>
<myelement/>
</root>
But it will actually be added in the context of its parent, so it should
really be:
<docroot>
<grandparent>
<parent>
<myelement/>
</parent>
</grandparent>
</docroot>
In effect, although we know the context should be
/docroot/grandparent/parent/ we provide one with just /root/
This means that the lookup for labelling and help etc can return the wrong
content, because the context sensitive lookup will not work and the lookup
will failover to any non-context sensitive entry.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/497>
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.