milkfarm-onix 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. data/CHANGELOG +21 -0
  2. data/README.markdown +1 -0
  3. data/lib/onix.rb +4 -17
  4. data/lib/onix/code_list_extractor.rb +69 -0
  5. data/lib/onix/lists.rb +134 -0
  6. data/lib/onix/product.rb +14 -0
  7. data/lib/onix/sl_product.rb +24 -1
  8. data/lib/onix/version.rb +3 -0
  9. data/lib/onix/work_identifier.rb +28 -0
  10. data/spec/apa_product_spec.rb +9 -9
  11. data/spec/audience_range_spec.rb +4 -4
  12. data/spec/contributor_spec.rb +4 -4
  13. data/spec/header_spec.rb +7 -7
  14. data/spec/imprint_spec.rb +4 -4
  15. data/spec/language_spec.rb +4 -4
  16. data/spec/lists_spec.rb +33 -0
  17. data/spec/market_representation_spec.rb +4 -6
  18. data/spec/measure_spec.rb +4 -4
  19. data/spec/media_file_spec.rb +4 -4
  20. data/spec/normaliser_spec.rb +28 -4
  21. data/spec/other_text_spec.rb +4 -4
  22. data/spec/price_spec.rb +4 -4
  23. data/spec/product_identifier_spec.rb +4 -4
  24. data/spec/product_spec.rb +8 -8
  25. data/spec/publisher_spec.rb +4 -4
  26. data/spec/reader_spec.rb +11 -11
  27. data/spec/sales_restriction_spec.rb +4 -5
  28. data/spec/sender_identifier.rb +4 -4
  29. data/spec/series_identifier_spec.rb +4 -4
  30. data/spec/series_spec.rb +4 -4
  31. data/spec/spec_helper.rb +4 -1
  32. data/spec/stock_spec.rb +4 -4
  33. data/spec/subject_spec.rb +4 -5
  34. data/spec/supply_detail_spec.rb +4 -4
  35. data/spec/title_spec.rb +4 -4
  36. data/spec/website_spec.rb +4 -4
  37. data/spec/work_identifier_spec.rb +39 -0
  38. data/spec/writer_spec.rb +7 -7
  39. data/support/codes/001.tsv +10 -0
  40. data/support/codes/002.tsv +5 -0
  41. data/support/codes/003.tsv +7 -0
  42. data/support/codes/005.tsv +13 -0
  43. data/support/codes/006.tsv +76 -0
  44. data/support/codes/007.tsv +123 -0
  45. data/support/codes/008.tsv +7 -0
  46. data/support/codes/009.tsv +7 -0
  47. data/support/codes/010.tsv +34 -0
  48. data/support/codes/011.tsv +11 -0
  49. data/support/codes/012.tsv +11 -0
  50. data/support/codes/013.tsv +7 -0
  51. data/support/codes/014.tsv +4 -0
  52. data/support/codes/015.tsv +13 -0
  53. data/support/codes/016.tsv +6 -0
  54. data/support/codes/017.tsv +90 -0
  55. data/support/codes/018.tsv +3 -0
  56. data/support/codes/019.tsv +7 -0
  57. data/support/codes/020.tsv +0 -0
  58. data/support/codes/021.tsv +31 -0
  59. data/support/codes/022.tsv +9 -0
  60. data/support/codes/023.tsv +9 -0
  61. data/support/codes/024.tsv +11 -0
  62. data/support/codes/025.tsv +29 -0
  63. data/support/codes/026.tsv +75 -0
  64. data/support/codes/027.tsv +75 -0
  65. data/support/codes/028.tsv +8 -0
  66. data/support/codes/029.tsv +16 -0
  67. data/support/codes/030.tsv +15 -0
  68. data/support/codes/031.tsv +3 -0
  69. data/support/codes/032.tsv +2 -0
  70. data/support/codes/033.tsv +36 -0
  71. data/support/codes/034.tsv +14 -0
  72. data/support/codes/035.tsv +6 -0
  73. data/support/codes/036.tsv +3 -0
  74. data/support/codes/037.tsv +6 -0
  75. data/support/codes/038.tsv +36 -0
  76. data/support/codes/039.tsv +8 -0
  77. data/support/codes/040.tsv +6 -0
  78. data/support/codes/041.tsv +6 -0
  79. data/support/codes/042.tsv +16 -0
  80. data/support/codes/043.tsv +4 -0
  81. data/support/codes/044.tsv +13 -0
  82. data/support/codes/045.tsv +12 -0
  83. data/support/codes/046.tsv +3 -0
  84. data/support/codes/047.tsv +4 -0
  85. data/support/codes/048.tsv +11 -0
  86. data/support/codes/049.tsv +84 -0
  87. data/support/codes/050.tsv +8 -0
  88. data/support/codes/051.tsv +27 -0
  89. data/support/codes/052.tsv +1 -0
  90. data/support/codes/053.tsv +3 -0
  91. data/support/codes/054.tsv +23 -0
  92. data/support/codes/055.tsv +13 -0
  93. data/support/codes/056.tsv +2 -0
  94. data/support/codes/057.tsv +5 -0
  95. data/support/codes/058.tsv +21 -0
  96. data/support/codes/059.tsv +4 -0
  97. data/support/codes/060.tsv +2 -0
  98. data/support/codes/061.tsv +3 -0
  99. data/support/codes/062.tsv +5 -0
  100. data/support/codes/063.tsv +0 -0
  101. data/support/codes/064.tsv +13 -0
  102. data/support/codes/065.tsv +25 -0
  103. data/support/codes/066.tsv +4 -0
  104. data/support/codes/067.tsv +2 -0
  105. data/support/codes/068.tsv +15 -0
  106. data/support/codes/069.tsv +4 -0
  107. data/support/codes/070.tsv +2 -0
  108. data/support/codes/071.tsv +9 -0
  109. data/support/codes/072.tsv +7 -0
  110. data/support/codes/073.tsv +36 -0
  111. data/support/codes/074.tsv +489 -0
  112. data/support/codes/075.tsv +2 -0
  113. data/support/codes/076.tsv +12 -0
  114. data/support/codes/077.tsv +19 -0
  115. data/support/codes/078.tsv +148 -0
  116. data/support/codes/079.tsv +17 -0
  117. data/support/codes/080.tsv +19 -0
  118. data/support/codes/081.tsv +11 -0
  119. data/support/codes/082.tsv +17 -0
  120. data/support/codes/083.tsv +68 -0
  121. data/support/codes/084.tsv +10 -0
  122. data/support/codes/085.tsv +23 -0
  123. data/support/codes/086.tsv +5 -0
  124. data/support/codes/087.tsv +6 -0
  125. data/support/codes/088.tsv +0 -0
  126. data/support/codes/089.tsv +1 -0
  127. data/support/codes/090.tsv +11 -0
  128. data/support/codes/091.tsv +248 -0
  129. data/support/codes/092.tsv +7 -0
  130. data/support/codes/093.tsv +13 -0
  131. data/support/codes/094.tsv +3 -0
  132. data/support/codes/095.tsv +3 -0
  133. data/support/codes/096.tsv +185 -0
  134. data/support/codes/097.tsv +1 -0
  135. data/support/codes/098.tsv +21 -0
  136. data/support/codes/099.tsv +24 -0
  137. data/support/codes/100.tsv +4 -0
  138. data/support/codes/101.tsv +2 -0
  139. data/support/codes/102.tsv +3 -0
  140. data/support/codes/121.tsv +127 -0
  141. data/support/codes/138.tsv +6 -0
  142. data/support/codes/139.tsv +70 -0
  143. data/support/codes/140.tsv +7 -0
  144. data/support/codes/141.tsv +10 -0
  145. data/support/codes/142.tsv +12 -0
  146. data/support/codes/143.tsv +7 -0
  147. data/support/codes/144.tsv +4 -0
  148. data/support/codes/145.tsv +5 -0
  149. data/support/codes/146.tsv +3 -0
  150. data/support/codes/147.tsv +7 -0
  151. data/support/codes/148.tsv +3 -0
  152. data/support/codes/149.tsv +4 -0
  153. data/support/codes/150.tsv +124 -0
  154. data/support/codes/151.tsv +7 -0
  155. data/support/codes/152.tsv +2 -0
  156. data/support/codes/153.tsv +14 -0
  157. data/support/codes/154.tsv +9 -0
  158. data/support/codes/155.tsv +5 -0
  159. data/support/codes/156.tsv +4 -0
  160. data/support/codes/157.tsv +4 -0
  161. data/support/codes/158.tsv +24 -0
  162. data/support/codes/159.tsv +6 -0
  163. data/support/codes/160.tsv +0 -0
  164. data/support/codes/161.tsv +3 -0
  165. data/support/codes/162.tsv +3 -0
  166. data/support/codes/163.tsv +7 -0
  167. data/support/codes/164.tsv +2 -0
  168. data/support/codes/165.tsv +2 -0
  169. data/support/codes/166.tsv +2 -0
  170. data/support/codes/167.tsv +3 -0
  171. data/support/codes/168.tsv +2 -0
  172. data/support/codes/169.tsv +3 -0
  173. data/support/codes/170.tsv +0 -0
  174. data/support/codes/171.tsv +2 -0
  175. data/support/codes/172.tsv +1 -0
  176. data/support/codes/173.tsv +2 -0
  177. data/support/codes/174.tsv +2 -0
  178. data/support/codes/175.tsv +175 -0
  179. data/support/codes/176.tsv +12 -0
  180. data/support/codes/177.tsv +2 -0
  181. data/support/codes/178.tsv +17 -0
  182. data/support/switch-onix-2.1-short-to-reference.xsl +3 -2
  183. metadata +226 -38
  184. data/lib/onix/lists/audience_code.rb +0 -17
  185. data/lib/onix/lists/contributor_role.rb +0 -99
  186. data/lib/onix/lists/country_code.rb +0 -257
  187. data/lib/onix/lists/language_code.rb +0 -498
  188. data/lib/onix/lists/language_role.rb +0 -18
  189. data/lib/onix/lists/notification_type.rb +0 -19
  190. data/lib/onix/lists/product_availability.rb +0 -32
  191. data/lib/onix/lists/product_form.rb +0 -99
  192. data/lib/onix/lists/product_form_detail.rb +0 -157
