sul-dlss / parse_date

ruby gem to parse dates out of strings, with the intention of normalizing date metadata strings for indexing, e.g. Solr
Other
2 stars 0 forks source link

parse 'yyyy-y' pattern #33

Closed ndushay closed 5 years ago

ndushay commented 5 years ago

DLME Cambridge collections have some of these:

genizah/genizah-997.xml:98:                     <origDate calendar="Gregorian" notBefore="" notAfter="">1040–1 CE</origDate>
ndushay commented 5 years ago

Harvard also has a number of these (dates inside brackets matter):

990057061350203941.oai_dc.xml     1313 [1895 or 6]

note that harvard_ihp_date_range changes "or" to hyphen

ndushay commented 5 years ago

Bodleian Armenian if we convert the slashs to hyphens:

Armenian-60.json:  1706/7  # will get 1706 only
Armenian-79.json:  1674/5  # will get 1674 only