marc-fastxmlwriter 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: db99fd725cb58c72fc5030a7d56db5d55f50642b
4
+ data.tar.gz: 9c9df24a25e05f9f6c3ea92cba105fe112852b3d
5
+ SHA512:
6
+ metadata.gz: fd0aeb6183be02ccc201e93f90e76a5c7c0252a10db0d363ca30664a6e7e37a68be6061b82b139e5b17b7d2f3f91b73a88007cfa9fe65d64535fa9b7b2c2c10e
7
+ data.tar.gz: 8e8cb980a6e1fc3a341f1caf5e51fca1e6eaa897a932d5a060c8ed3259ac90df81cb1fdc02185f83aa9aefc55f369fd5192daf1d51901afe0aa7d398d7875535
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - jruby-19mode
4
+ - jruby-head
5
+ - 1.9
6
+ - 2.2
7
+ - rbx-2
8
+ jdk:
9
+ - openjdk7
10
+ bundler_args: --without debug
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in marc-fastxmlwriter.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Bill Dueber
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Marc::FastXMLWriter
2
+
3
+ [![Build Status](https://travis-ci.org/billdueber/marc-fastxmlwriter.svg?branch=master)](https://travis-ci.org/billdueber/marc-fastxmlwriter)
4
+
5
+ Turn a single ruby-marc Record object into a MARC-XML string, but faster.
6
+
7
+
8
+ ```ruby
9
+
10
+ require 'marc/fastxmlwriter'
11
+
12
+ r = MARC::Reader.new('mystuff.mrc').first
13
+ xmlstring = MARC::FastXMLWriter.single_record_document(r)
14
+ xml_with_namespace = MARC::FastXMLWriter.single_record_document(r, :include_namespace=>true)
15
+ ```
16
+
17
+
18
+
19
+
20
+ ## Installation
21
+
22
+ Add this line to your application's Gemfile:
23
+
24
+ ```ruby
25
+ gem 'marc-fastxmlwriter'
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ $ bundle
31
+
32
+ Or install it yourself as:
33
+
34
+ $ gem install marc-fastxmlwriter
35
+
36
+
37
+ ## Contributing
38
+
39
+ 1. Fork it ( https://github.com/[my-github-username]/marc-fastxmlwriter/fork )
40
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
41
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
42
+ 4. Push to the branch (`git push origin my-new-feature`)
43
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ require "rake/testtask"
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.pattern = 'test/**/*_spec.rb'
7
+ t.libs << "test"
8
+ end
9
+
10
+ task :spec => :test
11
+ task :default => :test
@@ -0,0 +1,90 @@
1
+ require "marc/fastxmlwriter/version"
2
+
3
+ require 'marc'
4
+
5
+ module MARC
6
+ class FastXMLWriter < MARC::XMLWriter
7
+
8
+ XML_HEADER = '<?xml version="1.0" encoding="UTF-8"?>'
9
+
10
+
11
+ OPEN_COLLECTION = "<collection">
12
+ OPEN_COLLECTION_NAMESPACE = %Q{<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.loc.gov/MARC21/slim" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd">}
13
+
14
+
15
+ def initialize(file, opts={})
16
+ super
17
+ end
18
+
19
+ def write(record)
20
+ @fh.write(self.class.encode(record))
21
+ # @fh.write("\n")
22
+ end
23
+
24
+ class << self
25
+
26
+ def open_collection(use_ns)
27
+ if use_ns
28
+ %Q{<collection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:marc="http://www.loc.gov/MARC21/slim" xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd">}.dup
29
+ else
30
+ "<collection>".dup
31
+ end
32
+ end
33
+
34
+
35
+ def single_record_document(r, opts={})
36
+
37
+ xml = XML_HEADER.dup
38
+ xml << open_collection(opts[:include_namespace])
39
+ xml << encode(r, opts)
40
+ xml << '</collection>'
41
+ xml
42
+ end
43
+
44
+ def open_datafield(tag, ind1, ind2)
45
+ # return "\n <datafield tag=\"#{tag}\" ind1=\"#{ind1}\" ind2=\"#{ind2}\">"
46
+ return "<datafield tag=\"#{tag}\" ind1=\"#{ind1}\" ind2=\"#{ind2}\">"
47
+ end
48
+
49
+ def open_subfield(code)
50
+ # return "\n <subfield code=\"#{code}\">"
51
+ return "<subfield code=\"#{code}\">"
52
+ end
53
+
54
+ def open_controlfield(tag)
55
+ # return "\n<controlfield tag=\"#{tag}\">"
56
+ return "<controlfield tag=\"#{tag}\">"
57
+ end
58
+
59
+ def encode(r, opts={})
60
+ xml = "<record>"
61
+
62
+ # MARCXML only allows alphanumerics or spaces in the leader
63
+ lead = r.leader.gsub(/[^\w|^\s]/, 'Z').encode(:xml=>:text)
64
+
65
+ # MARCXML is particular about last four characters; ILSes aren't
66
+ lead.ljust(23, ' ')[20..23] = "4500"
67
+
68
+ # MARCXML doesn't like a space here so we need a filler character: Z
69
+ if (lead[6..6] == " ")
70
+ lead[6..6] = "Z"
71
+ end
72
+
73
+ xml << "<leader>" << lead.encode(:xml => :text) << '</leader>'
74
+ r.each do |f|
75
+ if f.class == MARC::DataField
76
+ xml << open_datafield(f.tag, f.indicator1, f.indicator2)
77
+ f.each do |sf|
78
+ xml << open_subfield(sf.code) << sf.value.encode(:xml => :text) << '</subfield>'
79
+ end
80
+ xml << '</datafield>'
81
+ elsif f.class == MARC::ControlField
82
+ xml << open_controlfield(f.tag) << f.value.encode(:xml=>:text) << '</controlfield>'
83
+ end
84
+ end
85
+ xml << '</record>'
86
+ return xml.force_encoding('utf-8')
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,5 @@
1
+ module Marc
2
+ module FastXMLWriter
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'marc/fastxmlwriter/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "marc-fastxmlwriter"
8
+ spec.version = Marc::FastXMLWriter::VERSION
9
+ spec.authors = ["Bill Dueber"]
10
+ spec.email = ["bill@dueber.com"]
11
+ spec.summary = %q{Faster (but unverified) MARC-XML from a MARC Record}
12
+ spec.homepage = "https://github.com/billdueber/marc-fastxmlwriter"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency 'marc', '~>1.0'
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "minitest", "~> 5.0"
24
+ end
@@ -0,0 +1,15 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'marc/fastxmlwriter'
3
+
4
+ require 'minitest'
5
+ require 'minitest/spec'
6
+ require 'minitest/autorun'
7
+
8
+
9
+ def test_data_dir
10
+ return File.expand_path(File.join(File.dirname(__FILE__), "test_data"))
11
+ end
12
+
13
+ def test_data(relative_path)
14
+ return File.expand_path(File.join("test_data", relative_path), File.dirname(__FILE__))
15
+ end
@@ -0,0 +1,28 @@
1
+ require 'minitest_helper'
2
+ require 'marc'
3
+ require 'stringio'
4
+
5
+ describe "loads" do
6
+ it "loads the constant" do
7
+ assert defined? MARC::FastXMLWriter
8
+ end
9
+ end
10
+
11
+
12
+
13
+ ROUND_TRIP_FILES = Dir.glob(test_data_dir + '/*')
14
+
15
+ describe "round-trip tests" do
16
+ it "round-trips to/from xml and MARC::Record" do
17
+ ROUND_TRIP_FILES.each do |filename|
18
+ MARC::Reader.new(filename).each_with_index do |r1, i|
19
+ [false, true].each do |use_namespace|
20
+ xml = MARC::FastXMLWriter.single_record_document(r1, :include_namespace=>use_namespace)
21
+ s = StringIO.new(xml)
22
+ r2 = MARC::XMLReader.new(s).first
23
+ assert_equal r1, r2, "File #{filename} record #{i}, include_namespace = #{use_namespace}"
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1 @@
1
+ 00755cam 22002414a 4500001001300000003000600013005001700019008004100036010001700077020004300094040001800137042000800155050002600163082001700189100003100206245005400237260004200291300007200333500003300405650003700438630002500475630001300500fol05731351 IMchF20000613133448.0000107s2000 nyua 001 0 eng  a 00020737  a0471383147 (paper/cd-rom : alk. paper) aDLCcDLCdDLC apcc00aQA76.73.P22bM33 200000a005.13/32211 aMartinsson, Tobias,d1976-10aActivePerl with ASP and ADO /cTobias Martinsson. aNew York :bJohn Wiley & Sons,c2000. axxi, 289 p. :bill. ;c23 cm. +e1 computer laser disc (4 3/4 in.) a"Wiley Computer Publishing." 0aPerl (Computer program language)00aActive server pages.00aActiveX.00647pam 2200241 a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001800109042000800127050002600135082001500161100002600176245006700202260003800269263000900307300001100316650003700327650002500364700001600389fol05754809 IMchF20000601115601.0000203s2000 mau 001 0 eng  a 00022023  a1565926994 aDLCcDLCdDLC apcc00aQA76.73.P22bD47 200000a005.742211 aDescartes, Alligator.10aProgramming the Perl DBI /cAlligator Descartes and Tim Bunce. aCmabridge, MA :bO'Reilly,c2000. a1111 ap. cm. 0aPerl (Computer program language) 0aDatabase management.1 aBunce, Tim.00605cam 22002054a 4500001001300000003000600013005001700019008004100036010001700077040001800094042000800112050002700120082001700147100002100164245005500185260004500240300002600285504005100311650003700362fol05843555 IMchF20000525142739.0000318s1999 cau b 001 0 eng  a 00501349  aDLCcDLCdDLC apcc00aQA76.73.P22bB763 199900a005.13/32211 aBrown, Martin C.10aPerl :bprogrammer's reference /cMartin C. Brown. aBerkeley :bOsborne/McGraw-Hill,cc1999. axix, 380 p. ;c22 cm. aIncludes bibliographical references and index. 0aPerl (Computer program language)00579cam 22002054a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001800109042000800127050002700135082001700162100002100179245005500200260004500255300003600300650003700336fol05843579 IMchF20000525142716.0000318s1999 caua 001 0 eng  a 00502116  a0072120002 aDLCcDLCdDLC apcc00aQA76.73.P22bB762 199900a005.13/32211 aBrown, Martin C.10aPerl :bthe complete reference /cMartin C. Brown. aBerkeley :bOsborne/McGraw-Hill,cc1999. axxxv, 1179 p. :bill. ;c24 cm. 0aPerl (Computer program language)00801nam 22002778a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001300109042000800122050002600130082001800156100002000174245008800194250003200282260004100314263000900355300001100364650003700375650003600412650002600448700002500474700002400499fol05848297 IMchF20000524125727.0000518s2000 mau 001 0 eng  a 00041664  a1565924193 aDLCcDLC apcc00aQA76.73.P22bG84 200000a005.2/7622211 aGuelich, Scott.10aCGI programming with Perl /cScott Guelich, Shishir Gundavaram & Gunther Birznieks. a2nd ed., expanded & updated aCambridge, Mass. :bO'Reilly,c2000. a0006 ap. cm. 0aPerl (Computer program language) 0aCGI (Computer network protocol) 0aInternet programming.1 aGundavaram, Shishir.1 aBirznieks, Gunther.00665nam 22002298a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001300109042000800122050002700130082001700157111005200174245008600226250001200312260004100324263000900365300001100374650005000385fol05865950 IMchF20000615103017.0000612s2000 mau 100 0 eng  a 00055759  a0596000138 aDLCcDLC apcc00aQA76.73.P22bP475 200000a005.13/32212 aPerl Conference 4.0d(2000 :cMonterey, Calif.)10aProceedings of the Perl Conference 4.0 :bJuly 17-20, 2000, Monterey, California. a1st ed. aCambridge, Mass. :bO'Reilly,c2000. a0006 ap. cm. 0aPerl (Computer program language)vCongresses.00579nam 22002178a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001300109042000800122050002600130082001700156100002800173245006200201260004100263263000900304300001100313650003700324fol05865956 IMchF20000615102948.0000612s2000 mau 000 0 eng  a 00055770  a1565926099 aDLCcDLC apcc00aQA76.73.P22bB43 200000a005.13/32211 aBlank-Edelman, David N.10aPerl for system administration /cDavid N. Blank-Edelman. aCambridge, Mass. :bO'Reilly,c2000. a0006 ap. cm. 0aPerl (Computer program language)00661nam 22002538a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001300109042000800122050002600130082001700156100001700173245006700190250001200257260004100269263000900310300001100319650003700330700002300367700001700390fol05865967 IMchF20000615102611.0000614s2000 mau 000 0 eng  a 00055799  a0596000278 aDLCcDLC apcc00aQA76.73.P22bW35 200000a005.13/32211 aWall, Larry.10aProgramming Perl /cLarry Wall, Tom Christiansen & Jon Orwant. a3rd ed. aCambridge, Mass. :bO'Reilly,c2000. a0007 ap. cm. 0aPerl (Computer program language)1 aChristiansen, Tom.1 aOrwant, Jon.00603cam 22002054a 4500001001300000003000600013005001700019008004100036010001700077020001500094040001800109042000800127050002600135082001700161100003200178245006000210260005700270300003300327650003700360fol05872355 IMchF20000706095105.0000315s1999 njua 001 0 eng  a 00500678  a013020868X aDLCcDLCdDLC apcc00aQA76.73.P22bL69 199900a005.13/32211 aLowe, Vincentq(Vincent D.)10aPerl programmer's interactive workbook /cVincent Lowe. aUpper Saddle River, NJ :bPrentice Hall PTP,cc1999. axx, 633 p. :bill. ;c23 cm. 0aPerl (Computer program language)00696nam 22002538a 4500001001300000003000600013005001700019008004100036010001700077020002800094040001300122042000800135050002600143082001700169100002600186245004400212260005100256263000900307300001100316500002000327650003700347650001700384650004100401fol05882032 IMchF20000707091904.0000630s2000 cau 001 0 eng  a 00058174  a0764547291 (alk. paper) aDLCcDLC apcc00aQA76.73.P22bF64 200000a005.13/32212 aFoster-Johnson, Eric.10aCross-platform Perl /cEric F. Johnson. aFoster City, CA :bIDG Books Worldwide,c2000. a0009 ap. cm. aIncludes index. 0aPerl (Computer program language) 0aWeb servers. 0aCross-platform software development.
@@ -0,0 +1 @@
1
+ 01105nam a2200373 a 4504001000500000003000700005005001700012008004100029015001900070020002100089035002300110040000800133041001300141050000800154082001100162100002000173245013200193260005600325300002300381490002200404500006000426650004900486653002700535700002500562700001800587909001200605TSO004400617ISB001800661LOC001000679COL000600689CLA001300695RTP000800708TMC0015007164577UK-WiU20060908114255.0991230s1973 xxk 000 0 eng|  aGB74087392bnb a0061317845c1.90 a(UK-WiU)0061317845 dBSS1 aenghfre00aD130 a907/.21 aFebvre, Lucien.12aA new kind of history, and other essays /c(by) Lucien Febvre ; edited by Peter Burke translated (from the French) by K. Folca. aNew York (etc.) ;aLondon :bHarper and Row,c1973. axii,275p ;c21 cm.0 aHarper torchbooks aAlso published, London, Routledge and Kegan Paul, 1973. 0aHistoriographyxAddresses, essays, lectures. aHistoriographyaEssays1 aBurke, Peter,d1937-1 aFolca, Keith. aab0c0 aNEW KIND OF HISTORY, AND OTHER ESSAYS / a9780061317842 aML91 a1 a904b904 abks a0061317845
@@ -0,0 +1 @@
1
+ 00755cam 22002414a 4500001001300000003000600013005001700019008004100036010001700077020004300094040001800137042000800155050002600163082001700189100003100206245005400237260004200291300007200333500003300405650003700438630002500475630001300500fol05731351 IMchF20000613133448.0000107s2000 nyua 001 0 eng  a 00020737  a0471383147 (paper/cd-rom : alk. paper) aDLCcDLCdDLC apcc00aQA76.73.P22bM33 200000a005.13/32211 aMartinsson, Tobias,d1976-10aActivePerl with ASP and ADO /cTobias Martinsson. aNew York :bJohn Wiley & Sons,c2000. axxi, 289 p. :bill. ;c23 cm. +e1 computer laser disc (4 3/4 in.) a"Wiley Computer Publishing." 0aPerl (Computer program language)00aActive server pages.00aActiveX.
@@ -0,0 +1 @@
1
+ 01199njm a22002657a 4500001000800000005001700008007001400025008004100039035002100080906004500101010001700146028002100163040001300184050002000197245004100217260004300258300005700301511008200358505037800440500001800818650002100836700002800857953000900885991003900894567743719930615144807.4sdubmmennmplu930430s1966 nyuuun eng  9(DLC) 93710188 a7bcbccorignewd5encipf19gy-genmusic a 93710188 00aC2L 41bColumbia aDLCcDLC00aColumbia C2L 4100aBlonde on blondeh[sound recording]. a[New York, N.Y.] :bColumbia,c[1966?] a2 sound discs :banalog, 33 1/3 rpm, mono. ;c12 in.0 aWritten and performed by Bob Dylan, vocals, harmonica ; with other musicians.0 aRainy day women #12 & 35 -- Pledging my time -- Visions of Johanna -- One of us must know (Sooner or later) -- I want you -- Memphis blues again -- Leopard-skin pill-box hat -- Just like a woman -- Most likely you go your way and I'll go mine -- Temporary like Achilles -- Absolutely sweet Marie -- 4th time around -- Obviously 5 believers -- Sad eyed lady of the lowlands. aBrief record. 0aFolk-rock music.1 aDylan, Bob,d1941-4prf aTA28 bc-RecSoundhColumbia C2L 41wMUSIC
@@ -0,0 +1 @@
1
+ 02500cjm a22004571a 45000010009000000050017000090070015000260080041000410350023000820400018001050280021001230410013001440350023001570240017001800280027001970100017002240420013002410500014002541000023002682450086002912460027003772600037004043000060004413060011005014400017005125000093005295000055006225110024006775180055007015000231007565000213009875000018012005000045012185050572012636500018018359060045018539250038018989520012019369550066019489850028020141337876820070513203356.0sd fsngnnmmned031021p20032002ohubln ez eng d a(DLC) 2003577486 aNTGcNTGdDLC02aCD-83567bTelarc0 denggeng a(OCoLC)ocm526272551 a08940835672802aCD-83567bTelarc Blues a 2003577486 alcderive00aSDA 807181 aDylan, Bob,d1941-10aBlues on Blonde on blondeh[sound recording] /c[all songs written by Bob Dylan].3 aBlonde on blonde blues aCleveland, OH :bTelarc,cp2003. a1 sound disc (67 min.) :bdigital, stereo. ;c4 3/4 in. a010717 0aTelarc blues a"Contemporary blues" interpretations of previously released songs; written by Bob Dylan. aStatement of responsibility from container insert.0 aVarious performers. aRecorded July 2002 at the Studio, Portland, Maine. a"Nearly thirty years after the debut of Bob Dylan's 'Blonde on blonde', Telarc assembles some of the finest artists on the contemporary blues scene to salute the monumental blues/folk/rock recording"--Container exterior sheet. a"Fully 27 years after the debut of 'Blonde on blonde', Telarc gathered an assembly of contemporary blues artists to pay tribute to Dylan's masterpiece from his controversial electric period"--All Music Guide. aCompact disc. aComposer and program notes in container.00tRainy day women # 12 & 35r(Brian Stoltz) --tMost likely you go your way and I'll go miner(Sue Foley) --tLeopard-skin pill-box hatr(Walter Trout) --tVisions of Johannar(Anders Osborne) --tPledging my timer(Duke Robillard) --tJust like a womanr(Eric Bibb) --tStuck inside of Mobile with the Memphis blues againr(Joe Louis Walker) --tObviously 5 believersr(Sean Costello) --tOne of us must know (sooner or later)r(Clarence Bucaro) --tTemporary like Achillesr(Deborah Coleman) --tI want your(Cyril Neville) --tAbsolutely sweet Marier(C.J. Chenier). 0aBlues (Music) a7bcbcccopycatd3encipf20gy-genmusic0 aacquireb2 copiesxpolicy default amuzerec avn22 2003-10-28 to MBRS/RSevn17 2004-02-25 copy 2 to MBRS/RS cOCLCesrreplace 2004-01
@@ -0,0 +1 @@
1
+ 01378nam a22004091i 4500001001000000003000400010005001700014006001900031007001500050008004100065035002500106035002400131035002300155040001300178041001400191100003200205245009500237260003900332300002100371500002000392500004800412500011800460538003000578650006500608650004200673650004200715650004500757852003400802970001300836970002100849971000800870972001300878973001700891973001900908974002700927998001400954000039829MiU20011011000000.0m d cr bn ---auaua880715q19701979th 00010 chi  a(RLIN)MIUG16009126-B a(CaOTULAS)159860611 a(OCoLC)ocm65664201 aMiUcMiU0 achithaeng0 aČhamlō̜ng Phitsanākha.10aPhotčhanānukrom Čhin Klāng-TǣčhiuʻAngkrit-Thai /c[dōi Čhamlō̜ng Phitsanākha. aKrungthēp :bBantānsān,c197-?] a921 p. ;c19 cm. aIn Thai script. aAuthor's name and imprint from dust jacket. aEntries in Chinese characters with Mandarin and Swatow pronunciation in Thai script and English and Thai glosses. aMode of access: Internet. 0aChinese languagexDialectszChinazShantou (Guangdong Sheng) 0aChinese languagexDialectszThailand. 0aChinese languagexDictionariesxThai. 0aChinese languagexDictionariesxEnglish.0 aMiUbBUHRcGRADhPL 2127 .C42 aBKbBook aDIbDictionaries aMiU c20040625 aHTbavail_ht aACbavail_circ umdp.39015058645139ric cJKMs9114
@@ -0,0 +1 @@
1
+ 01378nam a22004091i 4500001001000000003000400010005001700014006001900031007001500050008004100065035002500106035002400131035002300155040001300178041001400191100003200205245009500237260003900332300002100371500002000392500004800412500011800460538003000578650006500608650004200673650004200715650004500757852003400802970001300836970002100849971000800870972001300878973001700891973001900908974002700927998001400954000039829MiU20011011000000.0m d cr bn ---auaua880715q19701979th 00010 chi  a(RLIN)MIUG16009126-B a(CaOTULAS)159860611 a(OCoLC)ocm65664201 aMiUcMiU0 achithaeng0 aČhamlō̜ng Phitsanākha.10aPhotčhanānukrom Čhin Klāng-TǣčhiuʻAngkrit-Thai /c[dōi Čhamlō̜ng Phitsanākha. aKrungthēp :bBantānsān,c197-?] a921 p. ;c19 cm. aIn Thai script. aAuthor's name and imprint from dust jacket. aEntries in Chinese characters with Mandarin and Swatow pronunciation in Thai script and English and Thai glosses. aMode of access: Internet. 0aChinese languagexDialectszChinazShantou (Guangdong Sheng) 0aChinese languagexDialectszThailand. 0aChinese languagexDictionariesxThai. 0aChinese languagexDictionariesxEnglish.0 aMiUbBUHRcGRADhPL 2127 .C42 aBKbBook aDIbDictionaries aMiU c20040625 aHTbavail_ht aACbavail_circ umdp.39015058645139ric cJKMs911401378nam a22004091i 4500001001000000003000400010005001700014006001900031007001500050008004100065035002500106035002400131035002300155040001300178041001400191100003200205245009500237260003900332300002100371500002000392500004800412500011800460538003000578650006500608650004200673650004200715650004500757852003400802970001300836970002100849971000800870972001300878973001700891973001900908974002700927998001400954000039829MiU20011011000000.0m d cr bn ---auaua880715q19701979th 00010 chi  a(RLIN)MIUG16009126-B a(CaOTULAS)159860611 a(OCoLC)ocm65664201 aMiUcMiU0 achithaeng0 aČhamlō̜ng Phitsanākha.10aPhotčhanānukrom Čhin Klāng-TǣčhiuʻAngkrit-Thai /c[dōi Čhamlō̜ng Phitsanākha. aKrungthēp :bBantānsān,c197-?] a921 p. ;c19 cm. aIn Thai script. aAuthor's name and imprint from dust jacket. aEntries in Chinese characters with Mandarin and Swatow pronunciation in Thai script and English and Thai glosses. aMode of access: Internet. 0aChinese languagexDialectszChinazShantou (Guangdong Sheng) 0aChinese languagexDialectszThailand. 0aChinese languagexDictionariesxThai. 0aChinese languagexDictionariesxEnglish.0 aMiUbBUHRcGRADhPL 2127 .C42 aBKbBook aDIbDictionaries aMiU c20040625 aHTbavail_ht aACbavail_circ umdp.39015058645139ric cJKMs9114
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: marc-fastxmlwriter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Bill Dueber
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: marc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ description:
70
+ email:
71
+ - bill@dueber.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
+ - Gemfile
79
+ - LICENSE.txt
80
+ - README.md
81
+ - Rakefile
82
+ - lib/marc/fastxmlwriter.rb
83
+ - lib/marc/fastxmlwriter/version.rb
84
+ - marc-fastxmlwriter.gemspec
85
+ - test/minitest_helper.rb
86
+ - test/round_trip_spec.rb
87
+ - test/test_data/batch.dat
88
+ - test/test_data/non-numeric.dat
89
+ - test/test_data/one.dat
90
+ - test/test_data/random_tag_order.dat
91
+ - test/test_data/random_tag_order2.dat
92
+ - test/test_data/utf8.marc
93
+ - test/test_data/utf8_multirecord.marc
94
+ homepage: https://github.com/billdueber/marc-fastxmlwriter
95
+ licenses:
96
+ - MIT
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubyforge_project:
114
+ rubygems_version: 2.4.5
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: Faster (but unverified) MARC-XML from a MARC Record
118
+ test_files:
119
+ - test/minitest_helper.rb
120
+ - test/round_trip_spec.rb
121
+ - test/test_data/batch.dat
122
+ - test/test_data/non-numeric.dat
123
+ - test/test_data/one.dat
124
+ - test/test_data/random_tag_order.dat
125
+ - test/test_data/random_tag_order2.dat
126
+ - test/test_data/utf8.marc
127
+ - test/test_data/utf8_multirecord.marc
128
+ has_rdoc: