[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}}")
marc_add(999,a,ok)
end
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
Patrick
________________________________________
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')
...
end
works as expected, but not in combination with a variable:
marc_match('9852',"{{fb}}")
...
end
The fix matches not only '090000' as value og "fb", but also '190000'.
Any idea?
Thanks,
--
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