@@ -0,0 +1,12 @@
1
+ 01 Android An Open Source mobile device operating system originally developed by Google and supported by the Open Handset Alliance
2
+ 02 BlackBerry OS A proprietary operating system supplied by Research In Motion for its BlackBerry handheld devices
3
+ 03 iPhone OS A proprietary operating system based on Mac OS X supplied by Apple for its iPhone and iPod Touch handheld devices
4
+ 04 Linux An operating system based on the Linux kernel
5
+ 05 Mac OS A proprietary operating system supplied by Apple on Macintosh computers up to 2002
6
+ 06 Mac OS X A proprietary operating system supplied by Apple on Macintosh computers up to 2002
7
+ 07 Palm OS A proprietary operating system (aka Garnet OS) originally developed for handheld devices
8
+ 08 Palm webOS A Linux-based operating system for handheld devices
9
+ 09 Symbian An operating system for hand-held devices, originally developed as a proprietary system, but planned to become wholly Open Source by 2010
10
+ 10 Windows A proprietary operating system supplied by Microsoft
11
+ 11 Windows CE A proprietary operating system (aka Windows Embedded Compact, WinCE) supplied by Microsoft for small-scale devices
12
+ 12 Windows Mobile A proprietary operating system supplied by Microsoft for mobile devices
@@ -0,0 +1,2 @@
1
+ 50 Date of birth
2
+ 51 Date of death
@@ -0,0 +1,17 @@
1
+ A103 MP3
2
+ A104 WAV
3
+ A105 Real Audio
4
+ A106 WMA Windows Media Audio format
5
+ A107 AAC Advanced Audio Coding format
6
+ D101 Real Video
7
+ D102 QuickTime
8
+ D103 AVI
9
+ D104 WMV Windows Media Video format
10
+ D105 MPEG-4
11
+ D106 FLV Flash Video
12
+ D107 SWF ShockWave
13
+ D401 PDF
14
+ D501 GIF
15
+ D502 JPEG
16
+ D503 PNG
17
+ D504 TIFF
@@ -8,8 +8,9 @@
8
8
  <xsl:template match="*">
