Patrick Hochstenbach schreef op di 10-06-2014 om 07:08 [+0200]:
> Sure
>
> join_field("subject.*"," ");
> join_field("subject","");
>
> 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 ha
ve written my previous examples with the new 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 subfield
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
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:'###');
remove
MARC fields with Catmandu - repeated subfields being
squished together.
I'm using catmandu to JSON-ise MARC records for storage in
Elasticsearch, and seem to have come up with something that I can't
readily see how to fix (without getting down and dirty with fixers.)
I have a recor
t the Fix packages are easier to read.
____________
From: Robin Sheat [ro...@catalyst.net.nz]
Sent: Friday, June 06, 2014 5:11 AM
To: perl4lib
Subject: Converting MARC fields with Catmandu - repeated subfields being
squished together.
I'm using catmandu to JSON-ise MA
I'm using catmandu to JSON-ise MARC records for storage in
Elasticsearch, and seem to have come up with something that I can't
readily see how to fix (without getting down and dirty with fixers.)
I have a record that has this:
["650"," ","0","a","Time","v","Pictorial works","v","Juvenile
literatu