[Koha-devel] Fwd: [CODE4LIB] marc4js - a node.js module for processing MARC data

Robin Sheat robin at catalyst.net.nz
Thu Mar 26 23:58:46 CET 2015


Stefano Bargioni schreef op do 26-03-2015 om 09:15 [+0100]:
> > I wrote a Node.js module for handling MARC data while trying to
> learn MARC and Node.js. I borrowed a lot of ideas from marc4j,
> ruby-marc and pymarc.The module is open-source and hosted on github.
> If you are interested please check it out at
> https://github.com/jiaola/marc4js. It’s still at its early stage but
> I’d like to share it with the community and hopefully someone will
> find it useful. Feel free to submit a bug report, feature request or
> join the effort to make it better.

In the case of ES, pretty much all of the coding is still Perl, so we
can use MARC::Record and friends to deal with MARC. Catmandu has a very
simple way of storing MARC in JSON that I'm using to put records in ES,
which is very easy to convert:

http://git.catalyst.net.nz/gw?p=koha.git;a=blob;f=Koha/SearchEngine/Elasticsearch/Search.pm;h=549eb0468df6f601d0130d78a9e1230f6aafd89b;hb=refs/heads/elastic_search#l258

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20150327/6564896d/attachment.pgp>


More information about the Koha-devel mailing list