RE: Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-09 Thread Patrick Hochstenbach
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

Re: Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-09 Thread Robin Sheat
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

Re: Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-08 Thread Robin Sheat
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:'###');

Re: Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-08 Thread Robin Sheat
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

Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-05 Thread Robin Sheat
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 literature.,9,15531]

RE: Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-05 Thread Patrick Hochstenbach
: Converting 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 record

RE: Converting MARC fields with Catmandu - repeated subfields being squished together.

2014-06-05 Thread Patrick Hochstenbach
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 record that has