[GeoNetwork-devel] New metadata editor and custom codelists

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

Regards,
Jose García


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

Hi Jose,

···

2014-03-13 15:55 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com…437…>:

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

You probably have 2 options:

  1. override the codelist template to do something specific for your schema
    https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl#L262

  2. modify the getCodeListValues function.

Francois

Regards,
Jose García


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


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


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

Hi Francois

I see that is invoked the md.element.info to get the codelist values, but it sends the schema to iso19139. In SchemaManagerService:

var info = config.split(‘|’),
requestBody = ‘<codelist schema="’ + info[0] +

For some reason the schema is identified wrongly, but not sure yet from where comes config stuff, trying to get into the details of the developments.

Regards,
Jose García

···

On Fri, Mar 14, 2014 at 9:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jose,


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

2014-03-13 15:55 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

You probably have 2 options:

  1. override the codelist template to do something specific for your schema
    https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl#L262

  2. modify the getCodeListValues function.

Francois

Regards,
Jose García


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


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


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

Hi

Sorry, just checking a bit more the code, seem this can be the problem. In https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/components/edit/directoryentryselector/DirectoryEntrySelector.js#L124:

// TODO: Schema should be a parameter
gnSchemaManagerService
.getCodelist(‘iso19139|gmd:CI_RoleCode’)

Regards,
Jose García

···

On Fri, Mar 14, 2014 at 10:03 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Francois

I see that is invoked the md.element.info to get the codelist values, but it sends the schema to iso19139. In SchemaManagerService:

var info = config.split(‘|’),
requestBody = ‘<codelist schema="’ + info[0] +

For some reason the schema is identified wrongly, but not sure yet from where comes config stuff, trying to get into the details of the developments.

Regards,
Jose García


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 Fri, Mar 14, 2014 at 9:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jose,


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

2014-03-13 15:55 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

You probably have 2 options:

  1. override the codelist template to do something specific for your schema
    https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl#L262

  2. modify the getCodeListValues function.

Francois

Regards,
Jose García


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


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


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

Maybe we should add the schema in gnCurrentEdit (which contains info about current metadata)
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/js/edit/EditorController.js#L164

and use it here.

Checking getCodelist, it also need updates on the protocolCombo directive here https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/components/search/formfields/FormFieldsDirective.js#L40 for better profile support.

Francois

···

2014-03-14 10:06 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Sorry, just checking a bit more the code, seem this can be the problem. In https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/components/edit/directoryentryselector/DirectoryEntrySelector.js#L124:

// TODO: Schema should be a parameter
gnSchemaManagerService
.getCodelist(‘iso19139|gmd:CI_RoleCode’)

Regards,
Jose García

On Fri, Mar 14, 2014 at 10:03 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Francois

I see that is invoked the md.element.info to get the codelist values, but it sends the schema to iso19139. In SchemaManagerService:

var info = config.split(‘|’),
requestBody = ‘<codelist schema="’ + info[0] +

For some reason the schema is identified wrongly, but not sure yet from where comes config stuff, trying to get into the details of the developments.

Regards,
Jose García


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 Fri, Mar 14, 2014 at 9:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jose,


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

2014-03-13 15:55 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

You probably have 2 options:

  1. override the codelist template to do something specific for your schema
    https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl#L262

  2. modify the getCodeListValues function.

Francois

Regards,
Jose García


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


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


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

Hi Francois

I followed anyway your suggestion about the template and added this to my schema layout.xsl, but the template seem not used, the message is not displayed in the console and the values are the old ones still:

<xsl:variable name=“iso19139naplioschema” select=“/root/gui/schemas/iso19139.naplio”/>
<xsl:variable name=“iso19139napliocodelists” select=“$iso19139naplioschema/codelists”/>

<xsl:template mode=“mode-iso19139” priority=“300” match=“gmd:CI_RoleCode”>
<xsl:param name=“schema” select=“$schema” required=“no”/>
<xsl:param name=“labels” select=“$labels” required=“no”/>
<xsl:param name=“codelists” select=“$iso19139napliocodelists” required=“no”/>

