Sha256: 97a32ca2d329005465e291b2070572535cd828cd9ff7336ff45f61dd2b12e2dd

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 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
#      puts record['245']['a']
#    end
#
#    # creating a record
#    record = MARC::Record.new()
#    record.add_field(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()
#
#    # Deal with non-standard control field tags
#    MARC::Field.control_tags << 'FMT'
#    record = MARC::Record.new()
#    record.add_field(MARC::ControlField.new('FMT', 'Book')) # doesn't raise an error

require_relative "marc/version"
require_relative "marc/constants"
require_relative "marc/record"
require_relative "marc/datafield"
require_relative "marc/controlfield"
require_relative "marc/subfield"
require_relative "marc/reader"
require_relative "marc/writer"
require_relative "marc/exception"
require_relative "marc/xmlwriter"
require_relative "marc/unsafe_xmlwriter"
require_relative "marc/xmlreader"
require_relative "marc/dublincore"
require_relative "marc/xml_parsers"
require_relative "marc/jsonl_reader"
require_relative "marc/jsonl_writer"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
marc-1.3.0 lib/marc.rb
marc-1.2.0 lib/marc.rb