Skip to content

A Java library for getting easily metadata from a MARC21-XML source without knowing the insides of MARC standard.

License

Notifications You must be signed in to change notification settings

datazuul/marc-xml-javalib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MARC-XML Java Library

A Java library for getting easily metadata from a MARC21-XML source without knowing the insides of MARCXML standard.

Usage

  1. Create an instance of MarcXml:
  • from an input stream
InputStream is = ...;
Record record = MarcXmlRecord.from(is);
MarcXml marcXml = new MarcXml(record);
  • from an URI:
URI uri = ...;
Record record = MarcXmlRecord.from(uri);
MarcXml marcXml = new MarcXml(record);
  1. Read metadata of interest:

TODO

  1. Convert to other standard object (e.g. DublinCore) and get metadata:
DublinCore dc = marcXml.toDublinCore();

List<String> dcCreators = dc.getCreators();
List<String> dcDates = dc.getDates();
String dcLanguage = dc.getLanguage();
List<String> dcPublishers = dc.getPublishers();

Documentation

Tests

Tests are based

"Arithmetic", Autor: Carl Sandburg; Ted Rand, Verlag: San Diego : Harcourt Brace Jovanovich, 1993

About

A Java library for getting easily metadata from a MARC21-XML source without knowing the insides of MARC standard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published