[librecat-dev] Fixes not working

Tiago Murakami trmurakami at gmail.com
Sun Apr 30 19:01:52 CEST 2023


It works!

Thanks!

Tiago


On Sat, Apr 29, 2023 at 2:07 AM Patrick Hochstenbach <
Patrick.Hochstenbach at ugent.be> wrote:

> 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
>


-- 
Tiago Murakami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20230430/6881b92b/attachment.html>


More information about the librecat-dev mailing list