Orbis-Cascade-Alliance / harvester

XForms-based OAI-PMH harvester for Orbis Cascade. Metadata are transformed into RDF and posted into a triplestore for access from finding aids.
9 stars 1 forks source link

Replace hyphen with a forward slash in date ranges #13

Closed adehner closed 7 years ago

adehner commented 7 years ago

Currently the hyphen, separating 2 dates in a date range, is not replaced with a forward slash. This can be seen in date fields for DPLA (SourceResource dcterms:date) and those for Primo (OAI dc:date).

Sets for testing:

According to the crosswalks to DPLA and Primo, the hyphens should be replaced with a forward slash DPLA crosswalk:

screen shot 2017-03-10 at 1 29 16 pm

Primo crosswalk:

screen shot 2017-03-10 at 1 32 30 pm

@jallibunn

ewg118 commented 7 years ago

Fixed. I re-harvested the ORPU set, and you should see the changes in the RDF and OAI-PMH for Primo. E.g. <dc:date>1942/1957</dc:date> <dc:date.start>19420101</dc:date.start> <dc:date.end>19571231</dc:date.end>

The dates in RDF are not a literal "1942/1957". They are modeled into edm:TimeSpan with edm:begin and edm:end.

adehner commented 7 years ago

Thanks Ethan!

On Fri, Mar 10, 2017 at 3:37 PM, Ethan Gruber notifications@github.com wrote:

Closed #13 https://github.com/Orbis-Cascade-Alliance/harvester/issues/13 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Orbis-Cascade-Alliance/harvester/issues/13#event-995730435, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4179NKnCeadu_htf5vBo1YDGbAz8Wlks5rkd6pgaJpZM4MZ5Du .