Closed cKlee closed 8 years ago
This is a bug and a documentation error
Ok, with the comma it does not work. I was confused by the regex part:
(\[(.)?,?(.)?\])
It should be
(\[([^,])?,?([^,])?\])
But why you need the
,?
Using a comma in the mac_path gets me an:
Oops! The fix 'marc_map' was called with missing or wrong arguments.
Using a space like
245[ 0]
gets me an
Oops! Syntax error in your fixes...
You need to call it as:
marc_map("245[,2]a",title)
with the quotes. This only work in the current development release. There is a bug in the CPAN version which inteprets the above as ind1="," ind2="2"
All right!
It is not clear how to filter by indicator 2 only, when indicator 1 is unknown or not important. I guess it should be done like
An example of this in the POD and cheat sheet would be nice.