Closed philgooch closed 8 years ago
Your MARC data isn't in ISO2709. It is a text format, commonly used for display. Two solutions: (1) you write a specific parser for this format, (2) you try to get your data in another format...
Where do the data come from.
Hi @fredericd, thanks for the info. I'll write a specific parser based on your existing ones and submit a PR.
The data comes from library catalogues, e.g.
The format is called MARC 21 I believe
http://www.loc.gov/marc/bibliographic/
or UNIMARC
http://www.ifla.org/publications/unimarc-formats-and-related-documentation
OK it's MARC21. But it's for display not to be parsed. With this interface, I see that you can save biblio records into a list. And then you can view the list, and export it in MARC. You get this way a true ISO2709 file of biblio records which can be parsed by marcjs.
Node newbie here! Is it possible to have
marc.Iso2709Reader
read the contents of a string variable?I've not been successful so far, even trying to create a stream from the string, e.g.
I should note that my MARC data looks like this (seems to be the most common format although different to your examples)