rbook 0.1 → 0.2
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/README +1 -0
- data/Rakefile +3 -2
- data/examples/gbip.rb +12 -0
- data/examples/onix/stream_reader.rb +13 -0
- data/examples/titlepage.rb +1 -1
- data/lib/rbook/bisac.rb +21 -167
- data/lib/rbook/bisac/message.rb +99 -0
- data/lib/rbook/bisac/product.rb +176 -0
- data/lib/rbook/gbip.rb +19 -0
- data/lib/rbook/gbip/pos.rb +40 -0
- data/lib/rbook/onix.rb +2 -0
- data/lib/rbook/onix/message.rb +91 -86
- data/lib/rbook/onix/product.rb +179 -178
- data/lib/rbook/onix/stream_reader.rb +120 -0
- data/lib/rbook/onix/stream_writer.rb +40 -0
- data/lib/rbook/onix/supply_detail.rb +1 -1
- data/lib/rbook/titlepage.rb +5 -65
- data/lib/rbook/titlepage/client.rb +81 -0
- data/lib/rbook/titlepage/titlepage_driver.rb +122 -119
- data/lib/rbook/titlepage/titlepage_utils.rb +375 -370
- data/test/data/valid_bisac.txt +213 -0
- data/test/mocks/titlepage_driver.rb +99 -95
- data/test/unit/bisac_test.rb +68 -29
- data/test/unit/onix/stream_reader_test.rb +22 -0
- data/test/unit/onix/stream_writer_test.rb +32 -0
- data/test/unit/titlepage_test.rb +5 -5
- metadata +41 -26
- data/lib/rbook/titlepage/TitleQueryClient.rb +0 -62
|
@@ -1,374 +1,379 @@
|
|
|
1
1
|
require 'xsd/qname'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
3
|
+
module RBook
|
|
4
|
+
module TitlePage
|
|
5
|
+
|
|
6
|
+
# {urn:TitleQuery}ProductIdentifier
|
|
7
|
+
class ProductIdentifier
|
|
8
|
+
@@schema_type = "ProductIdentifier"
|
|
9
|
+
@@schema_ns = "urn:TitleQuery"
|
|
10
|
+
@@schema_element = [["productIDType", ["SOAP::SOAPString", XSD::QName.new(nil, "ProductIDType")]], ["iDValue", ["SOAP::SOAPString", XSD::QName.new(nil, "IDValue")]]]
|
|
11
|
+
|
|
12
|
+
def ProductIDType
|
|
13
|
+
@productIDType
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def ProductIDType=(value)
|
|
17
|
+
@productIDType = value
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def IDValue
|
|
21
|
+
@iDValue
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def IDValue=(value)
|
|
25
|
+
@iDValue = value
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def initialize(productIDType = nil, iDValue = nil)
|
|
29
|
+
@productIDType = productIDType
|
|
30
|
+
@iDValue = iDValue
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# {urn:TitleQuery}Title
|
|
35
|
+
class Title
|
|
36
|
+
@@schema_type = "Title"
|
|
37
|
+
@@schema_ns = "urn:TitleQuery"
|
|
38
|
+
@@schema_element = [["titleType", ["SOAP::SOAPString", XSD::QName.new(nil, "TitleType")]], ["titleText", ["SOAP::SOAPString", XSD::QName.new(nil, "TitleText")]], ["titlePrefix", ["SOAP::SOAPString", XSD::QName.new(nil, "TitlePrefix")]], ["titleWithoutPrefix", ["SOAP::SOAPString", XSD::QName.new(nil, "TitleWithoutPrefix")]], ["subtitle", ["SOAP::SOAPString", XSD::QName.new(nil, "Subtitle")]]]
|
|
39
|
+
|
|
40
|
+
def TitleType
|
|
41
|
+
@titleType
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def TitleType=(value)
|
|
45
|
+
@titleType = value
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def TitleText
|
|
49
|
+
@titleText
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def TitleText=(value)
|
|
53
|
+
@titleText = value
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def TitlePrefix
|
|
57
|
+
@titlePrefix
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def TitlePrefix=(value)
|
|
61
|
+
@titlePrefix = value
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def TitleWithoutPrefix
|
|
65
|
+
@titleWithoutPrefix
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def TitleWithoutPrefix=(value)
|
|
69
|
+
@titleWithoutPrefix = value
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def Subtitle
|
|
73
|
+
@subtitle
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def Subtitle=(value)
|
|
77
|
+
@subtitle = value
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def initialize(titleType = nil, titleText = nil, titlePrefix = nil, titleWithoutPrefix = nil, subtitle = nil)
|
|
81
|
+
@titleType = titleType
|
|
82
|
+
@titleText = titleText
|
|
83
|
+
@titlePrefix = titlePrefix
|
|
84
|
+
@titleWithoutPrefix = titleWithoutPrefix
|
|
85
|
+
@subtitle = subtitle
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# {urn:TitleQuery}Contributor
|
|
90
|
+
class Contributor
|
|
91
|
+
@@schema_type = "Contributor"
|
|
92
|
+
@@schema_ns = "urn:TitleQuery"
|
|
93
|
+
@@schema_element = [["sequenceNumber", ["SOAP::SOAPInteger", XSD::QName.new(nil, "SequenceNumber")]], ["contributorRole", ["SOAP::SOAPString", XSD::QName.new(nil, "ContributorRole")]], ["personName", ["SOAP::SOAPString", XSD::QName.new(nil, "PersonName")]], ["personNameInverted", ["SOAP::SOAPString", XSD::QName.new(nil, "PersonNameInverted")]], ["titlesBeforeNames", ["SOAP::SOAPString", XSD::QName.new(nil, "TitlesBeforeNames")]], ["keyNames", ["SOAP::SOAPString", XSD::QName.new(nil, "KeyNames")]]]
|
|
94
|
+
|
|
95
|
+
def SequenceNumber
|
|
96
|
+
@sequenceNumber
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def SequenceNumber=(value)
|
|
100
|
+
@sequenceNumber = value
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def ContributorRole
|
|
104
|
+
@contributorRole
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def ContributorRole=(value)
|
|
108
|
+
@contributorRole = value
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def PersonName
|
|
112
|
+
@personName
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def PersonName=(value)
|
|
116
|
+
@personName = value
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def PersonNameInverted
|
|
120
|
+
@personNameInverted
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def PersonNameInverted=(value)
|
|
124
|
+
@personNameInverted = value
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def TitlesBeforeNames
|
|
128
|
+
@titlesBeforeNames
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def TitlesBeforeNames=(value)
|
|
132
|
+
@titlesBeforeNames = value
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def KeyNames
|
|
136
|
+
@keyNames
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def KeyNames=(value)
|
|
140
|
+
@keyNames = value
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def initialize(sequenceNumber = nil, contributorRole = nil, personName = nil, personNameInverted = nil, titlesBeforeNames = nil, keyNames = nil)
|
|
144
|
+
@sequenceNumber = sequenceNumber
|
|
145
|
+
@contributorRole = contributorRole
|
|
146
|
+
@personName = personName
|
|
147
|
+
@personNameInverted = personNameInverted
|
|
148
|
+
@titlesBeforeNames = titlesBeforeNames
|
|
149
|
+
@keyNames = keyNames
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# {urn:TitleQuery}Stock
|
|
154
|
+
class Stock
|
|
155
|
+
@@schema_type = "Stock"
|
|
156
|
+
@@schema_ns = "urn:TitleQuery"
|
|
157
|
+
@@schema_element = [["onHand", ["SOAP::SOAPString", XSD::QName.new(nil, "OnHand")]], ["onOrder", ["SOAP::SOAPString", XSD::QName.new(nil, "OnOrder")]]]
|
|
158
|
+
|
|
159
|
+
def OnHand
|
|
160
|
+
@onHand
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def OnHand=(value)
|
|
164
|
+
@onHand = value
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def OnOrder
|
|
168
|
+
@onOrder
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
def OnOrder=(value)
|
|
172
|
+
@onOrder = value
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def initialize(onHand = nil, onOrder = nil)
|
|
176
|
+
@onHand = onHand
|
|
177
|
+
@onOrder = onOrder
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# {urn:TitleQuery}Price
|
|
182
|
+
class Price
|
|
183
|
+
@@schema_type = "Price"
|
|
184
|
+
@@schema_ns = "urn:TitleQuery"
|
|
185
|
+
@@schema_element = [["priceTypeCode", ["SOAP::SOAPString", XSD::QName.new(nil, "PriceTypeCode")]], ["priceAmount", ["SOAP::SOAPDecimal", XSD::QName.new(nil, "PriceAmount")]]]
|
|
186
|
+
|
|
187
|
+
def PriceTypeCode
|
|
188
|
+
@priceTypeCode
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
def PriceTypeCode=(value)
|
|
192
|
+
@priceTypeCode = value
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
def PriceAmount
|
|
196
|
+
@priceAmount
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
def PriceAmount=(value)
|
|
200
|
+
@priceAmount = value
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
def initialize(priceTypeCode = nil, priceAmount = nil)
|
|
204
|
+
@priceTypeCode = priceTypeCode
|
|
205
|
+
@priceAmount = priceAmount
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# {urn:TitleQuery}SupplyDetail
|
|
210
|
+
class SupplyDetail
|
|
211
|
+
@@schema_type = "SupplyDetail"
|
|
212
|
+
@@schema_ns = "urn:TitleQuery"
|
|
213
|
+
@@schema_element = [["supplierName", ["SOAP::SOAPString", XSD::QName.new(nil, "SupplierName")]], ["supplierRole", ["SOAP::SOAPString", XSD::QName.new(nil, "SupplierRole")]], ["productAvailability", ["SOAP::SOAPString", XSD::QName.new(nil, "ProductAvailability")]], ["expectedShipDate", ["SOAP::SOAPString", XSD::QName.new(nil, "ExpectedShipDate")]], ["stock", ["Stock", XSD::QName.new(nil, "Stock")]], ["packQuantity", ["SOAP::SOAPInteger", XSD::QName.new(nil, "PackQuantity")]], ["price", ["Price", XSD::QName.new(nil, "Price")]]]
|
|
214
|
+
|
|
215
|
+
def SupplierName
|
|
216
|
+
@supplierName
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
def SupplierName=(value)
|
|
220
|
+
@supplierName = value
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
def SupplierRole
|
|
224
|
+
@supplierRole
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
def SupplierRole=(value)
|
|
228
|
+
@supplierRole = value
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
def ProductAvailability
|
|
232
|
+
@productAvailability
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
def ProductAvailability=(value)
|
|
236
|
+
@productAvailability = value
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
def ExpectedShipDate
|
|
240
|
+
@expectedShipDate
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
def ExpectedShipDate=(value)
|
|
244
|
+
@expectedShipDate = value
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
def Stock
|
|
248
|
+
@stock
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
def Stock=(value)
|
|
252
|
+
@stock = value
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
def PackQuantity
|
|
256
|
+
@packQuantity
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
def PackQuantity=(value)
|
|
260
|
+
@packQuantity = value
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
def Price
|
|
264
|
+
@price
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
def Price=(value)
|
|
268
|
+
@price = value
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
def initialize(supplierName = nil, supplierRole = nil, productAvailability = nil, expectedShipDate = nil, stock = nil, packQuantity = nil, price = nil)
|
|
272
|
+
@supplierName = supplierName
|
|
273
|
+
@supplierRole = supplierRole
|
|
274
|
+
@productAvailability = productAvailability
|
|
275
|
+
@expectedShipDate = expectedShipDate
|
|
276
|
+
@stock = stock
|
|
277
|
+
@packQuantity = packQuantity
|
|
278
|
+
@price = price
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# {urn:TitleQuery}ArrayOfContributor
|
|
283
|
+
class ArrayOfContributor < ::Array
|
|
284
|
+
@@schema_type = "Contributor"
|
|
285
|
+
@@schema_ns = "urn:TitleQuery"
|
|
286
|
+
@@schema_element = [["item", ["Contributor", XSD::QName.new(nil, "item")]]]
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# {urn:TitleQuery}ArrayOfProductIdentifier
|
|
290
|
+
class ArrayOfProductIdentifier < ::Array
|
|
291
|
+
@@schema_type = "ProductIdentifier"
|
|
292
|
+
@@schema_ns = "urn:TitleQuery"
|
|
293
|
+
@@schema_element = [["item", ["ProductIdentifier", XSD::QName.new(nil, "item")]]]
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# {urn:TitleQuery}Product
|
|
297
|
+
class Product
|
|
298
|
+
@@schema_type = "Product"
|
|
299
|
+
@@schema_ns = "urn:TitleQuery"
|
|
300
|
+
@@schema_element = [["productIdentifiers", ["ArrayOfProductIdentifier", XSD::QName.new(nil, "ProductIdentifiers")]], ["title", ["Title", XSD::QName.new(nil, "Title")]], ["contributors", ["ArrayOfContributor", XSD::QName.new(nil, "Contributors")]], ["supplyDetail", ["SupplyDetail", XSD::QName.new(nil, "SupplyDetail")]]]
|
|
301
|
+
|
|
302
|
+
def ProductIdentifiers
|
|
303
|
+
@productIdentifiers
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
def ProductIdentifiers=(value)
|
|
307
|
+
@productIdentifiers = value
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
def Title
|
|
311
|
+
@title
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
def Title=(value)
|
|
315
|
+
@title = value
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
def Contributors
|
|
319
|
+
@contributors
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
def Contributors=(value)
|
|
323
|
+
@contributors = value
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
def SupplyDetail
|
|
327
|
+
@supplyDetail
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def SupplyDetail=(value)
|
|
331
|
+
@supplyDetail = value
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
def initialize(productIdentifiers = nil, title = nil, contributors = nil, supplyDetail = nil)
|
|
335
|
+
@productIdentifiers = productIdentifiers
|
|
336
|
+
@title = title
|
|
337
|
+
@contributors = contributors
|
|
338
|
+
@supplyDetail = supplyDetail
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# {urn:TitleQuery}SearchResults
|
|
343
|
+
class SearchResults
|
|
344
|
+
@@schema_type = "SearchResults"
|
|
345
|
+
@@schema_ns = "urn:TitleQuery"
|
|
346
|
+
@@schema_element = [["iSBN", ["SOAP::SOAPString", XSD::QName.new(nil, "ISBN")]], ["eAN", ["SOAP::SOAPString", XSD::QName.new(nil, "EAN")]], ["product", ["Product", XSD::QName.new(nil, "Product")]]]
|
|
347
|
+
|
|
348
|
+
def ISBN
|
|
349
|
+
@iSBN
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
def ISBN=(value)
|
|
353
|
+
@iSBN = value
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
def EAN
|
|
357
|
+
@eAN
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
def EAN=(value)
|
|
361
|
+
@eAN = value
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
def Product
|
|
365
|
+
@product
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
def Product=(value)
|
|
369
|
+
@product = value
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
def initialize(iSBN = nil, eAN = nil, product = nil)
|
|
373
|
+
@iSBN = iSBN
|
|
374
|
+
@eAN = eAN
|
|
375
|
+
@product = product
|
|
376
|
+
end
|
|
377
|
+
end
|
|
373
378
|
end
|
|
374
379
|
end
|