[librecat-dev] marc_match and variable

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Mon Sep 25 20:12:31 CEST 2017

Could you send me some sample data? I was confused. Everything work for me as it should:

These commands:

a) catmandu convert --var fb="190000" MARC to MARC --fix camel.fix < camel.mrc

b) catmandu convert --var fb="090000" MARC to MARC --fix camel.fix < camel.mrc

Give different results with this fix:

 if marc_match(985,"{{fb}}")

And  985 $a090000 in the data.

Of course if your data contains 985 as a repeated field:

985 $a090000
985 $a190000

then both a) and b) will give the same results


From: librecat-dev-bounces at lists.uni-bielefeld.de <librecat-dev-bounces at lists.uni-bielefeld.de> on behalf of Christoph Krempe <krempe at ub.fu-berlin.de>
Sent: Monday, September 25, 2017 3:50 PM
To: librecat-dev at lists.uni-bielefeld.de
Subject: [librecat-dev] marc_match and variable

Hi all,

a fix like

if marc_match('9852','090000')

works as expected, but not in combination with a variable:


The fix matches not only '090000' as value og "fb", but also '190000'.

Any idea?



Mit freundlichen Grüßen

Ch. Krempe


Christoph Krempe
Abt. Datenverarbeitung / Fachreferat Philosophie
Universitätsbibliothek der FU Berlin
Garystraße 39
D-14195 Berlin

Tel.: 030 83854583
Fax: 030 838454583

More information about the librecat-dev mailing list