[GeoNetwork-devel] metadata-tab and schema-plugin

Hi all,

creating a new schema-plugin (to be used in branch 2.10.x), I noticed that a
part of the GUI rendering decision is made inside the file config-gui.xml, in
the element <metadata-tab>
e.g.
  <inspire flat="true">
    <ancestorException schema="iso19139"
        for="EX_TemporalExtent,CI_Date,spatialResolution"/>
    <exception schema="iso19139"
        for="result,resourceConstraints,pointOfContact,hierarchyLevel,couplingType"
  </inspire>

Please note that the schema name, the tab name and the element names are all
related to the schema domain. It means that a generic schema could not care
about a tab named "inspire", nor for an element called "pointOfContact", so
this info may not be general enough to be put inside config-gui.

Furthermore, if a plugged-in schema needs to define a similar behaviour, the
config-gui file needs to be modified. It could be done via a file override, but
this should be defined externally from the schema-plugin, limiting the full
"pluggability", i.e. having a full schema definition inside the schema-plugin
subdir.

Any idea about this issue?

   Cheers,
   Emanuele

--

== *GeoSolutions will be closed for seasonal holidays from 23/12/2013 to
06/01/2014* ==

Ing. Emanuele Tajariol
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 380 2116282

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Hi Emanuele,

···

2013/12/19 Emanuele Tajariol <etj@anonymised.com>

Hi all,

creating a new schema-plugin (to be used in branch 2.10.x), I noticed that a
part of the GUI rendering decision is made inside the file config-gui.xml, in
the element
e.g.


<exception schema=“iso19139”
for=“result,resourceConstraints,pointOfContact,hierarchyLevel,couplingType”

Please note that the schema name, the tab name and the element names are all
related to the schema domain. It means that a generic schema could not care
about a tab named “inspire”, nor for an element called “pointOfContact”, so
this info may not be general enough to be put inside config-gui.

Furthermore, if a plugged-in schema needs to define a similar behaviour, the
config-gui file needs to be modified. It could be done via a file override, but
this should be defined externally from the schema-plugin, limiting the full
“pluggability”, i.e. having a full schema definition inside the schema-plugin
subdir.

You’re right. So far, when I had to adapt that config to a plugin, I’ve been using overrides. This config is also depending on the node, some user prefer to have more or less element in default view.
For the editor refactoring work, a new config file was introduced [1], that’s probably a good place for such schema configuration but not in 2.10 branch.
There is also some schema config parameter like the default tab to open in the widget app [2]. For those kind of parameters, I was more thinking moving this config to the DB so catalog admin could easily configure that.

HTH.

Francois

[1] https://github.com/geonetwork/core-geonetwork/blob/refactor_editorui/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/config-editor.xml
[2] https://github.com/geonetwork/core-geonetwork/blob/develop/web-client/src/main/resources/apps/search/js/Settings.js#L39

Any idea about this issue?

Cheers,
Emanuele

== GeoSolutions will be closed for seasonal holidays from 23/12/2013 to
06/01/2014
==

Ing. Emanuele Tajariol
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 380 2116282

http://www.geo-solutions.it
http://twitter.com/geosolutions_it



Rapidly troubleshoot problems before they affect your business. Most IT
organizations don’t have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk


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