From 6f1ac817f633a884389b66fb5549d1f1dee2d1a8 Mon Sep 17 00:00:00 2001 From: Carsten Klee Date: Wed, 5 Dec 2018 11:32:43 +0100 Subject: [PATCH] correct usage of indicator spec in POD --- lib/Catmandu/Fix/marc_spec.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Catmandu/Fix/marc_spec.pm b/lib/Catmandu/Fix/marc_spec.pm index ae712ec..87f1760 100644 --- a/lib/Catmandu/Fix/marc_spec.pm +++ b/lib/Catmandu/Fix/marc_spec.pm @@ -108,7 +108,7 @@ In a fix file e.g. 'my.fix': # Assign values of all subfields of all fields having indicator 1 = 1 # and indicator 2 = 0 to the my.fields.indicators10 array. - marc_spec('..._10', my.fields.indicators10.$append) + marc_spec('...{^1=\1}{^2=\0}', my.fields.indicators10.$append) # Assign first four characters of leader to my.firstcharpos.ldr marc_spec('LDR/0-3', my.firstcharpos.ldr) @@ -164,7 +164,7 @@ In a fix file e.g. 'my.fix': # Assign value of subfield a of field 245 only, if subfield a of field 246 # with value 1 for indicator1 exists - marc_spec('245$a{246_1$a}', my.var.title) + marc_spec('245$a{246^1=\1}', my.var.title) And then on command line: