1.0.2 • Published 7 years ago
@natlibfi/marc-record-converters v1.0.2
Convert MARC records between different formats
Convert MARC records between different formats. The following converters are available:
- marc21slimXML: Library of Congress's XML representation of MARC21. XML documents must validate against the schema
- iso2709: MARC21 instance of ISO 2709 exhange format
- alephSequential: Internal MARC21 format of Ex Libris's Aleph ILS
Usage
AMD
define(['marc-record-converters'], function(marc_record_converters) {
...
var record = marc_record_converters.marc21slimXML.from(marcxml_str);
console.log(marc_record_converters.marc21slimXML.to(record));
...
});
Node.js
...
var marc_record_converters = require('marc-record-converters'),
record = marc_record_converters.marc21slimXML.from(marcxml_str);
console.log(marc_record_converters.marc21slimXML.to(record));
...
Development
Clone the sources and install the package using npm
:
npm install
Run the following NPM script to lint, test and check coverage of the code:
npm run check
License and copyright
This project is based on marc-record-serializers. Both the original and the modified work are licensed under the terms of ISC License.
Modified work: Copyright (c) 2015, 2017 University Of Helsinki (The National Library Of Finland)
Original work: Copyright (c) 2015 Pasi Tuominen