adiwg / mdTranslator

Metadata translation tool built using Ruby
https://www.adiwg.org/mdTranslator/
The Unlicense
14 stars 12 forks source link

CSDGM Writer - Process Date Missing #234

Closed dwalt closed 6 months ago

dwalt commented 2 years ago

Process date (procdate) not writing to CSDGM from mdJSON input: schema{ } > metadata{ } > resourceLineage[ ] > object{ } > processStep[ ] > object{ } > timePeriod{ }]

timothypage commented 2 years ago

@dwalt

I'm seeing Time Period > End Date come through, but not Start Date - if just Start Date is defined it outputs <procdate>missing</procdate>

assuming I'm in the right place...

here's the file I'm using and what I'm seeing come out with the following mdtranslator command

bundle exec ./bin/mdtranslator translate --reader=mdJson --writer=fgdc ~/Downloads/mdjson-20221019-101023.json 

translated.zip

Here's the view in mdEditor

image
dwalt commented 2 years ago

OK, I think this confirms the problem is in mdEditor and not mdTranslator. Enclosed is the mdJSON snippet and how it displays in mdEditor. It has been speculated that the calendar picker involvement in data entry is pushing a rounding error into the entered data.


From: Tim Zwolak @.> Sent: Wednesday, October 19, 2022 12:39 PM To: adiwg/mdTranslator @.> Cc: Walworth, Dennis H @.>; Mention @.> Subject: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

@dwalthttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdwalt&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mCKM5x6PJjWaTec8kgDTWBQyBFCB0Lak0XM%2BvqPjo6o%3D&reserved=0

I'm seeing Time Period > End Date come through, but not Start Date - if just Start Date is defined it outputs missing

assuming I'm in the right place...

here's the file I'm using and what I'm seeing come out with the following mdtranslator command

bundle exec ./bin/mdtranslator translate --reader=mdJson --writer=fgdc ~/Downloads/mdjson-20221019-101023.json

translated.ziphttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Ffiles%2F9824075%2Ftranslated.zip&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pc%2BEZQ231l%2BoPLOYMCFeOhho0oqjBt1ZFfueSrI8pTg%3D&reserved=0

Here's the view in mdEditor [image]https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F1253266%2F196799272-00d7fafd-b01f-4c23-89c4-ef174e5cfcc4.png&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4tcD1zsVYC%2FiggSx0VP6mVCNXP7qdFMhXKJpYF8ZSXg%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Fissues%2F234%23issuecomment-1284547013&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YOls1Pw%2BxCvwmAM%2FF4LekAbWjXrS73AEg83BETj616s%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPKCL2AA5QXYQDI6UH5K2DWEBMAZANCNFSM6AAAAAARIJV4YI&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7PPU960nbYoPPygVrMNA%2BGu%2F9DcvoqOe8oC%2B1BVYvQs%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

dwalt commented 2 years ago

Problems with the date picker in mdEditor is a separate issue, however, with this one in which the process start date is not appearing in the CSDGM file after translation from mdJSON. The previous screen captures show how it appears in mdJSON and in mdEditor. The enclosed captures show how it appears when entered in a CSDGM editor, and how it appears in the translated CSDGM, essentially missing the date entirely.

Other date fields require a start date and an empty end date to define a singular date. It appears the logic might be reversed here with end date representing a singular date?


From: Walworth, Dennis H @.> Sent: Wednesday, October 19, 2022 1:44 PM To: adiwg/mdTranslator @.>; adiwg/mdTranslator @.> Cc: Mention @.> Subject: Re: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

OK, I think this confirms the problem is in mdEditor and not mdTranslator. Enclosed is the mdJSON snippet and how it displays in mdEditor. It has been speculated that the calendar picker involvement in data entry is pushing a rounding error into the entered data.


From: Tim Zwolak @.> Sent: Wednesday, October 19, 2022 12:39 PM To: adiwg/mdTranslator @.> Cc: Walworth, Dennis H @.>; Mention @.> Subject: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

@dwalthttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdwalt&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mCKM5x6PJjWaTec8kgDTWBQyBFCB0Lak0XM%2BvqPjo6o%3D&reserved=0

I'm seeing Time Period > End Date come through, but not Start Date - if just Start Date is defined it outputs missing

assuming I'm in the right place...

here's the file I'm using and what I'm seeing come out with the following mdtranslator command

bundle exec ./bin/mdtranslator translate --reader=mdJson --writer=fgdc ~/Downloads/mdjson-20221019-101023.json

translated.ziphttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Ffiles%2F9824075%2Ftranslated.zip&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pc%2BEZQ231l%2BoPLOYMCFeOhho0oqjBt1ZFfueSrI8pTg%3D&reserved=0

