[librecat-dev] ISBN extraction use case
Patrick Hochstenbach
Patrick.Hochstenbach at UGent.be
Mon Sep 17 13:18:55 CEST 2018
First you need to add all the fields you need into the ‘hashmap value’ parameter:
dedup.fix:
—————————————————————————————————
marc_map(020a, identifier.$append)
replace_all(identifier.*,"\s+.*","")
do list(path:identifier)
isbn13(.)
end
do hashmap(exporter:YAML)
copy_field(identifier,key)
copy_field(_id,value.$append)
marc_map(600a,value.$append)
marc_map(600b,value.$append)
end
And then you need to map those values in the columns you want:
cleanup.fix:
—————————————————————————————————
select exists(value.1)
flatten(value)
join_field(value,”,”)
Patrick
> On 13 Sep 2018, at 11:08, Spiros Antonio <spiros.antonio at gmail.com> wrote:
>
> marc_map(020a, identifier.$append)
>
> replace_all(identifier.*,"\s+.*","")
>
> do list(path:identifier)
>
> isbn13(.)
>
> end
>
> do hashmap(exporter:YAML)
>
> copy_field(identifier,key)
>
> copy_field(_id,value)
>
> end
>
-------------- 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/20180917/d3deaf46/attachment.asc>
More information about the librecat-dev
mailing list