Line 0
Link Here
|
|
|
1 |
{ |
2 |
"description": "An object that contains either none or multiple reasons defined in this object's specification.", |
3 |
"type": "object", |
4 |
"properties": { |
5 |
"Biblio::CheckedOut": { |
6 |
"description": "Patron has already checked out an item from this biblio. A confirmation may be required.", |
7 |
"type": "object", |
8 |
"properties": { |
9 |
"biblionumber": { |
10 |
"$ref": "../../x-primitives.json#/biblionumber" |
11 |
} |
12 |
} |
13 |
}, |
14 |
"Biblio::NoAvailableItems": { |
15 |
"description": "This biblio has no available items.", |
16 |
"type": "object", |
17 |
"properties": {} |
18 |
}, |
19 |
"Checkout::DueDateBeforeNow": { |
20 |
"description": "Given due date is in the past.", |
21 |
"type": "object", |
22 |
"properties": { |
23 |
"duedate": { |
24 |
"type": ["string", "null"] |
25 |
}, |
26 |
"now": { |
27 |
"type": ["string", "null"] |
28 |
} |
29 |
} |
30 |
}, |
31 |
"Checkout::Fee": { |
32 |
"description": "Checkout fee will apply.", |
33 |
"type": "object", |
34 |
"properties": { |
35 |
"amount": { |
36 |
"type": ["number", "null"], |
37 |
"description": "Amount of rental charge." |
38 |
} |
39 |
} |
40 |
}, |
41 |
"Checkout::InvalidDueDate": { |
42 |
"description": "Given due date is invalid.", |
43 |
"type": "object", |
44 |
"properties": { |
45 |
"duedate": { |
46 |
"type": ["string", "null"] |
47 |
} |
48 |
} |
49 |
}, |
50 |
"Checkout::MaximumCheckoutsReached": { |
51 |
"description": "Maximum number of checkouts have been reached.", |
52 |
"type": "object", |
53 |
"properties": { |
54 |
"max_checkouts_allowed": { |
55 |
"type": ["integer", "null"], |
56 |
"description": "Maximum number of checkouts allowed." |
57 |
}, |
58 |
"current_checkout_count": { |
59 |
"type": ["integer", "null"], |
60 |
"description": "Current checkout count for patron." |
61 |
} |
62 |
} |
63 |
}, |
64 |
"Checkout::MaximumOnsiteCheckoutsReached": { |
65 |
"description": "Maximum number of on-site checkouts have been reached.", |
66 |
"type": "object", |
67 |
"properties": { |
68 |
"max_onsite_checkouts": { |
69 |
"type": ["integer", "null"], |
70 |
"description": "Maximum number of onsite checkouts allowed." |
71 |
}, |
72 |
"current_onsite_checkouts": { |
73 |
"type": ["integer", "null"], |
74 |
"description": "Current onsite checkout count for patron." |
75 |
} |
76 |
} |
77 |
}, |
78 |
"Checkout::NoMoreRenewals": { |
79 |
"description": "No more renewals allowed.", |
80 |
"type": "object", |
81 |
"properties": {} |
82 |
}, |
83 |
"Checkout::NoMoreRenewalForOnsiteCheckouts": { |
84 |
"description": "No more on-site renewals allowed.", |
85 |
"type": "object", |
86 |
"properties": {} |
87 |
}, |
88 |
"Checkout::OnsiteCheckoutsDisabled": { |
89 |
"description": "On-site checkouts are disabled.", |
90 |
"type": "object", |
91 |
"properties": {} |
92 |
}, |
93 |
"Checkout::Renew": { |
94 |
"description": "Checkout will be renewed.", |
95 |
"type": "object", |
96 |
"properties": {} |
97 |
}, |
98 |
"Checkout::ZeroCheckoutsAllowed": { |
99 |
"description": "Allowed number of checkouts is zero.", |
100 |
"type": "object", |
101 |
"properties": {} |
102 |
}, |
103 |
"Hold::ItemLevelHoldNotAllowed": { |
104 |
"description": "Item-level holds are not allowed.", |
105 |
"type": "object", |
106 |
"properties": {} |
107 |
}, |
108 |
"Hold::MaximumHoldsReached": { |
109 |
"description": "Maximum number of holds have been reached.", |
110 |
"type": "object", |
111 |
"properties": { |
112 |
"max_holds_allowed": { |
113 |
"type": ["integer", "null"] |
114 |
}, |
115 |
"current_hold_count": { |
116 |
"type": ["integer", "null"] |
117 |
} |
118 |
} |
119 |
}, |
120 |
"Hold::MaximumHoldsForThisRecordReached": { |
121 |
"description": "Maximum number of holds for this record have been reached.", |
122 |
"type": "object", |
123 |
"properties": { |
124 |
"max_holds_allowed": { |
125 |
"type": ["integer", "null"] |
126 |
}, |
127 |
"current_hold_count": { |
128 |
"type": ["integer", "null"] |
129 |
} |
130 |
} |
131 |
}, |
132 |
"Hold::NotAllowedByLibrary": { |
133 |
"description": "Library does not allow holds to be placed.", |
134 |
"type": "object", |
135 |
"properties": {} |
136 |
}, |
137 |
"Hold::NotAllowedFromOtherLibraries": { |
138 |
"description": "Holds are not allowed from other libraries.", |
139 |
"type": "object", |
140 |
"properties": {} |
141 |
}, |
142 |
"Hold::NotAllowedInOPAC": { |
143 |
"description": "Patron cannot place a hold by themselves in OPAC.", |
144 |
"type": "object", |
145 |
"properties": {} |
146 |
}, |
147 |
"Hold::OnShelfNotAllowed": { |
148 |
"description": "On-shelf holds are not allowed.", |
149 |
"type": "object", |
150 |
"properties": {} |
151 |
}, |
152 |
"Hold::ZeroHoldsAllowed": { |
153 |
"description": "Allowed number of holds is zero.", |
154 |
"type": "object", |
155 |
"properties": {} |
156 |
}, |
157 |
"Item::AlreadyHeldForThisPatron": { |
158 |
"description": "Item is held for this patron.", |
159 |
"type": "object", |
160 |
"properties": {} |
161 |
}, |
162 |
"Item::CannotBeTransferred": { |
163 |
"description": "Item cannot be transferred.", |
164 |
"type": "object", |
165 |
"properties": { |
166 |
"from_library": { |
167 |
"$ref": "../../x-primitives.json#/branchcode" |
168 |
}, |
169 |
"to_library": { |
170 |
"$ref": "../../x-primitives.json#/branchcode" |
171 |
} |
172 |
} |
173 |
}, |
174 |
"Item::CheckedOut": { |
175 |
"description": "Item is checked out to a patron.", |
176 |
"type": "object", |
177 |
"properties": { |
178 |
"borrowernumber": { |
179 |
"type": ["integer", "null"] |
180 |
}, |
181 |
"date_due": { |
182 |
"type": ["string", "null"] |
183 |
} |
184 |
} |
185 |
}, |
186 |
"Item::Damaged": { |
187 |
"description": "Item is marked as damaged", |
188 |
"type": "object", |
189 |
"properties": {} |
190 |
}, |
191 |
"Item::FromAnotherLibrary": { |
192 |
"description": "Libraries are independent and this item is from another library than current patron.", |
193 |
"type": "object", |
194 |
"properties": { |
195 |
"itemhomebranch": { |
196 |
"$ref": "../../x-primitives.json#/branchcode" |
197 |
} |
198 |
} |
199 |
}, |
200 |
"Item::Held": { |
201 |
"description": "Someone has placed a hold on this item.", |
202 |
"type": "object", |
203 |
"properties": { |
204 |
"borrowernumber": { |
205 |
"$ref": "../../x-primitives.json#/borrowernumber" |
206 |
}, |
207 |
"status": { |
208 |
"type": ["string", "null"] |
209 |
}, |
210 |
"hold_queue_length": { |
211 |
"type": ["integer", "null"] |
212 |
} |
213 |
} |
214 |
}, |
215 |
"Item::HighHolds": { |
216 |
"description": "Loan period shortened for high held item.", |
217 |
"type": "object", |
218 |
"properties": { |
219 |
"num_holds": { |
220 |
"type": ["integer", "null"] |
221 |
}, |
222 |
"duration": { |
223 |
"type": ["string", "null"] |
224 |
}, |
225 |
"returndate": { |
226 |
"type": ["string", "null"] |
227 |
} |
228 |
} |
229 |
}, |
230 |
"Item::Lost": { |
231 |
"description": "Item is marked as lost.", |
232 |
"type": "object", |
233 |
"properties": { |
234 |
"code": { |
235 |
"description": "Status description (e.g. Missing)", |
236 |
"type": ["string", "null"] |
237 |
}, |
238 |
"status": { |
239 |
"description": "Item's lost status number", |
240 |
"type": ["integer", "null"] |
241 |
} |
242 |
} |
243 |
}, |
244 |
"Item::NotForLoan": { |
245 |
"description": "Item is not for loan.", |
246 |
"type": "object", |
247 |
"properties": { |
248 |
"status": { |
249 |
"description": "Item's notforloan status number", |
250 |
"type": ["integer", "null"] |
251 |
}, |
252 |
"code": { |
253 |
"description": "Status description (e.g. Ordered)", |
254 |
"type": ["string", "null"] |
255 |
} |
256 |
} |
257 |
}, |
258 |
"Item::Restricted": { |
259 |
"description": "Item is restricted.", |
260 |
"type": "object", |
261 |
"properties": {} |
262 |
}, |
263 |
"Item::Transfer": { |
264 |
"description": "Item is being transferred.", |
265 |
"type": "object", |
266 |
"properties": { |
267 |
"from_library": { |
268 |
"$ref": "../../x-primitives.json#/branchcode" |
269 |
}, |
270 |
"to_library": { |
271 |
"$ref": "../../x-primitives.json#/branchcode" |
272 |
}, |
273 |
"datesent": { |
274 |
"description": "Start date of transfer", |
275 |
"type": ["string", "null"] |
276 |
} |
277 |
} |
278 |
}, |
279 |
"Item::UnknownBarcode": { |
280 |
"description": "This item has either an unknown barcode or no barcode at all.", |
281 |
"type": "object", |
282 |
"properties": { |
283 |
"barcode": { |
284 |
"type": ["string", "null"] |
285 |
} |
286 |
} |
287 |
}, |
288 |
"Item::Withdrawn": { |
289 |
"description": "Item is withdrawn.", |
290 |
"type": "object", |
291 |
"properties": {} |
292 |
}, |
293 |
"ItemType::NotForLoan": { |
294 |
"description": "Item type is not for loan.", |
295 |
"type": "object", |
296 |
"properties": { |
297 |
"status": { |
298 |
"description": "Item's notforloan status number", |
299 |
"type": ["integer", "null"] |
300 |
}, |
301 |
"code": { |
302 |
"description": "Status description (e.g. Ordered)", |
303 |
"type": ["string", "null"] |
304 |
}, |
305 |
"itemtype": { |
306 |
"description": "Item type", |
307 |
"type": ["string", "null"] |
308 |
} |
309 |
} |
310 |
}, |
311 |
"Patron::AgeRestricted": { |
312 |
"description": "An age restriction applies for this patron.", |
313 |
"type": "object", |
314 |
"properties": { |
315 |
"age_restriction": { |
316 |
"type": ["string", "null"], |
317 |
"description": "Age restriction, e.g. PEGI 16" |
318 |
} |
319 |
} |
320 |
}, |
321 |
"Patron::CardExpired": { |
322 |
"description": "Patron's card has been expired.", |
323 |
"type": "object", |
324 |
"properties": { |
325 |
"expiration_date": { |
326 |
"type": ["string", "null"] |
327 |
} |
328 |
} |
329 |
}, |
330 |
"Patron::CardLost": { |
331 |
"description": "Patron's card has been marked as lost.", |
332 |
"type": "object", |
333 |
"properties": {} |
334 |
}, |
335 |
"Patron::Debarred": { |
336 |
"description": "Patron is debarred.", |
337 |
"type": "object", |
338 |
"properties": { |
339 |
"expiration_date": { |
340 |
"type": ["string", "null"] |
341 |
}, |
342 |
"comment": { |
343 |
"type": ["string", "null"] |
344 |
} |
345 |
} |
346 |
}, |
347 |
"Patron::DebarredOverdue": { |
348 |
"description": "Patron has overdues and is debarred.", |
349 |
"type": "object", |
350 |
"properties": { |
351 |
"number_of_overdues": { |
352 |
"type": ["integer", "null"] |
353 |
} |
354 |
} |
355 |
}, |
356 |
"Patron::Debt": { |
357 |
"description": "Patron's debts exceed maximum allowed amount.", |
358 |
"type": "object", |
359 |
"properties": { |
360 |
"max_outstanding":{ |
361 |
"type": ["number", "null"] |
362 |
}, |
363 |
"current_outstanding": { |
364 |
"type": ["number", "null"] |
365 |
} |
366 |
} |
367 |
}, |
368 |
"Patron::DebtGuarantees": { |
369 |
"description": "Patron's guarantees' debts exceed maximum allowed amount.", |
370 |
"type": "object", |
371 |
"properties": { |
372 |
"max_outstanding":{ |
373 |
"type": ["number", "null"] |
374 |
}, |
375 |
"current_outstanding": { |
376 |
"type": ["number", "null"] |
377 |
} |
378 |
} |
379 |
}, |
380 |
"Patron::FromAnotherLibrary": { |
381 |
"description": "Libraries are independent and patron is from another library than current logged in user.", |
382 |
"type": "object", |
383 |
"properties": { |
384 |
"patron_branch": { |
385 |
"$ref": "../../x-primitives.json#/branchcode" |
386 |
}, |
387 |
"current_branch": { |
388 |
"$ref": "../../x-primitives.json#/branchcode" |
389 |
} |
390 |
} |
391 |
}, |
392 |
"Patron::GoneNoAddress": { |
393 |
"type": "object", |
394 |
"properties": {} |
395 |
} |
396 |
} |
397 |
} |