marc4j4r 0.1.6 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/README.rdoc +17 -0
  2. data/Rakefile +26 -13
  3. data/VERSION +1 -1
  4. data/jars/marc4j.jar +0 -0
  5. data/lib/marc4j4r/controlfield.rb +32 -0
  6. data/lib/marc4j4r/datafield.rb +196 -0
  7. data/lib/marc4j4r/reader.rb +71 -0
  8. data/lib/marc4j4r/record.rb +214 -0
  9. data/lib/marc4j4r/writer.rb +29 -0
  10. data/lib/marc4j4r.rb +26 -485
  11. data/lib/original_monolithic_file.rb +518 -0
  12. data/spec/batch.dat +1 -0
  13. data/spec/batch.txt +193 -0
  14. data/spec/batch.xml +13 -0
  15. data/spec/controlfield_spec.rb +40 -0
  16. data/spec/datafield_spec.rb +56 -0
  17. data/spec/one.dat +1 -0
  18. data/spec/one.txt +17 -0
  19. data/spec/one.xml +4 -0
  20. data/spec/reader_spec.rb +49 -0
  21. data/spec/record_spec.rb +101 -0
  22. data/{test/helper.rb → spec/spec_helper.rb} +9 -5
  23. metadata +74 -80
  24. data/.document +0 -5
  25. data/.gitignore +0 -21
  26. data/README.markdown +0 -41
  27. data/doc/ControlFieldImpl.html +0 -314
  28. data/doc/DataFieldImpl.html +0 -875
  29. data/doc/Java/OrgMarc4j/MarcReader.html +0 -184
  30. data/doc/MARC4J4R/Reader.html +0 -245
  31. data/doc/MARC4J4R.html +0 -281
  32. data/doc/RecordImpl.html +0 -686
  33. data/doc/SubfieldImpl.html +0 -252
  34. data/doc/_index.html +0 -153
  35. data/doc/class_list.html +0 -36
  36. data/doc/css/common.css +0 -1
  37. data/doc/css/full_list.css +0 -50
  38. data/doc/css/style.css +0 -268
  39. data/doc/file.README.html +0 -90
  40. data/doc/file_list.html +0 -38
  41. data/doc/frames.html +0 -13
  42. data/doc/index.html +0 -90
  43. data/doc/js/app.js +0 -99
  44. data/doc/js/full_list.js +0 -106
  45. data/doc/js/jquery.js +0 -19
  46. data/doc/method_list.html +0 -219
  47. data/doc/top-level-namespace.html +0 -87
  48. data/jars/MarcImporter.jar +0 -0
  49. data/test/batch.seq +0 -118
  50. data/test/bench.rb +0 -63
  51. data/test/one.dat +0 -1
  52. data/test/one.seq +0 -30
  53. data/test/one.xml +0 -55
  54. data/test/test_marc4j4r.rb +0 -76
