sklee2 / solrmarc

Automatically exported from code.google.com/p/solrmarc
0 stars 0 forks source link

fieldSpec with brackets: for control field, it should mean byte sequence; for non-control field, it should mean regex pattern #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Code currently treats numeric chars in brackets as a byte sequence:

008[7-12]

but treats non-numeric as a regex pattern:

650[a-dg-p]

Since subfields can be numeric, a better solution is to assume it's a byte
sequence for control fields (leader, 0 < tag <= 9), and a regex pattern for
other fields.

Original issue reported on code.google.com by naomi.du...@gmail.com on 21 Aug 2009 at 6:10