Here's the view in mdEditor [image]https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F1253266%2F196799272-00d7fafd-b01f-4c23-89c4-ef174e5cfcc4.png&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4tcD1zsVYC%2FiggSx0VP6mVCNXP7qdFMhXKJpYF8ZSXg%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Fissues%2F234%23issuecomment-1284547013&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YOls1Pw%2BxCvwmAM%2FF4LekAbWjXrS73AEg83BETj616s%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPKCL2AA5QXYQDI6UH5K2DWEBMAZANCNFSM6AAAAAARIJV4YI&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7PPU960nbYoPPygVrMNA%2BGu%2F9DcvoqOe8oC%2B1BVYvQs%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

dwalt commented 2 years ago

Tried removing start date and populating end date in mdJSON. It translated successfully to CSDGM singular date as an end date. Comparing it to Resource Citation Dates, indeed it is backwards as indicated in the mdEditor screen. A required asterisk appears on start date for Resource Citation, while a required asterisk appears on end date for Process Step. No idea why it was done this way but poses inconsistent behavior and confusion for users. At least we have a work around once you know the quirk.


From: Walworth, Dennis H @.> Sent: Wednesday, October 19, 2022 2:02 PM To: adiwg/mdTranslator @.>; adiwg/mdTranslator @.> Cc: Mention @.> Subject: Re: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

Problems with the date picker in mdEditor is a separate issue, however, with this one in which the process start date is not appearing in the CSDGM file after translation from mdJSON. The previous screen captures show how it appears in mdJSON and in mdEditor. The enclosed captures show how it appears when entered in a CSDGM editor, and how it appears in the translated CSDGM, essentially missing the date entirely.

Other date fields require a start date and an empty end date to define a singular date. It appears the logic might be reversed here with end date representing a singular date?


From: Walworth, Dennis H @.> Sent: Wednesday, October 19, 2022 1:44 PM To: adiwg/mdTranslator @.>; adiwg/mdTranslator @.> Cc: Mention @.> Subject: Re: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

OK, I think this confirms the problem is in mdEditor and not mdTranslator. Enclosed is the mdJSON snippet and how it displays in mdEditor. It has been speculated that the calendar picker involvement in data entry is pushing a rounding error into the entered data.


From: Tim Zwolak @.> Sent: Wednesday, October 19, 2022 12:39 PM To: adiwg/mdTranslator @.> Cc: Walworth, Dennis H @.>; Mention @.> Subject: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

@dwalthttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdwalt&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mCKM5x6PJjWaTec8kgDTWBQyBFCB0Lak0XM%2BvqPjo6o%3D&reserved=0

I'm seeing Time Period > End Date come through, but not Start Date - if just Start Date is defined it outputs missing

assuming I'm in the right place...

here's the file I'm using and what I'm seeing come out with the following mdtranslator command

bundle exec ./bin/mdtranslator translate --reader=mdJson --writer=fgdc ~/Downloads/mdjson-20221019-101023.json

translated.ziphttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Ffiles%2F9824075%2Ftranslated.zip&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pc%2BEZQ231l%2BoPLOYMCFeOhho0oqjBt1ZFfueSrI8pTg%3D&reserved=0

Here's the view in mdEditor [image]https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F1253266%2F196799272-00d7fafd-b01f-4c23-89c4-ef174e5cfcc4.png&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4tcD1zsVYC%2FiggSx0VP6mVCNXP7qdFMhXKJpYF8ZSXg%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Fissues%2F234%23issuecomment-1284547013&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YOls1Pw%2BxCvwmAM%2FF4LekAbWjXrS73AEg83BETj616s%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPKCL2AA5QXYQDI6UH5K2DWEBMAZANCNFSM6AAAAAARIJV4YI&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7PPU960nbYoPPygVrMNA%2BGu%2F9DcvoqOe8oC%2B1BVYvQs%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

dwalt commented 2 years ago

Scratch information on Asterisk dates in mdEditor. The behaviour switches depending which date you enter. It appears you can do either. Tested Resource Citation Date with only an end date, no start date, and it translated successfully to CSDGM as a singular date. So, it appears the behaviour in mdEditor is flexible, recognizing a singular date with either a start date or end date populated and its opposite null. Therefore, it seems the behaviour for Process Date is incomplete and should recognize an additional use case of start date populated and end date null.


From: Walworth, Dennis H @.> Sent: Wednesday, October 19, 2022 2:16 PM To: adiwg/mdTranslator @.>; adiwg/mdTranslator @.> Cc: Mention @.> Subject: Re: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

Tried removing start date and populating end date in mdJSON. It translated successfully to CSDGM singular date as an end date. Comparing it to Resource Citation Dates, indeed it is backwards as indicated in the mdEditor screen. A required asterisk appears on start date for Resource Citation, while a required asterisk appears on end date for Process Step. No idea why it was done this way but poses inconsistent behavior and confusion for users. At least we have a work around once you know the quirk.