@@ -1,252 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <title>Class: SubfieldImpl</title>
7
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <script type="text/javascript" charset="utf-8">
20
- if (window.top.frames.main) document.body.className = 'frames';
21
- </script>
22
-
23
- <div id="header">
24
- <div id="menu">
25
-
26
- <a href="_index.html">Index (S)</a> &raquo;
27
-
28
-
29
- <span class="title">SubfieldImpl</span>
30
-
31
-
32
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
- </div>
34
-
35
- <div id="search">
36
- <a id="class_list_link" href="#">Class List</a>
37
- <a id="method_list_link" href="#">Method List</a>
38
- <a id ="file_list_link" href="#">File List</a>
39
- </div>
40
-
41
- <div class="clear"></div>
42
- </div>
43
-
44
- <iframe id="search_frame"></iframe>
45
-
46
- <div id="content"><h1>Class: SubfieldImpl
47
-
48
-
49
- </h1>
50
-
51
- <dl class="box">
52
-
53
- <dt class="r1">Inherits:</dt>
54
- <dd class="r1">
55
- <span class="inheritName">Object</span>
56
-
57
- <ul class="fullTree">
58
- <li>Object</li>
59
-
60
- <li class="next">SubfieldImpl</li>
61
-
62
- </ul>
63
- <a href="#" class="inheritanceTree">show all</a>
64
-
65
- </dd>
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <dt class="r2 last">Defined in:</dt>
75
- <dd class="r2 last">lib/marc4j4r.rb</dd>
76
-
77
- </dl>
78
- <div class="clear"></div>
79
-
80
-
81
-
82
-
83
- <h2>Instance Method Summary</h2>
84
-
85
- <ul class="summary">
86
-
87
- <li class="public ">
88
- <span class="summary_signature">
89
-
90
- <a href="#code-instance_method" title="#code (instance method)">- (Object) <strong>code</strong> </a>
91
-
92
-
93
-
94
- </span>
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
- <span class="summary_desc"></span>
103
-
104
- </li>
105
-
106
-
107
- <li class="public ">
108
- <span class="summary_signature">
109
-
110
- <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
111
-
112
-
113
-
114
- </span>
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
- <span class="summary_desc"></span>
123
-
124
- </li>
125
-
126
-
127
- <li class="public ">
128
- <span class="summary_signature">
129
-
130
- <a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
131
-
132
-
133
-
134
- </span>
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
- <span class="summary_desc"></span>
143
-
144
- </li>
145
-
146
-
147
- </ul>
148
-
149
-
150
- <div id="instance_method_details" class="method_details_list">
151
- <h2>Instance Method Details</h2>
152
-
153
-
154
- <div class="method_details first">
155
- <p class="signature first" id="code-instance_method">
156
-
157
- - (<tt>Object</tt>) <strong>code</strong>
158
-
159
-
160
-
161
- </p><table class="source_code">
162
- <tr>
163
- <td>
164
- <pre class="lines">
165
-
166
-
167
- 365
168
- 366
169
- 367</pre>
170
- </td>
171
- <td>
172
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 365</span>
173
-
174
- <span class='def def kw'>def</span> <span class='code identifier id'>code</span>
175
- <span class='return return kw'>return</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='getCode identifier id'>getCode</span><span class='dot token'>.</span><span class='chr identifier id'>chr</span>
176
- <span class='end end kw'>end</span>
177
- </pre>
178
- </td>
179
- </tr>
180
- </table>
181
- </div>
182
-
183
- <div class="method_details ">
184
- <p class="signature " id="to_s-instance_method">
185
-
186
- - (<tt>Object</tt>) <strong>to_s</strong>
187
-
188
-
189
-
190
- </p><table class="source_code">
191
- <tr>
192
- <td>
193
- <pre class="lines">
194
-
195
-
196
- 369
197
- 370
198
- 371</pre>
199
- </td>
200
- <td>
201
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 369</span>
202
-
203
- <span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
204
- <span class='return return kw'>return</span> <span class='string val'>'$'</span> <span class='plus op'>+</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='code identifier id'>code</span> <span class='plus op'>+</span> <span class='string val'>&quot; &quot;</span> <span class='plus op'>+</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='data identifier id'>data</span>
205
- <span class='end end kw'>end</span>
206
- </pre>
207
- </td>
208
- </tr>
209
- </table>
210
- </div>
211
-
212
- <div class="method_details ">
213
- <p class="signature " id="value-instance_method">
214
-
215
- - (<tt>Object</tt>) <strong>value</strong>
216
-
217
-
218
-
219
- </p><table class="source_code">
220
- <tr>
221
- <td>
222
- <pre class="lines">
223
-
224
-
225
- 361
226
- 362
227
- 363</pre>
228
- </td>
229
- <td>
230
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 361</span>
231
-
232
- <span class='def def kw'>def</span> <span class='value identifier id'>value</span>
233
- <span class='return return kw'>return</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='data identifier id'>data</span>
234
- <span class='end end kw'>end</span>
235
- </pre>
236
- </td>
237
- </tr>
238
- </table>
239
- </div>
240
-
241
- </div>
242
-
243
- </div>
244
-
245
- <div id="footer">
246
- Generated on Fri Feb 12 16:38:07 2010 by
247
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
248
- 0.5.3 (ruby-1.8.7).
249
- </div>
250
-
251
- </body>
252
- </html>
data/doc/_index.html DELETED
@@ -1,153 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <title>Documentation by YARD 0.5.3</title>
7
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <script type="text/javascript" charset="utf-8">
20
- if (window.top.frames.main) document.body.className = 'frames';
21
- </script>
22
-
23
- <div id="header">
24
- <div id="menu">
25
-
26
-
27
- <span class="title"></span>
28
-
29
-
30
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
31
- </div>
32
-
33
- <div id="search">
34
- <a id="class_list_link" href="#">Class List</a>
35
- <a id="method_list_link" href="#">Method List</a>
36
- <a id ="file_list_link" href="#">File List</a>
37
- </div>
38
-
39
- <div class="clear"></div>
40
- </div>
41
-
42
- <iframe id="search_frame"></iframe>
43
-
44
- <div id="content"><div id="listing">
45
- <h1 class="noborder title">Documentation by YARD 0.5.3</h1>
46
- <h1 class="alphaindex">Alphabetic Index</h1>
47
-
48
-
49
- <h2>File Listing</h2>
50
- <ul id="files">
51
-
52
-
53
- <li class="r1"><a href="index.html" title="README">README</a></li>
54
-
55
-
56
- </ul>
57
-
58
- <div class="clear"></div>
59
-
60
- <h2>Namespace Listing A-Z</h2>
61
-
62
-
63
-
64
-
65
- <table>
66
- <tr>
67
- <td valign='top' width="33%">
68
-
69
-
70
- <ul id="alpha_C" class="alpha">
71
- <li class="letter">C</li>
72
- <ul>
73
-
74
- <li>
75
- <a href="ControlFieldImpl.html" title="ControlFieldImpl (class)">ControlFieldImpl</a>
76
-
77
- </li>
78
-
79
- </ul>
80
- </ul>
81
-
82
-
83
- <ul id="alpha_D" class="alpha">
84
- <li class="letter">D</li>
85
- <ul>
86
-
87
- <li>
88
- <a href="DataFieldImpl.html" title="DataFieldImpl (class)">DataFieldImpl</a>
89
-
90
- </li>
91
-
92
- </ul>
93
- </ul>
94
-
95
-
96
- <ul id="alpha_M" class="alpha">
97
- <li class="letter">M</li>
98
- <ul>
99
-
100
- <li>
101
- <a href="MARC4J4R.html" title="MARC4J4R (module)">MARC4J4R</a>
102
-
103
- </li>
104
-
105
- <li>
106
- <a href="Java/OrgMarc4j/MarcReader.html" title="Java::OrgMarc4j::MarcReader (module)">MarcReader</a>
107
-
108
- <small>(Java::OrgMarc4j)</small>
109
-
110
- </li>
111
-
112
- </ul>
113
- </ul>
114
-
115
-
116
- <ul id="alpha_R" class="alpha">
117
- <li class="letter">R</li>
118
- <ul>
119
-
120
- <li>
121
- <a href="RecordImpl.html" title="RecordImpl (class)">RecordImpl</a>
122
-
123
- </li>
124
-
125
- </ul>
126
- </ul>
127
-
128
-
129
- <ul id="alpha_S" class="alpha">
130
- <li class="letter">S</li>
131
- <ul>
132
-
133
- <li>
134
- <a href="SubfieldImpl.html" title="SubfieldImpl (class)">SubfieldImpl</a>
135
-
136
- </li>
137
-
138
- </ul>
139
- </ul>
140
-
141
- </td>
142
- </tr>
143
- </table>
144
- </div></div>
145
-
146
- <div id="footer">
147
- Generated on Fri Feb 12 16:38:05 2010 by
148
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
149
- 0.5.3 (ruby-1.8.7).
150
- </div>
151
-
152
- </body>
153
- </html>
data/doc/class_list.html DELETED
@@ -1,36 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html>
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
7
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
8
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
9
- <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
10
- <base id="base_target" target="_parent" />
11
- </head>
12
- <body>
13
- <script type="text/javascript" charset="utf-8">
14
- if (window.top.frames.main) {
15
- document.getElementById('base_target').target = 'main';
16
- document.body.className = 'frames';
17
- }
18
- </script>
19
- <div id="content">
20
- <h1 id="full_list_header">Class List</h1>
21
- <div id="nav">
22
- <a target="_self" href="class_list.html">Classes</a> |
23
- <a target="_self" href="method_list.html">Methods</a> |
24
- <a target="_self" href="file_list.html">Files</a>
25
- </div>
26
- <div id="search">Search: <input type="text" /></div>
27
-
28
- <ul id="full_list" class="class">
29
- <li><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></li>
30
- <li><a href="ControlFieldImpl.html" title="ControlFieldImpl (class)">ControlFieldImpl</a> &lt; Object<small class='search_info'>Top Level Namespace</small></li><li><a href="DataFieldImpl.html" title="DataFieldImpl (class)">DataFieldImpl</a> &lt; Object<small class='search_info'>Top Level Namespace</small></li><li><a href="Java/OrgMarc4j/MarcReader.html" title="Java::OrgMarc4j::MarcReader (module)">Java::OrgMarc4j::MarcReader</a><small class='search_info'>Java::OrgMarc4j</small></li><li><a href="MARC4J4R.html" title="MARC4J4R (module)">MARC4J4R</a><small class='search_info'>Top Level Namespace</small></li><li><a href="RecordImpl.html" title="RecordImpl (class)">RecordImpl</a> &lt; Object<small class='search_info'>Top Level Namespace</small></li><li><a href="SubfieldImpl.html" title="SubfieldImpl (class)">SubfieldImpl</a> &lt; Object<small class='search_info'>Top Level Namespace</small></li>
31
-
32
- </ul>
33
- </div>
34
- </body>
35
- </html>
36
-
data/doc/css/common.css DELETED
@@ -1 +0,0 @@
1
- /* Override this file with custom rules */
@@ -1,50 +0,0 @@
1
- body {
2
- margin: 0;
3
- font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
4
- font-size: 13px;
5
- height: 101%;
6
- overflow-x: hidden;
7
- }
8
-
9
- h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; }
10
- .clear { clear: both; }
11
- #search { position: absolute; right: 5px; top: 9px; }
12
- #full_list { padding: 0; list-style: none; margin-left: 0; }
13
- #full_list ul { padding: 0; }
14
- #full_list li { padding: 5px; padding-left: 12px; margin: 0; font-size: 1.1em; list-style: none; }
15
- #noresults { display: none; padding: 7px 12px; }
16
- ul.collapsed ul, ul.collapsed li { display: none; }
17
- li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; }
18
- li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; }
19
- li { color: #888; cursor: pointer; }
20
- li.deprecated { text-decoration: line-through; font-style: italic; }
21
- li.r1 { background: #f0f0f0; }
22
- li.r2 { background: #fafafa; }
23
- li:hover { background: #ddd; }
24
- li small:before { content: "("; }
25
- li small:after { content: ")"; }
26
- li small.search_info { display: none; }
27
- a:link, a:visited { text-decoration: none; color: #05a; }
28
- li.clicked { background: #05a; color: #ccc; }
29
- li.clicked a:link, li.clicked a:visited { color: #eee; }
30
- li.clicked a.toggle { opacity: 0.5; background-position: bottom right; }
31
- li.collapsed.clicked a.toggle { background-position: top right; }
32
- #search input { border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
33
- #nav { margin-left: 10px; font-size: 0.9em; display: none; color: #aaa; }
34
- #nav a:link, #nav a:visited { color: #358; }
35
- #nav a:hover { background: transparent; color: #5af; }
36
-
37
- .frames #content h1 { margin-top: 0; }
38
- .frames li { white-space: nowrap; cursor: normal; }
39
- .frames li small { display: block; font-size: 0.8em; }
40
- .frames li small:before { content: ""; }
41
- .frames li small:after { content: ""; }
42
- .frames li small.search_info { display: none; }
43
- .frames #search { position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; }
44
- .frames #search input { width: 110px; }
45
- .frames #nav { display: block; }
46
-
47
- #full_list.insearch li { display: none; }
48
- #full_list.insearch li.found { display: list-item; padding-left: 10px; }
49
- #full_list.insearch li a.toggle { display: none; }
50
- #full_list.insearch li small.search_info { display: block; }