9
9
  <xsl:variable name="target-name">
10
10
  <xsl:choose>
11
- <xsl:when test="$target='short'"><xsl:value-of select="@shortname"/></xsl:when>
12
- <xsl:otherwise><xsl:value-of select="@refname"/></xsl:otherwise>
11
+ <xsl:when test="$target='short' and @shortname"><xsl:value-of select="@shortname"/></xsl:when>
12
+ <xsl:when test="$target='reference' and @refname"><xsl:value-of select="@refname"/></xsl:when>
13
+ <xsl:otherwise><xsl:value-of select="name()"/></xsl:otherwise>
13
14
  </xsl:choose>
14
15
  </xsl:variable>
15
16
  <xsl:element name="{$target-name}">
metadata CHANGED
@@ -1,27 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milkfarm-onix
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
5
- prerelease: false
4
+ hash: 49
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 6
10
- version: 0.8.6
9
+ - 7
10
+ version: 0.8.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Healy
14
+ - milkfarm productions
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-10-17 00:00:00 -07:00
19
+ date: 2011-03-12 23:00:00 -08:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
- name: yob-roxml
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ">="
@@ -32,12 +31,12 @@ dependencies:
32
31
  - 1
33
32
  - 6
34
33
  version: 3.1.6
34
+ prerelease: false
35
35
  type: :runtime
