[librecat-dev] Fixes not working
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Sat Apr 29 07:07:51 CEST 2023
The parse_text command makes from your text title an array.
E.g from
{
"my": {
"title" : "Abcd"
}
}
to
{
"my": {
"title" : [ "Abcd" ]
}
}
To downcase an entry in an array you need a path to that array entry. For instance:
marc_map('245a',my.title)
trim(my.title)
parse_text(my.title,'^([\w\-]+)')
downcase(my.title.0)
BR
Patrick
________________________________
From: librecat-dev-bounces at lists.uni-bielefeld.de <librecat-dev-bounces at lists.uni-bielefeld.de> on behalf of Tiago Murakami <trmurakami at gmail.com>
Sent: 28 April 2023 22:12
To: librecat-dev at lists.uni-bielefeld.de <librecat-dev at lists.uni-bielefeld.de>
Subject: [librecat-dev] Fixes not working
Hi,
I try to use convert MARC TO MARC. When I use this fixes:
marc_map('245a',my.title)
trim(my.title)
parse_text(my.title,'^([\w\-]+)')
downcase(my.title)
It works until the command parse_text
downcase not working
Am I doing it wrong?
Thanks in advance,
--
Tiago Murakami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20230429/841c4adb/attachment.html>
More information about the librecat-dev
mailing list