Open ronaldtse opened 2 years ago
https://github.com/relaton/relaton-bib/blob/d8031f228edcabeeb3998ad3a93de3f506c14da0/lib/relaton_bib/bib_item_locality.rb#L16-L27
The list of types should be dynamically generated, not hardcoded in a RegEx.
@ronaldtse the list of types is defined in the schema. Do you mean we need to extract the list of types from the grammar?
https://github.com/relaton/relaton-bib/blob/d8031f228edcabeeb3998ad3a93de3f506c14da0/lib/relaton_bib/bib_item_locality.rb#L16-L27
The list of types should be dynamically generated, not hardcoded in a RegEx.