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
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:

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

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