syntax.
Greetings from ELAG2014 in Bath!
Patrick
From: Robin Sheat [ro...@catalyst.net.nz]
Sent: Monday, June 09, 2014 4:58 AM
To: perl4lib
Subject: Re: Converting MARC fields with Catmandu - repeated subfields being
squished together.
Robin Sheat schreef op
Patrick Hochstenbach schreef op di 10-06-2014 om 07:08 [+0200]:
Sure
join_field(subject.*, );
join_field(subject,br);
The first join is for concatenating all the subfields. The second join
is for all the field.
Thanks.
I actually found out that Elasticsearch is totally happy with
Patrick Hochstenbach schreef op vr 06-06-2014 om 06:53 [+0200]:
By default all repeated subfields get joined by empty space, you can
set this with the 'join' option:
marc_map('650v','subject',join:'%%%')
This doesn't work:
$ cat test.fixes
marc_map('650','subject',join:'###');
Robin Sheat schreef op ma 09-06-2014 om 14:50 [+1200]:
$ cat test.fixes
marc_map('650','subject',join:'###');
remove_field('record');
Ah, I found that I need to change the syntax a bit:
marc_map('650','subject', -split = 1);
gives me:
{subject:[[Counting,Pictorial works,Juvenile
Hi Robin
By default all repeated subfields get joined by empty space, you can set this
with the 'join' option:
marc_map('650v','subject',join:'%%%')
gives you:
subject,Pictorial works%%%Juvenile
Or, if you have many 650 fields they are all joined into one string:
Btw I've updates the Fixes cheat sheet at our Wiki to reflect your question :)
https://github.com/LibreCat/Catmandu/wiki/Fixes-Cheat-Sheet
From: Robin Sheat [ro...@catalyst.net.nz]
Sent: Friday, June 06, 2014 5:11 AM
To: perl4lib
Subject: Converting MARC