-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Describe the bug
When XML data are read into metadata wizard and saved, the time period information is degraded if it contains beginning and end times.
This is relevant for our metadata because we are capturing coastal conditions with aerial surveys during specific tide windows
probably related to my bug report marked as enhancement from 2022, but I think this is specifically a bug since it removes FGDC-compliant metadata from valid records.
For example:
20120322 095803 20120322 103045becomes
20120322 20120322To Reproduce
-
download xml metadata with begtime and endtime data, for example from here:
https://cmgds.marine.usgs.gov/data-services/rscc/pcmsc_planecam/CenCA_coastal_20210111/ -
open in a non-locking text editor or browser
-
open in Metadata Wizard
-
exit wizard, say "yes" to save when prompted (wizard prompts even if no changes were intentionally made
-
refresh editor/browser
-
observe that begtime and endtime fields are removed
Expected behavior
I expect Metadata Wizard to honor the FGDC standards for "Time of Day" referenced by USGS metadata standards/guidelines here:
https://geology.usgs.gov/tools/metadata/tools/doc/ctc/times.html
Quoted:
"""
Times
You can add times too, but don't unless you really need to be that precise. Write the times as HHMM or HHMMSS (HH is hour 0-24, MM minutes 0-59, SS seconds 0-59):
Single_Date/Time:
Calendar_Date: A year or day
Time_of_Day: Time as HHMM or HHMMSS
Range_of_Dates/Times:
Beginning_Date: Starting year or day
Beginning_Time: Time as HHMM or HHMMSS
Ending_Date: Ending year or day
Ending_Time: Time as HHMM or HHMMSS
"""
full specification: https://www.fgdc.gov/metadata/csdgm/organization.html