WCGA / West-Coast-Ocean-Data-Portal

bugs and fixes for the geoportal back end and UI front end of the WCODP
1 stars 0 forks source link

Errors harvesting NCCOS ISO 19115-2 metadata #60

Closed cybersea closed 8 years ago

cybersea commented 8 years ago

Attempt to harvest two records give the following validation errors: {466F4108-7C94-41CF-B95E-741CE5E66AE8} FAILED FAILED Validation Error: Identification Information - Title: is required. Validation Error: /gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString Validation Error: Identification Information - Dataset Publication Date: is required. Validation Error: /gmi:MI_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 Validation Error: Identification Information - Abstract: is required. Validation Error: /gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString Validation Error: Spatial Domain - West Bounding Longitude: is required. Validation Error: /gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox/gmd:westBoundLongitude/gco:Decimal Validation Error: Spatial Domain - South Bounding Latitude: is required. Validation Error: /gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox/gmd:southBoundLatitude/gco:Decimal Validation Error: Spatial Domain - East Bounding Longitude: is required. Validation Error: /gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox/gmd:eastBoundLongitude/gco:Decimal Validation Error: Spatial Domain - North Bounding Latitude: is required. Validation Error: /gmi:MI_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox/gmd:northBoundLatitude/gco:Decimal

{11F9F47F-876D-4D0F-82AA-5F3424AEEA4A} FAILED FAILED Validation Error: ???Line 1 Column 6571 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 7227 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 7587 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 11344 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 43208 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 43377 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 44432 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 44622 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 44815 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 45014 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 45886 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 46795 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 46994 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 47188 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 48067 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 49016 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 49959 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 50162 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected. Validation Error: ???Line 1 Column 76422 cvc-complex-type.2.4.a: Invalid content was found starting with element 'gmx:Anchor'. One of '{"http://www.isotc211.org/2005/gco":CharacterString}' is expected.

cybersea commented 8 years ago

Had a phone conversation with Jaci Mize at NCCOS with several things to try:

cybersea commented 8 years ago

Some additional resources from our conversation: https://github.com/Esri/geoportal-server/wiki/Customize%20Metadata%20Validation https://geo-ide.noaa.gov/wiki/index.php?title=Main_Page https://geo-ide.noaa.gov/wiki/index.php?title=ISO_19115-1_New_Capabilities

cybersea commented 8 years ago

The first set of validation errors were fixed with these XPath updates to the iso-19115-2-definition.xml file: https://github.com/WCGA/wcodp_config/commit/47d1bf7bff0c7d005ea10d718bfe599510bd7989

cybersea commented 8 years ago

The second set of validation errors (gmx:Anchor) with fixed by changing the xsdlocation in the iso-19115-2-definition.xml file: https://github.com/WCGA/wcodp_config/commit/25fcfeee884a09d823502c3e26fbdfbf1896fad3