<xsl:variable name=“xpath” select=“gn-fn-metadata:getXPath(.)”/>
<xsl:variable name=“isoType” select=“if (…/@gco:isoType) then …/@gco:isoType else ‘’”/>

xsl:messageHERE WE ARE =======================================================</xsl:message>

// CURRENT CODE …

<xsl:with-param name=“listOfValues”

select=“gn-fn-metadata:getCodeListValues(‘iso19139.naplio’, name(*[@codeListValue]), $codelists, .)”/>
</xsl:call-template>
</xsl:template>

Maybe is good to plan in IRC a brief session about the architecture of the new metadata editor components, at least to have a general idea to get productive on developments. Let me know what do you think about this.

Regards,
Jose García

···

On Fri, Mar 14, 2014 at 10:06 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi

Sorry, just checking a bit more the code, seem this can be the problem. In https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/components/edit/directoryentryselector/DirectoryEntrySelector.js#L124:

// TODO: Schema should be a parameter
gnSchemaManagerService
.getCodelist(‘iso19139|gmd:CI_RoleCode’)

Regards,
Jose García


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 Fri, Mar 14, 2014 at 10:03 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Francois

I see that is invoked the md.element.info to get the codelist values, but it sends the schema to iso19139. In SchemaManagerService:

var info = config.split(‘|’),
requestBody = ‘<codelist schema="’ + info[0] +

For some reason the schema is identified wrongly, but not sure yet from where comes config stuff, trying to get into the details of the developments.

Regards,
Jose García


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 Fri, Mar 14, 2014 at 9:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jose,


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

2014-03-13 15:55 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

You probably have 2 options:

  1. override the codelist template to do something specific for your schema
    https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl#L262

  2. modify the getCodeListValues function.

Francois

Regards,
Jose García


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


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


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

Added issue https://github.com/geonetwork/core-geonetwork/issues/420 for the record

Francois

···

2014-03-14 10:38 GMT+01:00 Francois Prunayre <fx.prunayre@anonymised.com>:

Maybe we should add the schema in gnCurrentEdit (which contains info about current metadata)
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/js/edit/EditorController.js#L164

and use it here.

Checking getCodelist, it also need updates on the protocolCombo directive here https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/components/search/formfields/FormFieldsDirective.js#L40 for better profile support.

Francois

2014-03-14 10:06 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Sorry, just checking a bit more the code, seem this can be the problem. In https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/components/edit/directoryentryselector/DirectoryEntrySelector.js#L124:

// TODO: Schema should be a parameter
gnSchemaManagerService
.getCodelist(‘iso19139|gmd:CI_RoleCode’)

Regards,
Jose García

On Fri, Mar 14, 2014 at 10:03 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Francois

I see that is invoked the md.element.info to get the codelist values, but it sends the schema to iso19139. In SchemaManagerService:

var info = config.split(‘|’),
requestBody = ‘<codelist schema="’ + info[0] +

For some reason the schema is identified wrongly, but not sure yet from where comes config stuff, trying to get into the details of the developments.

Regards,
Jose García


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 Fri, Mar 14, 2014 at 9:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jose,


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

2014-03-13 15:55 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

In working in a new metadata profile based on iso19139 where I have customised some of the codelists.

In the “classic” metadata editor are displayed properly the new values for the codelist fields, but in the trunk new metadata editor are displayed the codelist values from iso19139.

In my metadata profile I added similar files to these https://github.com/geonetwork/schema-plugins/tree/master/iso19139.fra/layout to get it working in the new metadata editor.

Not sure if it’s a bug in the new metadata editor or I’m missing some configuration?

You probably have 2 options:

  1. override the codelist template to do something specific for your schema
    https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl#L262

  2. modify the getCodeListValues function.

Francois

Regards,
Jose García


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


Learn Graph Databases - Download FREE O’Reilly Book
“Graph Databases” is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech


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