marc4j4r 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/doc/ControlFieldImpl.html +58 -153
- data/doc/DataFieldImpl.html +133 -223
- data/doc/Java/OrgMarc4j/MarcReader.html +13 -13
- data/doc/MARC4J4R.html +22 -34
- data/doc/RecordImpl.html +72 -415
- data/doc/SubfieldImpl.html +14 -63
- data/doc/_index.html +1 -76
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +4 -7
- data/doc/index.html +4 -7
- data/doc/method_list.html +24 -168
- data/doc/top-level-namespace.html +3 -3
- data/test/test_marc4j4r.rb +76 -0
- metadata +4 -4
- data/test/readtest.rb +0 -120
- data/test/t.rb +0 -6
data/doc/MARC4J4R.html
CHANGED
@@ -62,16 +62,6 @@
|
|
62
62
|
</dl>
|
63
63
|
<div class="clear"></div>
|
64
64
|
|
65
|
-
<h2>Defined Under Namespace</h2>
|
66
|
-
<p class="children">
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<strong class="classes">Classes:</strong> <a href="MARC4J4R/AlephSequentialReader.html" title="MARC4J4R::AlephSequentialReader (class)">AlephSequentialReader</a>
|
72
|
-
|
73
|
-
|
74
|
-
</p>
|
75
65
|
|
76
66
|
<h2>Constant Summary</h2>
|
77
67
|
|
@@ -79,11 +69,13 @@
|
|
79
69
|
|
80
70
|
<dt id="NEWINIT-constant" class="">NEWINIT =
|
81
71
|
<span class="summary_desc">
|
82
|
-
|
72
|
+
A string used to override the initializer for each stream reader Need to do
|
73
|
+
it this ugly way because of the way java and ruby interact; can’t
|
74
|
+
just add it to the MarcReader interface the way I wanted to.
|
83
75
|
|
84
76
|
</span>
|
85
77
|
</dt>
|
86
|
-
<dd><pre class="code"><span class='string val'>"
|
78
|
+
<dd><pre class="code"><span class='string val'>"alias_method :oldinit, :initialize\ndef initialize(fromwhere)\nstream = nil\nif fromwhere.is_a? Java::JavaIO::InputStream\nstream = fromwhere\nelsif fromwhere.is_a? IO\nstream = fromwhere.to_inputstream\nelse\nstream = java.io.FileInputStream.new(fromwhere.to_java_string)\nend\nif self.class == Java::org.marc4j.MarcPermissiveStreamReader\nself.oldinit(stream, true, true)\nelse\nself.oldinit(stream)\nend\nend\n"</span>
|
87
79
|
</pre></dd>
|
88
80
|
|
89
81
|
</dl>
|
@@ -241,36 +233,32 @@ A MarcReader object with the syntactic sugar added in this file (e.g, each)
|
|
241
233
|
<pre class="lines">
|
242
234
|
|
243
235
|
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
113
|
257
|
-
114</pre>
|
236
|
+
76
|
237
|
+
77
|
238
|
+
78
|
239
|
+
79
|
240
|
+
80
|
241
|
+
81
|
242
|
+
82
|
243
|
+
83
|
244
|
+
84
|
245
|
+
85
|
246
|
+
86
|
247
|
+
87</pre>
|
258
248
|
</td>
|
259
249
|
<td>
|
260
|
-
<pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line
|
250
|
+
<pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 76</span>
|
261
251
|
|
262
252
|
<span class='def def kw'>def</span> <span class='reader identifier id'>reader</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='comma token'>,</span> <span class='type identifier id'>type</span> <span class='assign token'>=</span> <span class='symbol val'>:strictmarc</span><span class='rparen token'>)</span>
|
263
253
|
<span class='case case kw'>case</span> <span class='type identifier id'>type</span>
|
264
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:strictmarc</span>
|
254
|
+
<span class='when when kw'>when</span> <span class='symbol val'>:strictmarc</span>
|
265
255
|
<span class='return return kw'>return</span> <span class='Java constant id'>Java</span><span class='colon2 op'>::</span><span class='org identifier id'>org</span><span class='dot token'>.</span><span class='marc4j identifier id'>marc4j</span><span class='dot token'>.</span><span class='MarcStreamReader constant id'>MarcStreamReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
|
266
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:permissivemarc</span>
|
256
|
+
<span class='when when kw'>when</span> <span class='symbol val'>:permissivemarc</span>
|
267
257
|
<span class='return return kw'>return</span> <span class='Java constant id'>Java</span><span class='colon2 op'>::</span><span class='org identifier id'>org</span><span class='dot token'>.</span><span class='marc4j identifier id'>marc4j</span><span class='dot token'>.</span><span class='MarcPermissiveStreamReader constant id'>MarcPermissiveStreamReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
|
268
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:marcxml</span>
|
258
|
+
<span class='when when kw'>when</span> <span class='symbol val'>:marcxml</span>
|
269
259
|
<span class='return return kw'>return</span> <span class='Java constant id'>Java</span><span class='colon2 op'>::</span><span class='org identifier id'>org</span><span class='dot token'>.</span><span class='marc4j identifier id'>marc4j</span><span class='dot token'>.</span><span class='MarcXmlReader constant id'>MarcXmlReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
|
270
|
-
<span class='when when kw'>when</span> <span class='symbol val'>:alephsequential</span> <span class='then then kw'>then</span>
|
271
|
-
<span class='return return kw'>return</span> <span class='MARC4J4R constant id'>MARC4J4R</span><span class='colon2 op'>::</span><span class='AlephSequentialReader constant id'>AlephSequentialReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
|
272
260
|
<span class='else else kw'>else</span>
|
273
|
-
<span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='
|
261
|
+
<span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>"Reader type must be :strictmarc, :permissivemarc, or :marcxml"</span>
|
274
262
|
<span class='end end kw'>end</span>
|
275
263
|
<span class='end end kw'>end</span>
|
276
264
|
</pre>
|
@@ -284,7 +272,7 @@ A MarcReader object with the syntactic sugar added in this file (e.g, each)
|
|
284
272
|
</div>
|
285
273
|
|
286
274
|
<div id="footer">
|
287
|
-
Generated on
|
275
|
+
Generated on Fri Feb 12 16:38:06 2010 by
|
288
276
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
289
277
|
0.5.3 (ruby-1.8.7).
|
290
278
|
</div>
|