36
- version_requirements: *id001
36
+ requirement: *id001
37
+ name: roxml
37
38
  - !ruby/object:Gem::Dependency
38
- name: andand
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ">="
@@ -46,12 +45,26 @@ dependencies:
46
45
  segments:
47
46
  - 0
48
47
  version: "0"
48
+ prerelease: false
49
49
  type: :runtime
50
- version_requirements: *id002
50
+ requirement: *id002
51
+ name: i18n
51
52
  - !ruby/object:Gem::Dependency
52
- name: nokogiri
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
53
62
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
63
+ type: :runtime
64
+ requirement: *id003
65
+ name: andand
66
+ - !ruby/object:Gem::Dependency
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
55
68
  none: false
56
69
  requirements:
57
70
  - - ">="
@@ -61,10 +74,43 @@ dependencies:
61
74
  - 1
62
75
  - 4
63
76
  version: "1.4"
77
+ prerelease: false
64
78
  type: :runtime
65
- version_requirements: *id003
66
- description: A convient mapping between ruby objects and the ONIX XML specification
67
- email: jimmy@deefa.com
79
+ requirement: *id004
80
+ name: nokogiri
81
+ - !ruby/object:Gem::Dependency
82
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 0
90
+ version: "0"
91
+ prerelease: false
92
+ type: :development
93
+ requirement: *id005
94
+ name: rake
95
+ - !ruby/object:Gem::Dependency
96
+ version_requirements: &id006 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ hash: 1
102
+ segments:
103
+ - 2
104
+ - 1
105
+ version: "2.1"
106
+ prerelease: false
107
+ type: :development
108
+ requirement: *id006
109
+ name: rspec
110
+ description: A fork of the original onix gem by James Healy. Differs from original mainly in it's adjustments for the US school/library market as applied in the product wrapper SLProduct.
111
+ email:
112
+ - jimmy@deefa.com
113
+ - stuff@milkfarmproductions.com
68
114
  executables: []
69
115
 
70
116
  extensions: []
@@ -75,19 +121,12 @@ files:
75
121
  - lib/onix/addressee_identifier.rb
76
122
  - lib/onix/apa_product.rb
77
123
  - lib/onix/audience_range.rb
124
+ - lib/onix/code_list_extractor.rb
78
125
  - lib/onix/contributor.rb
79
126
  - lib/onix/header.rb
80
127
  - lib/onix/imprint.rb
81
128
  - lib/onix/language.rb
82
- - lib/onix/lists/audience_code.rb
83
- - lib/onix/lists/contributor_role.rb
84
- - lib/onix/lists/country_code.rb
85
- - lib/onix/lists/language_code.rb
86
- - lib/onix/lists/language_role.rb
87
- - lib/onix/lists/notification_type.rb
88
- - lib/onix/lists/product_availability.rb
89
- - lib/onix/lists/product_form.rb
90
- - lib/onix/lists/product_form_detail.rb
129
+ - lib/onix/lists.rb
91
130
  - lib/onix/market_representation.rb
92
131
  - lib/onix/measure.rb
93
132
  - lib/onix/media_file.rb
@@ -109,12 +148,159 @@ files:
109
148
  - lib/onix/subject.rb
110
149
  - lib/onix/supply_detail.rb
111
150
  - lib/onix/title.rb
151
+ - lib/onix/version.rb
112
152
  - lib/onix/website.rb
153
+ - lib/onix/work_identifier.rb
113
154
  - lib/onix/writer.rb
114
155
  - lib/onix.rb
