scriptotek / mc2skos

Command line script for converting Marc21 Classification and Authority records to SKOS/RDF
The Unlicense
21 stars 4 forks source link

Include $d from 1XX headings #58

Closed danmichaelo closed 6 years ago

danmichaelo commented 6 years ago

As long as it's common tradition to include the $d dates in presentation, I guess it makes sense to include them in the SKOS labels as well. For instance, by using "Schneider, Birgit (1971–)" as the label for https://github.com/scriptotek/mc2skos/commit/03470a3f18d3f3a4ec0b13b2137f1fdebf3941d4#diff-69bc818a87939d320f5974936d9d818d

Of course, there's the usual complications related to ISBD punctuation. We have to handle both of these:

$aSchneider, Birgit$d1971–
$aSchneider, Birgit,$d1971–

Whether ISBD punctuation is used can be defined in LDR/18, but it seems like LC doesn't necessarily do that: http://id.loc.gov/authorities/names/nb2003041477.marcxml.xml , so I guess we have to resort to testing if there is a comma or semicolon at the end of $a..