Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

Metadata upload issues - date stamp #217

Closed MapZombie closed 8 years ago

MapZombie commented 8 years ago

Hello, I am basically unable to upload any metadata from my organization as I continue to get errors. In the iso-19115-definition file I have turned all of the validation tags to false.

Here is the error I am receiving:

CA20097.mxd.xml

  • ISO 19115 (Data) (iso-19115) General Information - Metadata Date Stamp: is invalid. /gmd:MD_Metadata/gmd:dateStamp/gco:Date | /gmd:MD_Metadata/gmd:dateStamp/gco:DateTime Identification Information - Dataset Publication Date: is invalid. /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date | gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:DateTime >

Currently all of our date stamps are formatted as: 2016-04-05T09:16:45.4183666-06:00

However I believe the Geoportal ISO standard only takes upto 2016-04-05T09:16:45

If I do change all of the date stamps in the XML to remove the decimal as above I receive a massive list of errors when trying to upload as seen below. My question is whether I can change the definition file to somehow allow me to use our current standard: 2016-04-05T09:16:45.4183666-06:00 ? Thank you!

image

MapZombie commented 8 years ago

Any ideas on how to change the datetime formatting to allow for the additional digits? In my case I believe these are for time zones.

MapZombie commented 8 years ago

We went around this issue by parsing our XMLs to conform to the standard.