Sha256: 0d0f28ad25ab733787666cc8a380f12b2173430d142094ae1199eef07509994f
Contents?: true
Size: 1.07 KB
Versions: 10
Compression:
Stored size: 1.07 KB
Contents
marc is a ruby library for reading and writing MAchine Readable Cataloging (MARC). More information about MARC can be found at <http://www.loc.gov/marc>. USAGE require 'marc' # reading records from a batch file reader = MARC::Reader.new('marc.dat') for record in reader # print out field 245 subfield a puts record['245']['a'] end # creating a record record = MARC::Record.new() record.append(MARC::DataField.new('100', '0', ' ', ['a', 'John Doe'])) # writing a record writer = MARC::Writer.new('marc.dat') writer.write(record) writer.close() # writing a record as XML writer = MARC::XMLWriter.new('marc.xml') writer.write(record) writer.close() INSTALLATION If you are looking at this file you may want to be able to install the code. First you'll need to test: rake test then build the gem: rake package and install the versioned gem: gem install pkg/marc-x.x.x.gem AUTHORS Kevin Clarke <ksclarke@gmail.com> William Groppe <will.groppe@gmail.com> Ed Summers <ehs@pobox.com> Please send bugs, requests and comments to the authors.
Version data entries
10 entries across 10 versions & 1 rubygems
Version | Path |
---|---|
marc-0.3.3 | README |
marc-0.3.2 | README |
marc-0.3.1 | README |
marc-0.3.0 | README |
marc-0.2.0 | README |
marc-0.1.9 | README |
marc-0.2.2 | README |
marc-0.1.7 | README |
marc-0.1.8 | README |
marc-0.2.1 | README |