onix 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/README.markdown +1 -0
- data/lib/onix/code_list_extractor.rb +69 -0
- data/lib/onix/lists.rb +134 -0
- data/lib/onix/price.rb +1 -1
- data/lib/onix/product.rb +1 -0
- data/lib/onix.rb +4 -10
- data/spec/apa_product_spec.rb +2 -2
- data/spec/audience_range_spec.rb +2 -2
- data/spec/contributor_spec.rb +2 -2
- data/spec/header_spec.rb +2 -2
- data/spec/imprint_spec.rb +2 -2
- data/spec/language_spec.rb +2 -2
- data/spec/lists_spec.rb +33 -0
- data/spec/market_representation_spec.rb +2 -2
- data/spec/measure_spec.rb +2 -2
- data/spec/media_file_spec.rb +2 -2
- data/spec/other_text_spec.rb +2 -2
- data/spec/price_spec.rb +2 -2
- data/spec/product_identifier_spec.rb +2 -2
- data/spec/product_spec.rb +2 -2
- data/spec/publisher_spec.rb +2 -2
- data/spec/sales_restriction_spec.rb +2 -2
- data/spec/sender_identifier.rb +2 -2
- data/spec/series_identifier_spec.rb +2 -2
- data/spec/series_spec.rb +2 -2
- data/spec/stock_spec.rb +2 -2
- data/spec/subject_spec.rb +2 -2
- data/spec/supply_detail_spec.rb +2 -2
- data/spec/title_spec.rb +2 -2
- data/spec/website_spec.rb +2 -2
- data/support/codes/001.tsv +10 -0
- data/support/codes/002.tsv +5 -0
- data/support/codes/003.tsv +7 -0
- data/support/codes/005.tsv +13 -0
- data/support/codes/006.tsv +76 -0
- data/support/codes/007.tsv +123 -0
- data/support/codes/008.tsv +7 -0
- data/support/codes/009.tsv +7 -0
- data/support/codes/010.tsv +34 -0
- data/support/codes/011.tsv +11 -0
- data/support/codes/012.tsv +11 -0
- data/support/codes/013.tsv +7 -0
- data/support/codes/014.tsv +4 -0
- data/support/codes/015.tsv +13 -0
- data/support/codes/016.tsv +6 -0
- data/support/codes/017.tsv +90 -0
- data/support/codes/018.tsv +3 -0
- data/support/codes/019.tsv +7 -0
- data/support/codes/020.tsv +0 -0
- data/support/codes/021.tsv +31 -0
- data/support/codes/022.tsv +9 -0
- data/support/codes/023.tsv +9 -0
- data/support/codes/024.tsv +11 -0
- data/support/codes/025.tsv +29 -0
- data/support/codes/026.tsv +75 -0
- data/support/codes/027.tsv +75 -0
- data/support/codes/028.tsv +8 -0
- data/support/codes/029.tsv +16 -0
- data/support/codes/030.tsv +15 -0
- data/support/codes/031.tsv +3 -0
- data/support/codes/032.tsv +2 -0
- data/support/codes/033.tsv +36 -0
- data/support/codes/034.tsv +14 -0
- data/support/codes/035.tsv +6 -0
- data/support/codes/036.tsv +3 -0
- data/support/codes/037.tsv +6 -0
- data/support/codes/038.tsv +36 -0
- data/support/codes/039.tsv +8 -0
- data/support/codes/040.tsv +6 -0
- data/support/codes/041.tsv +6 -0
- data/support/codes/042.tsv +16 -0
- data/support/codes/043.tsv +4 -0
- data/support/codes/044.tsv +13 -0
- data/support/codes/045.tsv +12 -0
- data/support/codes/046.tsv +3 -0
- data/support/codes/047.tsv +4 -0
- data/support/codes/048.tsv +11 -0
- data/support/codes/049.tsv +84 -0
- data/support/codes/050.tsv +8 -0
- data/support/codes/051.tsv +27 -0
- data/support/codes/052.tsv +1 -0
- data/support/codes/053.tsv +3 -0
- data/support/codes/054.tsv +23 -0
- data/support/codes/055.tsv +13 -0
- data/support/codes/056.tsv +2 -0
- data/support/codes/057.tsv +5 -0
- data/support/codes/058.tsv +21 -0
- data/support/codes/059.tsv +4 -0
- data/support/codes/060.tsv +2 -0
- data/support/codes/061.tsv +3 -0
- data/support/codes/062.tsv +5 -0
- data/support/codes/063.tsv +0 -0
- data/support/codes/064.tsv +13 -0
- data/support/codes/065.tsv +25 -0
- data/support/codes/066.tsv +4 -0
- data/support/codes/067.tsv +2 -0
- data/support/codes/068.tsv +15 -0
- data/support/codes/069.tsv +4 -0
- data/support/codes/070.tsv +2 -0
- data/support/codes/071.tsv +9 -0
- data/support/codes/072.tsv +7 -0
- data/support/codes/073.tsv +36 -0
- data/support/codes/074.tsv +489 -0
- data/support/codes/075.tsv +2 -0
- data/support/codes/076.tsv +12 -0
- data/support/codes/077.tsv +19 -0
- data/support/codes/078.tsv +148 -0
- data/support/codes/079.tsv +17 -0
- data/support/codes/080.tsv +19 -0
- data/support/codes/081.tsv +11 -0
- data/support/codes/082.tsv +17 -0
- data/support/codes/083.tsv +68 -0
- data/support/codes/084.tsv +10 -0
- data/support/codes/085.tsv +23 -0
- data/support/codes/086.tsv +5 -0
- data/support/codes/087.tsv +6 -0
- data/support/codes/088.tsv +0 -0
- data/support/codes/089.tsv +1 -0
- data/support/codes/090.tsv +11 -0
- data/support/codes/091.tsv +248 -0
- data/support/codes/092.tsv +7 -0
- data/support/codes/093.tsv +13 -0
- data/support/codes/094.tsv +3 -0
- data/support/codes/095.tsv +3 -0
- data/support/codes/096.tsv +185 -0
- data/support/codes/097.tsv +1 -0
- data/support/codes/098.tsv +21 -0
- data/support/codes/099.tsv +24 -0
- data/support/codes/100.tsv +4 -0
- data/support/codes/101.tsv +2 -0
- data/support/codes/102.tsv +3 -0
- data/support/codes/121.tsv +127 -0
- data/support/codes/138.tsv +6 -0
- data/support/codes/139.tsv +70 -0
- data/support/codes/140.tsv +7 -0
- data/support/codes/141.tsv +10 -0
- data/support/codes/142.tsv +12 -0
- data/support/codes/143.tsv +7 -0
- data/support/codes/144.tsv +4 -0
- data/support/codes/145.tsv +5 -0
- data/support/codes/146.tsv +3 -0
- data/support/codes/147.tsv +7 -0
- data/support/codes/148.tsv +3 -0
- data/support/codes/149.tsv +4 -0
- data/support/codes/150.tsv +124 -0
- data/support/codes/151.tsv +7 -0
- data/support/codes/152.tsv +2 -0
- data/support/codes/153.tsv +14 -0
- data/support/codes/154.tsv +9 -0
- data/support/codes/155.tsv +5 -0
- data/support/codes/156.tsv +4 -0
- data/support/codes/157.tsv +4 -0
- data/support/codes/158.tsv +24 -0
- data/support/codes/159.tsv +6 -0
- data/support/codes/160.tsv +0 -0
- data/support/codes/161.tsv +3 -0
- data/support/codes/162.tsv +3 -0
- data/support/codes/163.tsv +7 -0
- data/support/codes/164.tsv +2 -0
- data/support/codes/165.tsv +2 -0
- data/support/codes/166.tsv +2 -0
- data/support/codes/167.tsv +3 -0
- data/support/codes/168.tsv +2 -0
- data/support/codes/169.tsv +3 -0
- data/support/codes/170.tsv +0 -0
- data/support/codes/171.tsv +2 -0
- data/support/codes/172.tsv +1 -0
- data/support/codes/173.tsv +2 -0
- data/support/codes/174.tsv +2 -0
- data/support/codes/175.tsv +175 -0
- data/support/codes/176.tsv +12 -0
- data/support/codes/177.tsv +2 -0
- data/support/codes/178.tsv +17 -0
- metadata +151 -13
- data/lib/onix/lists/audience_code.rb +0 -17
- data/lib/onix/lists/contributor_role.rb +0 -99
- data/lib/onix/lists/country_code.rb +0 -257
- data/lib/onix/lists/language_code.rb +0 -498
- data/lib/onix/lists/language_role.rb +0 -18
- data/lib/onix/lists/notification_type.rb +0 -19
- data/lib/onix/lists/product_availability.rb +0 -32
- data/lib/onix/lists/product_form.rb +0 -99
- data/lib/onix/lists/product_form_detail.rb +0 -157
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 55
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.8.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- James Healy
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-10-18 00:00:00 +11:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -86,17 +86,10 @@ files:
|
|
|
86
86
|
- lib/onix/sender_identifier.rb
|
|
87
87
|
- lib/onix/header.rb
|
|
88
88
|
- lib/onix/measure.rb
|
|
89
|
-
- lib/onix/lists
|
|
90
|
-
- lib/onix/lists/notification_type.rb
|
|
91
|
-
- lib/onix/lists/language_role.rb
|
|
92
|
-
- lib/onix/lists/country_code.rb
|
|
93
|
-
- lib/onix/lists/product_form_detail.rb
|
|
94
|
-
- lib/onix/lists/product_availability.rb
|
|
95
|
-
- lib/onix/lists/audience_code.rb
|
|
96
|
-
- lib/onix/lists/language_code.rb
|
|
97
|
-
- lib/onix/lists/contributor_role.rb
|
|
89
|
+
- lib/onix/lists.rb
|
|
98
90
|
- lib/onix/market_representation.rb
|
|
99
91
|
- lib/onix/audience_range.rb
|
|
92
|
+
- lib/onix/code_list_extractor.rb
|
|
100
93
|
- lib/onix/product_identifier.rb
|
|
101
94
|
- lib/onix/supply_detail.rb
|
|
102
95
|
- lib/onix/language.rb
|
|
@@ -138,11 +131,155 @@ files:
|
|
|
138
131
|
- dtd/2.1r3/iso-amso.ent
|
|
139
132
|
- dtd/2.1r3/iso-grk3.ent
|
|
140
133
|
- dtd/2.1r3/onix-xhtml.elt
|
|
134
|
+
- support/codes/009.tsv
|
|
135
|
+
- support/codes/102.tsv
|
|
136
|
+
- support/codes/157.tsv
|
|
137
|
+
- support/codes/176.tsv
|
|
138
|
+
- support/codes/091.tsv
|
|
139
|
+
- support/codes/081.tsv
|
|
140
|
+
- support/codes/010.tsv
|
|
141
|
+
- support/codes/028.tsv
|
|
142
|
+
- support/codes/139.tsv
|
|
143
|
+
- support/codes/166.tsv
|
|
144
|
+
- support/codes/064.tsv
|
|
145
|
+
- support/codes/069.tsv
|
|
146
|
+
- support/codes/006.tsv
|
|
147
|
+
- support/codes/045.tsv
|
|
148
|
+
- support/codes/140.tsv
|
|
149
|
+
- support/codes/094.tsv
|
|
150
|
+
- support/codes/055.tsv
|
|
151
|
+
- support/codes/036.tsv
|
|
152
|
+
- support/codes/165.tsv
|
|
153
|
+
- support/codes/061.tsv
|
|
154
|
+
- support/codes/098.tsv
|
|
155
|
+
- support/codes/017.tsv
|
|
156
|
+
- support/codes/082.tsv
|
|
157
|
+
- support/codes/050.tsv
|
|
158
|
+
- support/codes/026.tsv
|
|
159
|
+
- support/codes/046.tsv
|
|
160
|
+
- support/codes/095.tsv
|
|
161
|
+
- support/codes/088.tsv
|
|
162
|
+
- support/codes/092.tsv
|
|
163
|
+
- support/codes/049.tsv
|
|
164
|
+
- support/codes/084.tsv
|
|
165
|
+
- support/codes/175.tsv
|
|
166
|
+
- support/codes/171.tsv
|
|
167
|
+
- support/codes/023.tsv
|
|
168
|
+
- support/codes/051.tsv
|
|
169
|
+
- support/codes/027.tsv
|
|
170
|
+
- support/codes/121.tsv
|
|
171
|
+
- support/codes/154.tsv
|
|
172
|
+
- support/codes/087.tsv
|
|
173
|
+
- support/codes/168.tsv
|
|
174
|
+
- support/codes/085.tsv
|
|
175
|
+
- support/codes/052.tsv
|
|
176
|
+
- support/codes/141.tsv
|
|
177
|
+
- support/codes/056.tsv
|
|
178
|
+
- support/codes/086.tsv
|
|
179
|
+
- support/codes/145.tsv
|
|
180
|
+
- support/codes/013.tsv
|
|
181
|
+
- support/codes/089.tsv
|
|
182
|
+
- support/codes/047.tsv
|
|
183
|
+
- support/codes/163.tsv
|
|
184
|
+
- support/codes/077.tsv
|
|
185
|
+
- support/codes/039.tsv
|
|
186
|
+
- support/codes/042.tsv
|
|
187
|
+
- support/codes/018.tsv
|
|
188
|
+
- support/codes/074.tsv
|
|
189
|
+
- support/codes/076.tsv
|
|
190
|
+
- support/codes/093.tsv
|
|
191
|
+
- support/codes/153.tsv
|
|
192
|
+
- support/codes/003.tsv
|
|
193
|
+
- support/codes/164.tsv
|
|
194
|
+
- support/codes/162.tsv
|
|
195
|
+
- support/codes/147.tsv
|
|
196
|
+
- support/codes/071.tsv
|
|
197
|
+
- support/codes/099.tsv
|
|
198
|
+
- support/codes/159.tsv
|
|
199
|
+
- support/codes/005.tsv
|
|
200
|
+
- support/codes/172.tsv
|
|
201
|
+
- support/codes/177.tsv
|
|
202
|
+
- support/codes/169.tsv
|
|
203
|
+
- support/codes/065.tsv
|
|
204
|
+
- support/codes/156.tsv
|
|
205
|
+
- support/codes/048.tsv
|
|
206
|
+
- support/codes/053.tsv
|
|
207
|
+
- support/codes/070.tsv
|
|
208
|
+
- support/codes/063.tsv
|
|
209
|
+
- support/codes/078.tsv
|
|
210
|
+
- support/codes/041.tsv
|
|
211
|
+
- support/codes/008.tsv
|
|
212
|
+
- support/codes/079.tsv
|
|
213
|
+
- support/codes/015.tsv
|
|
214
|
+
- support/codes/090.tsv
|
|
215
|
+
- support/codes/150.tsv
|
|
216
|
+
- support/codes/158.tsv
|
|
217
|
+
- support/codes/146.tsv
|
|
218
|
+
- support/codes/021.tsv
|
|
219
|
+
- support/codes/022.tsv
|
|
220
|
+
- support/codes/067.tsv
|
|
221
|
+
- support/codes/142.tsv
|
|
222
|
+
- support/codes/060.tsv
|
|
223
|
+
- support/codes/072.tsv
|
|
224
|
+
- support/codes/155.tsv
|
|
225
|
+
- support/codes/174.tsv
|
|
226
|
+
- support/codes/019.tsv
|
|
227
|
+
- support/codes/058.tsv
|
|
228
|
+
- support/codes/167.tsv
|
|
229
|
+
- support/codes/148.tsv
|
|
230
|
+
- support/codes/032.tsv
|
|
231
|
+
- support/codes/044.tsv
|
|
232
|
+
- support/codes/149.tsv
|
|
233
|
+
- support/codes/083.tsv
|
|
234
|
+
- support/codes/160.tsv
|
|
235
|
+
- support/codes/073.tsv
|
|
236
|
+
- support/codes/173.tsv
|
|
237
|
+
- support/codes/138.tsv
|
|
238
|
+
- support/codes/016.tsv
|
|
239
|
+
- support/codes/033.tsv
|
|
240
|
+
- support/codes/151.tsv
|
|
241
|
+
- support/codes/101.tsv
|
|
242
|
+
- support/codes/100.tsv
|
|
243
|
+
- support/codes/031.tsv
|
|
244
|
+
- support/codes/025.tsv
|
|
245
|
+
- support/codes/020.tsv
|
|
246
|
+
- support/codes/040.tsv
|
|
247
|
+
- support/codes/062.tsv
|
|
248
|
+
- support/codes/054.tsv
|
|
249
|
+
- support/codes/152.tsv
|
|
250
|
+
- support/codes/143.tsv
|
|
251
|
+
- support/codes/011.tsv
|
|
252
|
+
- support/codes/030.tsv
|
|
253
|
+
- support/codes/097.tsv
|
|
254
|
+
- support/codes/170.tsv
|
|
255
|
+
- support/codes/178.tsv
|
|
256
|
+
- support/codes/043.tsv
|
|
257
|
+
- support/codes/038.tsv
|
|
258
|
+
- support/codes/144.tsv
|
|
259
|
+
- support/codes/066.tsv
|
|
260
|
+
- support/codes/029.tsv
|
|
261
|
+
- support/codes/096.tsv
|
|
262
|
+
- support/codes/059.tsv
|
|
263
|
+
- support/codes/080.tsv
|
|
264
|
+
- support/codes/002.tsv
|
|
265
|
+
- support/codes/035.tsv
|
|
266
|
+
- support/codes/068.tsv
|
|
267
|
+
- support/codes/057.tsv
|
|
268
|
+
- support/codes/007.tsv
|
|
269
|
+
- support/codes/012.tsv
|
|
270
|
+
- support/codes/161.tsv
|
|
271
|
+
- support/codes/014.tsv
|
|
272
|
+
- support/codes/075.tsv
|
|
273
|
+
- support/codes/034.tsv
|
|
274
|
+
- support/codes/001.tsv
|
|
275
|
+
- support/codes/024.tsv
|
|
276
|
+
- support/codes/037.tsv
|
|
141
277
|
- support/switch-onix-2.1-short-to-reference.xsl
|
|
142
278
|
- support/entities.txt
|
|
143
279
|
- support/switch-onix-tagnames-2.0.xsl
|
|
144
280
|
- support/extract.rb
|
|
145
281
|
- support/switch-onix-tagnames-1.1.xsl
|
|
282
|
+
- spec/lists_spec.rb
|
|
146
283
|
- spec/series_spec.rb
|
|
147
284
|
- spec/media_file_spec.rb
|
|
148
285
|
- spec/normaliser_spec.rb
|
|
@@ -207,6 +344,7 @@ signing_key:
|
|
|
207
344
|
specification_version: 3
|
|
208
345
|
summary: A convient mapping between ruby objects and the ONIX XML specification
|
|
209
346
|
test_files:
|
|
347
|
+
- spec/lists_spec.rb
|
|
210
348
|
- spec/series_spec.rb
|
|
211
349
|
- spec/media_file_spec.rb
|
|
212
350
|
- spec/normaliser_spec.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
module ONIX
|
|
4
|
-
module Lists
|
|
5
|
-
# Code list 91
|
|
6
|
-
COUNTRY_CODE = {
|
|
7
|
-
1 => "General/trade",
|
|
8
|
-
2 => "Children/juvenile",
|
|
9
|
-
3 => "Young adult",
|
|
10
|
-
4 => "Primary & secondary/elementary & high school",
|
|
11
|
-
5 => "College/higher education",
|
|
12
|
-
6 => "Professional and scholarly",
|
|
13
|
-
7 => "ELT/ESL",
|
|
14
|
-
8 => "Adult education",
|
|
15
|
-
}
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
module ONIX
|
|
4
|
-
module Lists
|
|
5
|
-
# Code list 17
|
|
6
|
-
CONTRIBUTOR_ROLE = {
|
|
7
|
-
"A01" => "By (author)",
|
|
8
|
-
"A02" => "With",
|
|
9
|
-
"A03" => "Screenplay by",
|
|
10
|
-
"A04" => "Libretto by",
|
|
11
|
-
"A05" => "Lyrics by",
|
|
12
|
-
"A06" => "By (composer)",
|
|
13
|
-
"A07" => "By (artist)",
|
|
14
|
-
"A08" => "By (photographer)",
|
|
15
|
-
"A09" => "Created by",
|
|
16
|
-
"A10" => "From an idea by",
|
|
17
|
-
"A11" => "Designed by",
|
|
18
|
-
"A12" => "Illustrated by",
|
|
19
|
-
"A13" => "Photographs by",
|
|
20
|
-
"A14" => "Text by",
|
|
21
|
-
"A15" => "Preface by",
|
|
22
|
-
"A16" => "Prologue by",
|
|
23
|
-
"A17" => "Summary by",
|
|
24
|
-
"A18" => "Supplement by",
|
|
25
|
-
"A19" => "Afterword by",
|
|
26
|
-
"A20" => "Notes by",
|
|
27
|
-
"A21" => "Commentaries by",
|
|
28
|
-
"A22" => "Epilogue by",
|
|
29
|
-
"A23" => "Foreword by",
|
|
30
|
-
"A24" => "Introduction by",
|
|
31
|
-
"A25" => "Footnotes by",
|
|
32
|
-
"A26" => "Memoir by",
|
|
33
|
-
"A27" => "Experiments by",
|
|
34
|
-
"A29" => "Introduction and notes by",
|
|
35
|
-
"A30" => "Software written by",
|
|
36
|
-
"A31" => "Book and lyrics by",
|
|
37
|
-
"A32" => "Contributions by",
|
|
38
|
-
"A33" => "Appendix by",
|
|
39
|
-
"A34" => "Index by",
|
|
40
|
-
"A35" => "Drawings by",
|
|
41
|
-
"A36" => "Cover design or artwork by",
|
|
42
|
-
"A37" => "Preliminary work by",
|
|
43
|
-
"A38" => "Original author",
|
|
44
|
-
"A39" => "Maps by",
|
|
45
|
-
"A40" => "Inked or colored by",
|
|
46
|
-
"A41" => "Pop-ups by",
|
|
47
|
-
"A42" => "Continued by",
|
|
48
|
-
"A43" => "Interviewer",
|
|
49
|
-
"A44" => "Interviewee",
|
|
50
|
-
"A99" => "Other primary creator",
|
|
51
|
-
"B01" => "Edited by",
|
|
52
|
-
"B02" => "Revised by",
|
|
53
|
-
"B03" => "Retold by",
|
|
54
|
-
"B04" => "Abridged by",
|
|
55
|
-
"B05" => "Adapted by",
|
|
56
|
-
"B06" => "Translated by",
|
|
57
|
-
"B07" => "As told by",
|
|
58
|
-
"B08" => "Translated with commentary by",
|
|
59
|
-
"B09" => "Series edited by",
|
|
60
|
-
"B10" => "Edited and translated by",
|
|
61
|
-
"B11" => "Editor-in-chief",
|
|
62
|
-
"B12" => "Guest editor",
|
|
63
|
-
"B13" => "Volume editor",
|
|
64
|
-
"B14" => "Editorial board member",
|
|
65
|
-
"B15" => "Editorial coordination by",
|
|
66
|
-
"B16" => "Managing editor",
|
|
67
|
-
"B17" => "Founded by",
|
|
68
|
-
"B18" => "Prepared for publication by",
|
|
69
|
-
"B19" => "Associate editor",
|
|
70
|
-
"B20" => "Consultant editor",
|
|
71
|
-
"B21" => "General editor",
|
|
72
|
-
"B22" => "Dramatized by",
|
|
73
|
-
"B23" => "General rapporteur",
|
|
74
|
-
"B24" => "Literary editor",
|
|
75
|
-
"B25" => "Arranged by (music)",
|
|
76
|
-
"B99" => "Other adaptation by",
|
|
77
|
-
"C01" => "Compiled by",
|
|
78
|
-
"C02" => "Selected by",
|
|
79
|
-
"C99" => "Other compilation by",
|
|
80
|
-
"D01" => "Producer",
|
|
81
|
-
"D02" => "Director",
|
|
82
|
-
"D03" => "Conductor",
|
|
83
|
-
"D99" => "Other direction by",
|
|
84
|
-
"E01" => "Actor",
|
|
85
|
-
"E02" => "Dancer",
|
|
86
|
-
"E03" => "Narrator",
|
|
87
|
-
"E04" => "Commentator",
|
|
88
|
-
"E05" => "Vocal soloist",
|
|
89
|
-
"E06" => "Instrumental soloist",
|
|
90
|
-
"E07" => 'Read by',
|
|
91
|
-
"E08" => "Performed by (orchestra, band, ensemble)",
|
|
92
|
-
"E99" => "Performed by",
|
|
93
|
-
"F01" => "Filmed/photographed by",
|
|
94
|
-
"F99" => "Other recording by",
|
|
95
|
-
"Z01" => "Assisted by",
|
|
96
|
-
"Z99" => "Other",
|
|
97
|
-
}
|
|
98
|
-
end
|
|
99
|
-
end
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
module ONIX
|
|
4
|
-
module Lists
|
|
5
|
-
# Code list 91
|
|
6
|
-
COUNTRY_CODE = {
|
|
7
|
-
"AD" => "Andorra",
|
|
8
|
-
"AE" => "United Arab Emirates",
|
|
9
|
-
"AF" => "Afghanistan",
|
|
10
|
-
"AG" => "Antigua and Barbuda",
|
|
11
|
-
"AI" => "Anguilla",
|
|
12
|
-
"AL" => "Albania",
|
|
13
|
-
"AM" => "Armenia",
|
|
14
|
-
"AN" => "Netherlands Antilles",
|
|
15
|
-
"AO" => "Angola",
|
|
16
|
-
"AQ" => "Antarctica",
|
|
17
|
-
"AR" => "Argentina",
|
|
18
|
-
"AS" => "American Samoa",
|
|
19
|
-
"AT" => "Austria",
|
|
20
|
-
"AU" => "Australia",
|
|
21
|
-
"AW" => "Aruba",
|
|
22
|
-
"AX" => "Aland Islands",
|
|
23
|
-
"AZ" => "Azerbaijan",
|
|
24
|
-
"BA" => "Bosnia and Herzegovina",
|
|
25
|
-
"BB" => "Barbados",
|
|
26
|
-
"BD" => "Bangladesh",
|
|
27
|
-
"BE" => "Belgium",
|
|
28
|
-
"BF" => "Burkina Faso",
|
|
29
|
-
"BG" => "Bulgaria",
|
|
30
|
-
"BH" => "Bahrain",
|
|
31
|
-
"BI" => "Burundi",
|
|
32
|
-
"BJ" => "Benin",
|
|
33
|
-
"BL" => "Saint Barthelemy",
|
|
34
|
-
"BM" => "Bermuda",
|
|
35
|
-
"BN" => "Brunei Darussalam",
|
|
36
|
-
"BO" => "Bolivia",
|
|
37
|
-
"BR" => "Brazil",
|
|
38
|
-
"BS" => "Bahamas",
|
|
39
|
-
"BT" => "Bhutan",
|
|
40
|
-
"BV" => "Bouvet Island",
|
|
41
|
-
"BW" => "Botswana",
|
|
42
|
-
"BY" => "Belarus",
|
|
43
|
-
"BZ" => "Belize",
|
|
44
|
-
"CA" => "Canada",
|
|
45
|
-
"CC" => "Cocos (Keeling) Islands",
|
|
46
|
-
"CD" => "Congo, Democratic Republic of the",
|
|
47
|
-
"CF" => "Central African Republic",
|
|
48
|
-
"CG" => "Congo",
|
|
49
|
-
"CH" => "Switzerland",
|
|
50
|
-
"CI" => "Cote D'Ivoire",
|
|
51
|
-
"CK" => "Cook Islands",
|
|
52
|
-
"CL" => "Chile",
|
|
53
|
-
"CM" => "Cameroon",
|
|
54
|
-
"CN" => "China",
|
|
55
|
-
"CO" => "Colombia",
|
|
56
|
-
"CR" => "Costa Rica",
|
|
57
|
-
"CS" => "Serbia and Montenegro",
|
|
58
|
-
"CU" => "Cuba",
|
|
59
|
-
"CV" => "Cape Verde",
|
|
60
|
-
"CX" => "Christmas Island",
|
|
61
|
-
"CY" => "Cyprus",
|
|
62
|
-
"CZ" => "Czech Republic",
|
|
63
|
-
"DE" => "Germany",
|
|
64
|
-
"DJ" => "Djibouti",
|
|
65
|
-
"DK" => "Denmark",
|
|
66
|
-
"DM" => "Dominica",
|
|
67
|
-
"DO" => "Dominican Republic",
|
|
68
|
-
"DZ" => "Algeria",
|
|
69
|
-
"EC" => "Ecuador",
|
|
70
|
-
"EE" => "Estonia",
|
|
71
|
-
"EG" => "Egypt",
|
|
72
|
-
"EH" => "Western Sahara",
|
|
73
|
-
"ER" => "Eritrea",
|
|
74
|
-
"ES" => "Spain",
|
|
75
|
-
"ET" => "Ethiopia",
|
|
76
|
-
"FI" => "Finland",
|
|
77
|
-
"FJ" => "Fiji",
|
|
78
|
-
"FK" => "Falkland Islands (Malvinas)",
|
|
79
|
-
"FM" => "Micronesia, Federated States of",
|
|
80
|
-
"FO" => "Faroe Islands",
|
|
81
|
-
"FR" => "France",
|
|
82
|
-
"GA" => "Gabon",
|
|
83
|
-
"GB" => "United Kingdom",
|
|
84
|
-
"GD" => "Grenada",
|
|
85
|
-
"GE" => "Georgia",
|
|
86
|
-
"GF" => "French Guiana",
|
|
87
|
-
"GG" => "Guernsey",
|
|
88
|
-
"GH" => "Ghana",
|
|
89
|
-
"GI" => "Gibraltar",
|
|
90
|
-
"GL" => "Greenland",
|
|
91
|
-
"GM" => "Gambia",
|
|
92
|
-
"GN" => "Guinea",
|
|
93
|
-
"GP" => "Guadeloupe",
|
|
94
|
-
"GQ" => "Equatorial Guinea",
|
|
95
|
-
"GR" => "Greece",
|
|
96
|
-
"GS" => "South Georgia and the South Sandwich Islands",
|
|
97
|
-
"GT" => "Guatemala",
|
|
98
|
-
"GU" => "Guam",
|
|
99
|
-
"GW" => "Guinea-Bissau",
|
|
100
|
-
"GY" => "Guyana",
|
|
101
|
-
"HK" => "Hong Kong",
|
|
102
|
-
"HM" => "Heard Island and McDonald Islands",
|
|
103
|
-
"HN" => "Honduras",
|
|
104
|
-
"HR" => "Croatia",
|
|
105
|
-
"HT" => "Haiti",
|
|
106
|
-
"HU" => "Hungary",
|
|
107
|
-
"ID" => "Indonesia",
|
|
108
|
-
"IE" => "Ireland",
|
|
109
|
-
"IL" => "Israel",
|
|
110
|
-
"IM" => "Isle of Man",
|
|
111
|
-
"IN" => "India",
|
|
112
|
-
"IO" => "British Indian Ocean Territory",
|
|
113
|
-
"IQ" => "Iraq",
|
|
114
|
-
"IR" => "Iran, Islamic Republic of",
|
|
115
|
-
"IS" => "Iceland",
|
|
116
|
-
"IT" => "Italy",
|
|
117
|
-
"JE" => "Jersey",
|
|
118
|
-
"JM" => "Jamaica",
|
|
119
|
-
"JO" => "Jordan",
|
|
120
|
-
"JP" => "Japan",
|
|
121
|
-
"KE" => "Kenya",
|
|
122
|
-
"KG" => "Kyrgyzstan",
|
|
123
|
-
"KH" => "Cambodia",
|
|
124
|
-
"KI" => "Kiribati",
|
|
125
|
-
"KM" => "Comoros",
|
|
126
|
-
"KN" => "Saint Kitts and Nevis",
|
|
127
|
-
"KP" => "Korea, Democratic People's Republic of",
|
|
128
|
-
"KR" => "Korea, Republic of",
|
|
129
|
-
"KW" => "Kuwait",
|
|
130
|
-
"KY" => "Cayman Islands",
|
|
131
|
-
"KZ" => "Kazakhstan",
|
|
132
|
-
"LA" => "Lao People's Democratic Republic",
|
|
133
|
-
"LB" => "Lebanon",
|
|
134
|
-
"LC" => "Saint Lucia",
|
|
135
|
-
"LI" => "Liechtenstein",
|
|
136
|
-
"LK" => "Sri Lanka",
|
|
137
|
-
"LR" => "Liberia",
|
|
138
|
-
"LS" => "Lesotho",
|
|
139
|
-
"LT" => "Lithuania",
|
|
140
|
-
"LU" => "Luxembourg",
|
|
141
|
-
"LV" => "Latvia",
|
|
142
|
-
"LY" => "Libyan Arab Jamahiriya",
|
|
143
|
-
"MA" => "Morocco",
|
|
144
|
-
"MC" => "Monaco",
|
|
145
|
-
"MD" => "Moldova, Republic of",
|
|
146
|
-
"ME" => "Montenegro",
|
|
147
|
-
"MF" => "Saint Martin, French part",
|
|
148
|
-
"MG" => "Madagascar",
|
|
149
|
-
"MH" => "Marshall Islands",
|
|
150
|
-
"MK" => "Macedonia, the former Yugoslav Republic of",
|
|
151
|
-
"ML" => "Mali",
|
|
152
|
-
"MM" => "Myanmar",
|
|
153
|
-
"MN" => "Mongolia",
|
|
154
|
-
"MO" => "Macao",
|
|
155
|
-
"MP" => "Northern Mariana Islands",
|
|
156
|
-
"MQ" => "Martinique",
|
|
157
|
-
"MR" => "Mauritania",
|
|
158
|
-
"MS" => "Montserrat",
|
|
159
|
-
"MT" => "Malta",
|
|
160
|
-
"MU" => "Mauritius",
|
|
161
|
-
"MV" => "Maldives",
|
|
162
|
-
"MW" => "Malawi",
|
|
163
|
-
"MX" => "Mexico",
|
|
164
|
-
"MY" => "Malaysia",
|
|
165
|
-
"MZ" => "Mozambique",
|
|
166
|
-
"NA" => "Namibia",
|
|
167
|
-
"NC" => "New Caledonia",
|
|
168
|
-
"NE" => "Niger",
|
|
169
|
-
"NF" => "Norfolk Island",
|
|
170
|
-
"NG" => "Nigeria",
|
|
171
|
-
"NI" => "Nicaragua",
|
|
172
|
-
"NL" => "Netherlands",
|
|
173
|
-
"NO" => "Norway",
|
|
174
|
-
"NP" => "Nepal",
|
|
175
|
-
"NR" => "Nauru",
|
|
176
|
-
"NU" => "Niue",
|
|
177
|
-
"NZ" => "New Zealand",
|
|
178
|
-
"OM" => "Oman",
|
|
179
|
-
"PA" => "Panama",
|
|
180
|
-
"PE" => "Peru",
|
|
181
|
-
"PF" => "French Polynesia",
|
|
182
|
-
"PG" => "Papua New Guinea",
|
|
183
|
-
"PH" => "Philippines",
|
|
184
|
-
"PK" => "Pakistan",
|
|
185
|
-
"PL" => "Poland",
|
|
186
|
-
"PM" => "Saint Pierre and Miquelon",
|
|
187
|
-
"PN" => "Pitcairn",
|
|
188
|
-
"PR" => "Puerto Rico",
|
|
189
|
-
"PS" => "Palestinian Territory, Occupied",
|
|
190
|
-
"PT" => "Portugal",
|
|
191
|
-
"PW" => "Palau",
|
|
192
|
-
"PY" => "Paraguay",
|
|
193
|
-
"QA" => "Qatar",
|
|
194
|
-
"RE" => "Reunion",
|
|
195
|
-
"RO" => "Romania",
|
|
196
|
-
"RS" => "Serbia",
|
|
197
|
-
"RU" => "Russian Federation",
|
|
198
|
-
"RW" => "Rwanda",
|
|
199
|
-
"SA" => "Saudi Arabia",
|
|
200
|
-
"SB" => "Solomon Islands",
|
|
201
|
-
"SC" => "Seychelles",
|
|
202
|
-
"SD" => "Sudan",
|
|
203
|
-
"SE" => "Sweden",
|
|
204
|
-
"SG" => "Singapore",
|
|
205
|
-
"SH" => "Saint Helena",
|
|
206
|
-
"SI" => "Slovenia",
|
|
207
|
-
"SJ" => "Svalbard and Jan Mayen",
|
|
208
|
-
"SK" => "Slovakia",
|
|
209
|
-
"SL" => "Sierra Leone",
|
|
210
|
-
"SM" => "San Marino",
|
|
211
|
-
"SN" => "Senegal",
|
|
212
|
-
"SO" => "Somalia",
|
|
213
|
-
"SR" => "Suriname",
|
|
214
|
-
"ST" => "Sao Tome and Principe",
|
|
215
|
-
"SV" => "El Salvador",
|
|
216
|
-
"SY" => "Syrian Arab Republic",
|
|
217
|
-
"SZ" => "Swaziland",
|
|
218
|
-
"TC" => "Turks and Caicos Islands",
|
|
219
|
-
"TD" => "Chad",
|
|
220
|
-
"TF" => "French Southern Territories",
|
|
221
|
-
"TG" => "Togo",
|
|
222
|
-
"TH" => "Thailand",
|
|
223
|
-
"TJ" => "Tajikistan",
|
|
224
|
-
"TK" => "Tokelau",
|
|
225
|
-
"TL" => "Timor-Leste",
|
|
226
|
-
"TM" => "Turkmenistan",
|
|
227
|
-
"TN" => "Tunisia",
|
|
228
|
-
"TO" => "Tonga",
|
|
229
|
-
"TR" => "Turkey",
|
|
230
|
-
"TT" => "Trinidad and Tobago",
|
|
231
|
-
"TV" => "Tuvalu",
|
|
232
|
-
"TW" => "Taiwan, Province of China",
|
|
233
|
-
"TZ" => "Tanzania, United Republic of",
|
|
234
|
-
"UA" => "Ukraine",
|
|
235
|
-
"UG" => "Uganda",
|
|
236
|
-
"UM" => "United States Minor Outlying Islands",
|
|
237
|
-
"US" => "United States",
|
|
238
|
-
"UY" => "Uruguay",
|
|
239
|
-
"UZ" => "Uzbekistan",
|
|
240
|
-
"VA" => "Holy See (Vatican City State)",
|
|
241
|
-
"VC" => "Saint Vincent and the Grenadines",
|
|
242
|
-
"VE" => "Venezuela, Bolivarian Republic of",
|
|
243
|
-
"VG" => "Virgin Islands, British",
|
|
244
|
-
"VI" => "Virgin Islands, US",
|
|
245
|
-
"VN" => "Viet Nam",
|
|
246
|
-
"VU" => "Vanuatu",
|
|
247
|
-
"WF" => "Wallis and Futuna",
|
|
248
|
-
"WS" => "Samoa",
|
|
249
|
-
"YE" => "Yemen",
|
|
250
|
-
"YT" => "Mayotte",
|
|
251
|
-
"YU" => "Yugoslavia",
|
|
252
|
-
"ZA" => "South Africa",
|
|
253
|
-
"ZM" => "Zambia",
|
|
254
|
-
"ZW" => "Zimbabwe",
|
|
255
|
-
}
|
|
256
|
-
end
|
|
257
|
-
end
|