Re: Getting started with Z39.50

2017-04-06 Thread Patrick Hochstenbach
Hi there is also Z39.50 support in Catmandu https://metacpan.org/pod/Catmandu::Importer::Z3950 e.g. To fetch marc you can do: $ catmandu convert Z3950 --host z3950.loc.gov --port 7090 --databaseName Voyager --query "(title = dinosaur)" to MARC a Perl api is included. Patrick _

Re: identify ISSN numbers in an mrc file

2016-11-02 Thread Patrick Hochstenbach
e of control fields, the condition must contain > > > > > > the > > > > > >tag name, the starting > > > > > > and ending position (both 0-based), and a regular expressions for > > > > > > the > > > > > >

Re: Finding non-unicode characters

2014-06-30 Thread Patrick Hochstenbach
Hi You can use this regular expression to see if there might be non valid UTF8 errors in a piece of text (but can’t check for correctness of the unicode) perl -l -ne '/ ^( ([\x00-\x1D]) # 1-byte pattern |([\x1F-\x7F]) # 1-byte pattern |([\xC2-\xDF][\x80-\xBF]) #

RE: Converting MARC fields with Catmandu - 'unless exists' failing.

2014-06-10 Thread Patrick Hochstenbach
Hi Robin You just might need to upgrade your Catmandu ("cpan Catmandu") to get the fixed. You are probably using 0.9* syntax features with an older version of Catmandu. As for you second question. Yes, in Catmandu 0.9* all these combinations will work: my $fixer = Catmandu->fixer('do_this

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

2014-06-09 Thread Patrick Hochstenbach
Hi Robin Sure join_field("subject.*"," "); join_field("subject",""); The first join is for concatenating all the subfields. The second join is for all the field. In the new Catmandu version we are enhancing the language a bit, thats why I might have written my previous examples with the ne

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 fi

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: "subject","P

RE: [librecat-dev] A common MARC record path language

2014-02-19 Thread Patrick Hochstenbach
a same collection of functions like move_field, split_field, copy_field etc etc. But I hope there are other options also. Cheers Patrick From: Klee, Carsten [carsten.k...@sbb.spk-berlin.de] Sent: Wednesday, February 19, 2014 2:27 PM To: 

Re: AW: [librecat-dev] A common MARC record path language

2014-01-21 Thread Patrick Hochstenbach
t;Carsten > > >[1] <https://github.com/cKlee/marc-spec/issues> >[2] <http://www.loc.gov/marc/specifications/specrecstruc.html#varifields> >___ >Carsten Klee >Abt. Überregionale Bibliographische Dienste IIE >Staatsbiblio

Re: [librecat-dev] A common MARC record path language

2013-12-20 Thread Patrick Hochstenbach
Hi Thanks for this initiative to formalise the path language for MARC records. In Catmandu our path language is better described at: https://metacpan.org/pod/Catmandu::Fix::marc_map. It would be an easy fix for us to follow Carsten¹s MARC spec rules and I will gladly implement it for our community

Catmandu and MODS::Record

2013-08-06 Thread Patrick Hochstenbach
Hi all LibreCat -=-=-=-= LibreCat is an open collaboration of the university libraries of Lund, Ghent, and Bielefeld to create tools for library and research services. One of the toolkits we provide is called 'Catmandu' (http://search.cpan.org/~nics/Catmandu-0.5004/lib/Catmandu.pm) which is a s