[GeoNetwork-devel] Error when trying to edit a custom standard record

Hi all,

I’m having an issue when editing metadata records that use my custom metadata schema (an extension of iso19139). I use the REST API to upload a record with no issues but when I try to edit it in the editor, nothing loads and it gives the following error in the logs

Error on line 112 of layout-custom-fields-date.xsl:
XTTE0790: An empty sequence is not allowed as the third argument of
gn-fn-metadata:getCodeListValues()

It’s probably worth mentioning that when displaying the record it doesn’t show much data. I’ve included a picture. My schema can be found here: https://github.com/SoftwareMonk/iso19115.meridian

Any insight would be very helpful and I can supply any extra details if need be!

Thanks,
Ryan Gosse

(attachments)

record.png

Hi Ryan,

https://github.com/geonetwork/core-geonetwork/blob/master/schemas/iso19139/src/main/plugin/iso19139/layout/layout-custom-fields-date.xsl#L112
is looking for the code list for your schema in third arg.

BTW, your codelist is not in the same format as GeoNetwork
https://github.com/SoftwareMonk/iso19115.meridian/blob/master/src/main/plugin/iso19115.MERIDIAN/loc/eng/codelists.xml
So I would check that first.

Also your schema is an extension of ISO19139, so I would rename it with
something like iso19139.meridian because in this case, GeoNetwork will know
that it is an ISO19139 extension and has some logic that you don't have to
implement for a completely new schema (default labels, editor widget like
topicCategory, ...).

Cheers

Francois

Le lun. 21 janv. 2019 à 07:29, Ryan Gosse <Ryan.Gosse@anonymised.com> a écrit :

Hi all,

I’m having an issue when editing metadata records that use my custom
metadata schema (an extension of iso19139). I use the REST API to upload a
record with no issues but when I try to edit it in the editor, nothing
loads and it gives the following error in the logs

*Error on line 112 of layout-custom-fields-date.xsl: XTTE0790: An empty
sequence is not allowed as the third argument of
gn-fn-metadata:getCodeListValues()*

It’s probably worth mentioning that when displaying the record it doesn’t
show much data. I’ve included a picture. My schema can be found here:
https://github.com/SoftwareMonk/iso19115.meridian

Any insight would be very helpful and I can supply any extra details if
need be!

Thanks,
Ryan Gosse
_______________________________________________
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