sul-dlss / mods

A Ruby gem to parse MODS (Metadata Object Description Schema) records.
Other
10 stars 6 forks source link

Should there be a way to select non-typed title? #18

Open jcoyne opened 9 years ago

jcoyne commented 9 years ago

Like this? mods.xpath('//m:titleInfo[not(@type)]/m:title', 'm' => Mods::MODS_NS)

ndushay commented 9 years ago

would this not be short_title? or short_title || alternative_title?

https://github.com/sul-dlss/mods/blob/master/lib/mods/record.rb#L141

https://github.com/sul-dlss/mods/blob/master/lib/mods/nom_terminology.rb#L605-617

I'm not opposed to adding it, tho. Perhaps as untyped_title or equally clear label.