[librecat-dev] delete a tag, based on data from another tag
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Thu Nov 9 08:51:53 CET 2017
# collect all the values in each 753$a field
marc_map(753a,lookup.$append)
# loop over all fields in the MARC record
do marc_each()
# in(
marc_map(822, tmp)
if in(tmp,lookup)
marc_remove(822)
end
remove_field(tmp)
marc_map(899, tmp)
if in(tmp,lookup)
marc_remove(899)
end
end
> On 8 Nov 2017, at 16:05, Peter Fanter <peter.phanter at gmail.com> wrote:
>
> 822
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20171109/e0863163/attachment.asc>
More information about the librecat-dev
mailing list