core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

ISO19115-3.2008 / Metadata Editor / Error after selecting period time

Open josegar74 opened this issue 1 year ago • 0 comments

Describe the bug In the full view, selecting Period time > Duration and saving the metadata shows the following error:

KhN1514ZDqa

To Reproduce Steps to reproduce the behavior:

  1. Create an ISO19115-3.2008 metadata , with the template Template for geographical data
  2. Switch to the Full view and add a Period time of type Duration

period-time-duration

Apparently nothing happens, in the Chrome developers tool, there is a failing request, returning:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<apiError>
  <code>runtime_exception</code>
  <description>A sequence of more than one item is not allowed as the first argument of normalize-space() ("data-gn-field-duration-div", "data-gn-field-duration-div") </description><message>XPathException</message>
</apiError>
  1. Click Save metadata and the error is displayed in a popup.

The popup is displayed only in 3.12.x, in 4.2.x same error, but no popup is displayed, just the spinner in the Save metadata button.

Thanks @juanluisrp for pointing the error.

josegar74 avatar Mar 17 '23 09:03 josegar74