Skip to content

Metadata Wizard deletes begtime and .endtime in .//timeperd//rngdates/ when xml metadata are edited and saved #190

@aritchie-usgs

Description

@aritchie-usgs

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 103045

becomes

20120322 20120322

To Reproduce

  1. 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/

  2. open in a non-locking text editor or browser

  3. open in Metadata Wizard

  4. exit wizard, say "yes" to save when prompted (wizard prompts even if no changes were intentionally made

  5. refresh editor/browser

  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions