]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/extras/ils_events.xml
added offline event
[Evergreen.git] / Open-ILS / src / extras / ils_events.xml
1 <ils_events>
2         <notes>
3                 This file describes the event codes that an ILS method might return.  Not all
4                 methods will return event codes and it is up to each method to define which
5                 types of events it may return.  The standard event procedure is to return an
6                 object (JSON hash) with a field called "ilsevent" which contains the event code
7                 below.
8
9                 If events need to be placed into groups for any reason, the segregation shall
10                 be defined below with the accompanying events.
11         </notes>
12
13         <event code='0' textcode='SUCCESS'>
14                 <desc>No errors or unexpected events occurred</desc>
15         </event>
16         <event code='1' textcode='UNKNOWN'>
17                 <desc>Placeholder event.  Used for development only</desc>
18         </event>
19         <event code='3' textcode='NO_CHANGE'>
20                 <desc>
21                         The called method didn't actually do anything
22                 </desc>
23         </event>
24         <event code='1000' textcode='LOGIN_FAILED'>
25                 <desc>
26                         User login failed.  Why the login failed is not specified.
27                 </desc>
28         </event>
29         <event code='1001' textcode='NO_SESSION'>
30                 <desc>
31                         User login session has either timed out or does not exist.
32                 </desc>
33         </event>
34         <event code='1002' textcode='USER_NOT_FOUND'>
35                 <desc>
36                         Someone attempted to retrieve a user from the system and the user
37                         was not found.
38                 </desc>
39         </event>
40         <event code='1003' textcode='Z3950_SEARCH_FAILED'>
41                 <desc>The Z search did not succeed</desc>
42         </event>
43         <event code='1200' textcode='USERNAME_EXISTS'>
44                 <desc>
45                         The given username exists in the database
46                 </desc>
47         </event>
48         <event code='1201' textcode='CIRC_PERMIT_BAD_KEY'>
49                 <desc>
50                         A checkout was attempted without a valid checkout permit key
51                 </desc>
52         </event>
53         <event code='1202' textcode='ITEM_NOT_CATALOGED'>
54                 <desc>
55                         The requested item is not cataloged in the database
56                 </desc>
57         </event>
58         <event code='1203' textcode='COPY_BAD_STATUS'>
59                 <desc>
60                         The given copy is not in a standard circulation status
61                 </desc>
62         </event>
63         <event code='1204' textcode='CIRC_BAD_STATUS'>
64                 <desc>
65                         The given circulation is not in a standard status or
66                         the circulation was never fully closed properly
67                 </desc>
68         </event>
69         <event code='1205' textcode='CARD_EXISTS'>
70                 <desc>
71                         The given user barcode already exists
72                 </desc>
73         </event>
74
75
76
77
78
79         <event code='1500' textcode='CIRCULATION_NOT_FOUND'>
80                 <desc>
81                         Someone attempted to retrieve a circulation object from the system and 
82                         the object was not found.
83                 </desc>
84         </event>
85         <event code='1501' textcode='BIBLIO_RECORD_NOT_FOUND'>
86                 <desc>
87                         Someone attempted to retrieve a biblio record entry object from the 
88                         system and the object was not found.
89                 </desc>
90         </event>
91         <event code='1502' textcode='COPY_NOT_FOUND'>
92                 <desc>
93                         Someone attempted to retrieve a copy object from the 
94                         system and the object was not found.
95                 </desc>
96         </event>
97         <event code='1503' textcode='HOLD_NOT_FOUND'>
98                 <desc>
99                         Someone attempted to retrieve a hold object from the 
100                         system and the object was not found.
101                 </desc>
102         </event>
103         <event code='1504' textcode='TRANSIT_NOT_FOUND'>
104                 <desc>
105                         Someone attempted to retrieve a transit object from the 
106                         system and the object was not found.
107                 </desc>
108         </event>
109         <event code='1505' textcode='BILLING_NOT_FOUND'>
110                 <desc>
111                         Someone attempted to retrieve a transit object from the 
112                         system and the object was not found.
113                 </desc>
114         </event>
115         <event code='1506' textcode='CONTAINER_NOT_FOUND'>
116                 <desc>
117                         Someone attempted to retrieve a container object from the 
118                         system and the object was not found.
119                 </desc>
120         </event>
121         <event code='1507' textcode='CONTAINER_ITEM_NOT_FOUND'>
122                 <desc>
123                         Someone attempted to retrieve a container item object from the 
124                         system and the object was not found.
125                 </desc>
126         </event>
127         <event code='1508' textcode='VOLUME_NOT_FOUND'>
128                 <desc>
129                         Someone attempted to retrieve a volume object from the 
130                         system and the object was not found.
131                 </desc>
132         </event>
133         <event code='1509' textcode='ORG_UNIT_NOT_FOUND'>
134                 <desc>
135                         Someone attempted to retrieve an org unit object from the 
136                         system and the object was not found.
137                 </desc>
138         </event>
139         <event code='1510' textcode='STAT_CAT_NOT_FOUND'>
140                 <desc> Stat cat object does not exist </desc>
141         </event>
142         <event code='1511' textcode='STAT_CAT_ENTRY_NOT_FOUND'>
143                 <desc> Stat cat entry object does not exist </desc>
144         </event>
145         <event code='1512' textcode='STAT_CAT_ENTRY_MAP_NOT_FOUND'>
146                 <desc> Stat cat entry map object does not exist </desc>
147         </event>
148         <event code='1513' textcode='NON_CAT_TYPE_NOT_FOUND'>
149                 <desc> The non cataloged type object does not exist </desc>
150         </event>
151         <event code='1514' textcode='CIRC_DURATION_NOT_FOUND'>
152                 <desc> The circ duration object does not exist </desc>
153         </event>
154         <event code='1515' textcode='RECURRING_FINE_NOT_FOUND'>
155                 <desc> The recurring fines object does not exist </desc>
156         </event>
157         <event code='1516' textcode='MAX_FINE_NOT_FOUND'>
158                 <desc> The max fines object does not exist </desc>
159         </event>
160         <event code='1517' textcode='COPY_LOCATION_NOT_FOUND'>
161                 <desc> The copy location object does not exist </desc>
162         </event>
163         <event code='1518' textcode='HOLD_TRANSIT_NOT_FOUND'>
164                 <desc> The hold transit object does not exist </desc>
165         </event>
166         <event code='1519' textcode='TRANSACTION_NOT_FOUND'>
167                 <desc> Requested transaction object does not exist </desc>
168         </event>
169         <event code='1520' textcode='WORKSTATION_NOT_FOUND'>
170                 <desc> Requested workstation object does not exist </desc>
171         </event>
172         <event code='1521' textcode='COPY_NOTE_NOT_FOUND'>
173                 <desc> Requested copy note does not exist </desc>
174         </event>
175         <event code='1522' textcode='VOLUME_NOTE_NOT_FOUND'>
176                 <desc> Requested copy note does not exist </desc>
177         </event>
178         <event code='1523' textcode='TITLE_NOTE_NOT_FOUND'>
179                 <desc> Requested copy note does not exist </desc>
180         </event>
181
182
183
184
185         <event code='1700' textcode='NON_CAT_TYPE_EXISTS'>
186                 <desc> The non-cataloged type object already exists </desc>
187         </event>
188
189         <event code='1701' textcode='COPY_LOCATION_EXISTS'>
190                 <desc> The copy location object already exists </desc>
191         </event>
192
193         <event code='1702' textcode='OPEN_CIRCULATION_EXISTS'>
194                 <desc> There is an open circulation on the requested item </desc>
195         </event>
196
197         <event code='1702' textcode='WORKSTATION_NAME_EXISTS'>
198                 <desc> A workstation with that name already exists </desc>
199         </event>
200
201
202         <event code='2000' textcode='BAD_PARAMS'>
203                 <desc>
204                         Invalid parameters were encountered in a method
205                 </desc>
206         </event>
207
208         <event code='2001' textcode='DATABASE_UPDATE_FAILED'>
209                 <desc>
210                         The attempt to write to the DB failed
211                 </desc>
212         </event>
213
214
215         <event code='5000' textcode='PERM_FAILURE'>
216                 <desc> 
217                         Permission Error.  * The object returning this code shall also 
218                         contain a field "ilsperm" containing the name of the permission which failed 
219                         and a field called "ilspermloc" defining the location at which the permission
220                         failed if available.
221                 </desc>
222         </event>
223
224
225         <!-- ================================================================ -->
226         <!-- CIRC EVENTS -->
227         <event code='7000' textcode='ROUTE_ITEM'>
228                 <desc> 
229                         A copy needs to be routed to a different location       
230                         The destination location will be specified by an 'org' key
231                         within the event object
232                 </desc>
233         </event>
234
235         <event code='7001' textcode='PATRON_BAD_STANDING'>
236                 <desc>
237                         The patron in question is not able to check out materials because
238                         their account is in bad standing
239                 </desc>
240         </event>
241
242         <event code='7002' textcode='PATRON_EXCEEDS_CHECKOUT_COUNT'>
243                 <desc>
244                         The patron in question has the maximum number of items already checked out
245                 </desc>
246         </event>
247
248         <event code='7003' textcode='COPY_CIRC_NOT_ALLOWED'>
249                 <desc> Target copy is not allowed to circulate </desc>
250         </event>
251
252         <event code='7004' textcode='COPY_NOT_AVAILABLE'>
253                 <desc> Copy is not available </desc>
254         </event>
255
256         <event code='7005' textcode='LOCATION_CIRC_NOT_ALLOWED'>
257                 <desc> Location does not allow materials to circulate </desc>
258         </event>
259
260         <event code='7006' textcode='COPY_IS_REFERENCE'>
261                 <desc> Copy is reference material </desc>
262         </event>
263
264         <event code='7007' textcode='COPY_NEEDED_FOR_HOLD'>
265                 <desc> Copy is needed to fulfil a hold </desc>
266         </event>
267
268         <event code='7008' textcode='MAX_RENEWALS_REACHED'>
269                 <desc> Circulation has no more renewals remaining </desc>
270         </event>
271
272         <event code='7009' textcode='ROUTE_TO_COPY_LOCATION'>
273                 <desc> 
274                 A copy needs to be routed to a copy location.  The location
275                 should be specified within the event with a 'location' key
276                 </desc>
277         </event>
278
279         <event code='8000' textcode='OFFLINE_SESSION_ACTIVE'>
280                 <desc> An offline session for this location is currently processing </desc>
281         </event>
282         <event code='8001' textcode='OFFLINE_SESSION_FILE_EXISTS'>
283                 <desc> An offline file for this workstation exists within this session </desc>
284         </event>
285         <event code='8002' textcode='OFFLINE_FILE_ERROR'>
286                 <desc> An offline file or directory could not be created or accessed </desc>
287         </event>
288         <event code='8003' textcode='OFFLINE_PARAM_ERROR'>
289                 <desc> Missing params in offline upload </desc>
290         </event>
291         <event code='8004' textcode='OFFLINE_CONFIG_ERROR'>
292                 <desc> Offline server is not configured properly </desc>
293         </event>
294         <event code='8005' textcode='OFFLINE_CHECKSUM_FAILED'>
295                 <desc> Offline server is not configured properly </desc>
296         </event>
297         <event code='8006' textcode='OFFLINE_SESSION_NOT_FOUND'>
298                 <desc> Offline server is not configured properly </desc>
299         </event>
300         <event code='8007' textcode='OFFLINE_SESSION_EXISTS'>
301                 <desc> A session with the given name already exists </desc>
302         </event>
303         <event code='8008' textcode='OFFLINE_INVALID_SESSION'>
304                 <desc> The session name is invalid </desc>
305         </event>
306
307         <!-- ================================================================ -->
308
309 </ils_events>
310
311
312
313