[librecat-dev] marc_match in multiple field
Christoph Krempe
krempe at ub.fu-berlin.de
Mon May 28 15:41:55 CEST 2018
Hi Johann,
unfortunately not. I solved the problem inside my perl code.
Thanks!
Am 28.05.2018 um 09:29 schrieb Rolschewski, Johann:
> Hi Christoph,
>
>> I would like to check the value of a multiple MARC field 035a for a
>> certain content:
>>
>> 035 __ |a BI-00661983
>> 035 __ |a (DE-188-SEP)6157
>>
>> if marc_match('035','(DE-188-SEP)')
>> add_field('test', 'HALLO')
>> end
>>
>> The fix above doesn't work. Any idea how to handle this?
>
> you could use a temporary variable to store the values and then use
> any_match():
>
>
> marc_map(035a,tmp,split:1)
> if any_match(tmp.*,'(DE-188-SEP)')
> add_field('test', 'HALLO')
> end
>
>
> Cheers,
>
> Johann
>
--
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