From: Walworth, Dennis H @.> Sent: Wednesday, October 19, 2022 2:02 PM To: adiwg/mdTranslator @.>; adiwg/mdTranslator @.> Cc: Mention @.> Subject: Re: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

Problems with the date picker in mdEditor is a separate issue, however, with this one in which the process start date is not appearing in the CSDGM file after translation from mdJSON. The previous screen captures show how it appears in mdJSON and in mdEditor. The enclosed captures show how it appears when entered in a CSDGM editor, and how it appears in the translated CSDGM, essentially missing the date entirely.

Other date fields require a start date and an empty end date to define a singular date. It appears the logic might be reversed here with end date representing a singular date?


From: Walworth, Dennis H @.> Sent: Wednesday, October 19, 2022 1:44 PM To: adiwg/mdTranslator @.>; adiwg/mdTranslator @.> Cc: Mention @.> Subject: Re: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

OK, I think this confirms the problem is in mdEditor and not mdTranslator. Enclosed is the mdJSON snippet and how it displays in mdEditor. It has been speculated that the calendar picker involvement in data entry is pushing a rounding error into the entered data.


From: Tim Zwolak @.> Sent: Wednesday, October 19, 2022 12:39 PM To: adiwg/mdTranslator @.> Cc: Walworth, Dennis H @.>; Mention @.> Subject: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

@dwalthttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdwalt&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mCKM5x6PJjWaTec8kgDTWBQyBFCB0Lak0XM%2BvqPjo6o%3D&reserved=0

I'm seeing Time Period > End Date come through, but not Start Date - if just Start Date is defined it outputs missing

assuming I'm in the right place...

here's the file I'm using and what I'm seeing come out with the following mdtranslator command

bundle exec ./bin/mdtranslator translate --reader=mdJson --writer=fgdc ~/Downloads/mdjson-20221019-101023.json

translated.ziphttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Ffiles%2F9824075%2Ftranslated.zip&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pc%2BEZQ231l%2BoPLOYMCFeOhho0oqjBt1ZFfueSrI8pTg%3D&reserved=0

Here's the view in mdEditor [image]https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F1253266%2F196799272-00d7fafd-b01f-4c23-89c4-ef174e5cfcc4.png&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4tcD1zsVYC%2FiggSx0VP6mVCNXP7qdFMhXKJpYF8ZSXg%3D&reserved=0

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Fissues%2F234%23issuecomment-1284547013&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YOls1Pw%2BxCvwmAM%2FF4LekAbWjXrS73AEg83BETj616s%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPKCL2AA5QXYQDI6UH5K2DWEBMAZANCNFSM6AAAAAARIJV4YI&data=05%7C01%7Cdwalworth%40usgs.gov%7Cf5233230652946c5512708dab21244a8%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018088784021676%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7PPU960nbYoPPygVrMNA%2BGu%2F9DcvoqOe8oC%2B1BVYvQs%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

timothypage commented 2 years ago

I configured it to output start date if it's the only date provided

dwalt commented 2 years ago

Keep in mind that Process Date in CSDGM does not offer a range, only a singular date (procdate). So, I think we have three use cases to accommodate from mdJSON:

  1. Start Date only
    • timePeriod > startDateTime = date
    • timePeriod > endDateTime = NULL
    • therefore procdate = startDatetime
  2. End Date only
    • timePeriod > startDateTime = NULL
    • timePeriod > endDateTime = date
    • therefore procdate = endDateTime
  3. Date Range
    • timePeriod > startDateTime = date
    • timePeriod > endDateTime = date
    • therefore procdate = endDateTime
    • This adaptation is assuming users would prefer the end date as a singular date representation of process date range

From: Tim Zwolak @.> Sent: Thursday, October 20, 2022 8:55 AM To: adiwg/mdTranslator @.> Cc: Walworth, Dennis H @.>; Mention @.> Subject: [EXTERNAL] Re: [adiwg/mdTranslator] CSDGM Writer - Process Date Missing (Issue #234)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

I configured it to output start date if it's the only date provided

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fadiwg%2FmdTranslator%2Fissues%2F234%23issuecomment-1285870968&data=05%7C01%7Cdwalworth%40usgs.gov%7C46554f1d72014c2c692a08dab2bbdd16%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018817185936557%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xWhyBpT0jDFBDW3jD02KFovJKdEHTTN4pUtoc8aSqbw%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPKCL5NMOJ6A4P5VLMPW2DWEF2PBANCNFSM6AAAAAARIJV4YI&data=05%7C01%7Cdwalworth%40usgs.gov%7C46554f1d72014c2c692a08dab2bbdd16%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C638018817186093141%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DS6ExH9NbBKBtIfb6Bc5j%2FrSaPn4CYhtJtLF88oqtRM%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

dwalt commented 1 year ago

mdJSON-CSDGM translated successfully in test

hmaier-fws commented 6 months ago

closed by #250