LibreCat / Catmandu-MARC

Catmandu modules for working with MARC data
https://metacpan.org/release/Catmandu-MARC
Other
8 stars 10 forks source link

Cannot match blank indicator #107

Open nichtich opened 2 years ago

nichtich commented 2 years ago

How do you select a field with blank indicator?

phochste commented 2 years ago

You need to add quotes to map indicators. Catmandu is aggresive trying to interpret strings firsts as JSON paths.

E.g.

marc_map("300[ , ]a",test)
retain(test)
nichtich commented 2 years ago

Nope, this does not work. I've added a test in branch issue-107. I'd prefer to use _ and # as alias for blank indicator but this likely clashes with #109.