Closed CaptSolo closed 6 years ago
Workaround: set_field(record.0.4, 'AU')
The correct syntax is:
marc_set(FMT_,AU)
But I'll see if I can add default support for what you try to do
I tried marc_set(FMT_,AU)
but it did not work correctly either :
[
"FMT",
" ",
" ",
"_",
"BK",
"[_]",
"AU"
],
Can you see which version of Catmandu::MARC you have?
$ catmandu info | grep Catmandu::MARC
Version 1.17 is on its way to CPAN
My mistake: I had an old version in a Docker image.
Both versions – marc_set(FMT_,AU)
and marc_set("FMT", "AU")
– work fine with version 1.161.
Sorry for the confusion.
The value of "FMT" field can not be changed correctly using marc_set():
Fix:
marc_set("FMT", "AU")
Input data:
Result: