[librecat-dev] fix: append to existing json path

Christoph Krempe krempe at ub.fu-berlin.de
Tue Feb 28 15:31:31 CET 2017


Hi Johannes,

works, thank you!

Am 28.02.2017 um 13:37 schrieb Rolschewski, Johann:
> Hi Christoph,
> 
>> I would like to append a MARC '773'  field to an existing JSON path:
>>
>> marc_map("245","display.title",join: " ")  -> works
>> marc_map("773","display.title",join: " ")  -> works
>>
>> marc_map('773','display.title.$append',join:' 773: ') -> no value added to
>> display.title
>>
>> Any hints why this doesn't work?
> 
> you should create an array to append values to and join it to a string afterwards. This should work:
> 
> marc_map(245,display.title.$append,join:' ')
> marc_map(773,display.title.$append,join:'773: ')
> join_field(display.title,' ')
> 
> Grüße,
> 
> Johann
> 
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/
> 


-- 

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20170228/062d54d8/attachment.asc>


More information about the librecat-dev mailing list