115
- - README.markdown
116
- - TODO
117
- - CHANGELOG
156
+ - support/codes/001.tsv
157
+ - support/codes/002.tsv
158
+ - support/codes/003.tsv
159
+ - support/codes/005.tsv
160
+ - support/codes/006.tsv
161
+ - support/codes/007.tsv
162
+ - support/codes/008.tsv
163
+ - support/codes/009.tsv
164
+ - support/codes/010.tsv
165
+ - support/codes/011.tsv
166
+ - support/codes/012.tsv
167
+ - support/codes/013.tsv
168
+ - support/codes/014.tsv
169
+ - support/codes/015.tsv
170
+ - support/codes/016.tsv
171
+ - support/codes/017.tsv
172
+ - support/codes/018.tsv
173
+ - support/codes/019.tsv
174
+ - support/codes/020.tsv
175
+ - support/codes/021.tsv
176
+ - support/codes/022.tsv
177
+ - support/codes/023.tsv
178
+ - support/codes/024.tsv
179
+ - support/codes/025.tsv
180
+ - support/codes/026.tsv
181
+ - support/codes/027.tsv
182
+ - support/codes/028.tsv
183
+ - support/codes/029.tsv
184
+ - support/codes/030.tsv
185
+ - support/codes/031.tsv
186
+ - support/codes/032.tsv
187
+ - support/codes/033.tsv
188
+ - support/codes/034.tsv
189
+ - support/codes/035.tsv
190
+ - support/codes/036.tsv
191
+ - support/codes/037.tsv
192
+ - support/codes/038.tsv
193
+ - support/codes/039.tsv
194
+ - support/codes/040.tsv
195
+ - support/codes/041.tsv
196
+ - support/codes/042.tsv
197
+ - support/codes/043.tsv
198
+ - support/codes/044.tsv
199
+ - support/codes/045.tsv
200
+ - support/codes/046.tsv
201
+ - support/codes/047.tsv
202
+ - support/codes/048.tsv
203
+ - support/codes/049.tsv
204
+ - support/codes/050.tsv
205
+ - support/codes/051.tsv
206
+ - support/codes/052.tsv
207
+ - support/codes/053.tsv
208
+ - support/codes/054.tsv
209
+ - support/codes/055.tsv
210
+ - support/codes/056.tsv
211
+ - support/codes/057.tsv
212
+ - support/codes/058.tsv
213
+ - support/codes/059.tsv
214
+ - support/codes/060.tsv
215
+ - support/codes/061.tsv
216
+ - support/codes/062.tsv
217
+ - support/codes/063.tsv
218
+ - support/codes/064.tsv
219
+ - support/codes/065.tsv
220
+ - support/codes/066.tsv
221
+ - support/codes/067.tsv
222
+ - support/codes/068.tsv
223
+ - support/codes/069.tsv
224
+ - support/codes/070.tsv
225
+ - support/codes/071.tsv
226
+ - support/codes/072.tsv
227
+ - support/codes/073.tsv
228
+ - support/codes/074.tsv
229
+ - support/codes/075.tsv
230
+ - support/codes/076.tsv
231
+ - support/codes/077.tsv
232
+ - support/codes/078.tsv
233
+ - support/codes/079.tsv
234
+ - support/codes/080.tsv
235
+ - support/codes/081.tsv
236
+ - support/codes/082.tsv
237
+ - support/codes/083.tsv
238
+ - support/codes/084.tsv
239
+ - support/codes/085.tsv
240
+ - support/codes/086.tsv
241
+ - support/codes/087.tsv
242
+ - support/codes/088.tsv
243
+ - support/codes/089.tsv
244
+ - support/codes/090.tsv
245
+ - support/codes/091.tsv
246
+ - support/codes/092.tsv
247
+ - support/codes/093.tsv
248
+ - support/codes/094.tsv
249
+ - support/codes/095.tsv
250
+ - support/codes/096.tsv
251
+ - support/codes/097.tsv
252
+ - support/codes/098.tsv
253
+ - support/codes/099.tsv
254
+ - support/codes/100.tsv
255
+ - support/codes/101.tsv
256
+ - support/codes/102.tsv
257
+ - support/codes/121.tsv
258
+ - support/codes/138.tsv
259
+ - support/codes/139.tsv
260
+ - support/codes/140.tsv
261
+ - support/codes/141.tsv
262
+ - support/codes/142.tsv
263
+ - support/codes/143.tsv
264
+ - support/codes/144.tsv
265
+ - support/codes/145.tsv
266
+ - support/codes/146.tsv
267
+ - support/codes/147.tsv
268
+ - support/codes/148.tsv
269
+ - support/codes/149.tsv
270
+ - support/codes/150.tsv
271
+ - support/codes/151.tsv
272
+ - support/codes/152.tsv
273
+ - support/codes/153.tsv
274
+ - support/codes/154.tsv
275
+ - support/codes/155.tsv
276
+ - support/codes/156.tsv
277
+ - support/codes/157.tsv
278
+ - support/codes/158.tsv
279
+ - support/codes/159.tsv
280
+ - support/codes/160.tsv
281
+ - support/codes/161.tsv
282
+ - support/codes/162.tsv
283
+ - support/codes/163.tsv
284
+ - support/codes/164.tsv
285
+ - support/codes/165.tsv
286
+ - support/codes/166.tsv
287
+ - support/codes/167.tsv
288
+ - support/codes/168.tsv
289
+ - support/codes/169.tsv
290
+ - support/codes/170.tsv
291
+ - support/codes/171.tsv
292
+ - support/codes/172.tsv
293
+ - support/codes/173.tsv
294
+ - support/codes/174.tsv
295
+ - support/codes/175.tsv
296
+ - support/codes/176.tsv
297
+ - support/codes/177.tsv
298
+ - support/codes/178.tsv
299
+ - support/entities.txt
300
+ - support/extract.rb
301
+ - support/switch-onix-2.1-short-to-reference.xsl
302
+ - support/switch-onix-tagnames-1.1.xsl
303
+ - support/switch-onix-tagnames-2.0.xsl
118
304
  - dtd/2.1r3/iso-amsa.ent
119
305
  - dtd/2.1r3/iso-amsb.ent
120
306
  - dtd/2.1r3/iso-amsc.ent
@@ -140,17 +326,16 @@ files:
140
326
  - dtd/2.1r3/reference.elt
141
327
  - dtd/2.1r3/xhtml-special.ent
142
328
  - dtd/2.1r3/xhtml-symbol.ent
143
- - support/entities.txt
144
- - support/extract.rb
145
- - support/switch-onix-2.1-short-to-reference.xsl
146
- - support/switch-onix-tagnames-1.1.xsl
147
- - support/switch-onix-tagnames-2.0.xsl
329
+ - README.markdown
330
+ - TODO
331
+ - CHANGELOG
148
332
  - spec/apa_product_spec.rb
149
333
  - spec/audience_range_spec.rb
150
334
  - spec/contributor_spec.rb
151
335
  - spec/header_spec.rb
152
336
  - spec/imprint_spec.rb
153
337
  - spec/language_spec.rb
338
+ - spec/lists_spec.rb
154
339
  - spec/market_representation_spec.rb
155
340
  - spec/measure_spec.rb
156
341
  - spec/media_file_spec.rb
@@ -173,9 +358,10 @@ files:
173
358
  - spec/supply_detail_spec.rb
174
359
  - spec/title_spec.rb
175
360
  - spec/website_spec.rb
361
+ - spec/work_identifier_spec.rb
176
362
  - spec/writer_spec.rb
177
363
  has_rdoc: true
178
- homepage: http://github.com/milkfarm/onix/tree/master
364
+ homepage: http://github.com/milkfarm/onix
179
365
  licenses: []
180
366
 
181
367
  post_install_message:
@@ -205,8 +391,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
391
  version: "0"
206
392
  requirements: []
207
393
 
208
- rubyforge_project: rbook
209
- rubygems_version: 1.3.7
394
+ rubyforge_project:
395
+ rubygems_version: 1.5.0
210
396
  signing_key:
211
397
  specification_version: 3
212
398
  summary: A convient mapping between ruby objects and the ONIX XML specification
@@ -217,6 +403,7 @@ test_files:
217
403
  - spec/header_spec.rb
218
404
  - spec/imprint_spec.rb
219
405
  - spec/language_spec.rb
406
+ - spec/lists_spec.rb
220
407
  - spec/market_representation_spec.rb
221
408
  - spec/measure_spec.rb
222
409
  - spec/media_file_spec.rb
@@ -239,4 +426,5 @@ test_files:
239
426
  - spec/supply_detail_spec.rb
240
427
  - spec/title_spec.rb
241
428
  - spec/website_spec.rb
429
+ - spec/work_identifier_spec.rb
242
430
  - spec/writer_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