View | Details | Raw Unified | Return to bug 37843
Collapse All | Expand All

(-)a/C4/Breeding.pm (-1 / +419 lines)
Lines 32-37 use C4::Languages; Link Here
32
use Koha::Database;
32
use Koha::Database;
33
use Koha::XSLT::Base;
33
use Koha::XSLT::Base;
34
34
35
my %ERROR_CODE_MEANING = (
36
    # 2.1. General Messages
37
    1 => 'System unavailable - Permanent system error (ref. 1)',
38
    2 => 'System temporarily unavailable (ref. 2.)',
39
    100 => 'Unspecified error (ref. 100)',
40
    1001 => 'Do not display - origin should correct error or display "Protocol error (ref. 1001)"',
41
    1025 => 'Selected database {database} does not support {service} (ref. 1025)',
42
    1030 => 'Unknown message (ref. 1030)',
43
    1031 => 'Unknown message (ref. 1031)',
44
    1032 => 'Unknown message (ref. 1032)',
45
    1033 => 'Unknown message (ref. 1033)',
46
    1034 => 'Unknown message (ref. 1034)',
47
    1035 => 'Unknown message (ref. 1035)',
48
    1036 => 'Unknown message (ref. 1036)',
49
    1037 => 'Unknown message (ref. 1037)',
50
    1038 => 'Unknown message (ref. 1038)',
51
    1039 => 'Unknown message (ref. 1039)',
52
53
    # 2.2. Init
54
    1010 => 'Unknown user identification (ref. 1010)',
55
    1011 => 'Unknown user identification or invalid password (ref. 1011)',
56
    1012 => 'No searches remaining (pre-purchased searches exhausted) (ref. 1012)',
57
    1013 => 'User identifier not valid for this operation ref. 1013)',
58
    1014 => 'Unknown user identification or invalid password (ref. 1014)',
59
    1015 => 'System temporarily unavailable (ref. 1015)',
60
    1016 => 'System temporarily unavailable (ref. 1016)',
61
    1017 => 'User identifier not valid for any available databases (ref. 1017)',
62
    1018 => 'System temporarily unavailable (ref. 1018)',
63
    1019 => 'System temporarily unavailable (ref. 1019)',
64
    1020 => 'System temporarily available (ref. 1020)',
65
    1021 => 'Access denied - Account has expired (ref. 1021)',
66
    1022 => 'Password expired - please supply new password (ref. 1022)',
67
    1023 => 'Password changed - please supply new password (ref. 1023)',
68
    1054 => 'Access denied - transaction incomplete (ref. 1054)',
69
    1055 => 'Access denied - transaction incomplete (ref. 1055)',
70
    # For diagnostics 1054 and 1055, it is recommended that the origin should take remedial action instead of displaying this message.
71
72
    # 2.3. Search - General problems with the search statement
73
    3 => 'Unsupported search for this database (ref. 3)',
74
    11 => 'Search cannot be performed - Too long (too many characters in the search) (ref. 11)',
75
    101 => 'Security failure (ref. 101)',
76
    102 => 'Target protocol error (ref. 102) - (all targets should support search once init successful.)',
77
    107 => 'Origin should send a type 1 query. If the message is still received, origin should display "Target protocol error (ref. 107)".',
78
    108 => 'Cannot perform search - malformed query (ref. 108)',
79
80
    # 2.4. Search - Messages relating to Database Selection
81
    3 => 'Unsupported search for this database (ref. 3)',
82
    23 => 'Specific combination of databases not supported (ref. 23)',
83
    29 => '{Database name} currently unavailable (ref. 29)',
84
    109 => '{Database name} currently unavailable (ref. 109)',
85
    111 => 'Cannot perform search - too many databases (ref. 111)',
86
    235 => 'Database does not exist (ref. 235)',
87
    236 => 'Access to {database name} denied (ref. 236)',
88
    1025 => 'Target Protocol error (ref. 1025)',
89
90
    # 2.5. Search - Messages relating to Search Attributes
91
    113 => 'Cannot perform search as requested (ref. 113)',
92
    114 => 'Cannot perform search - {use attribute} not supported (ref. 114)',
93
    115 => 'Cannot perform search - structure of term not supported (ref. 115)',
94
    116 => 'Do not display - origin should correct error',
95
    117 => 'Cannot perform search - {relation attribute} not supported (ref. 117)',
96
    118 => 'Cannot perform search - {structure attribute} not supported (ref. 118)',
97
    119 => 'Cannot perform search - {position attribute} not supported (ref. 119)',
98
    120 => 'Cannot truncate search as requested (ref. 120)',
99
    121 => 'Cannot search by {attribute set / attribute} (ref. 121)',
100
    122 => 'Cannot perform search - {completeness attribute} not supported (ref. 122)',
101
    123 => 'Cannot search {attribute} with {attribute} as requested (ref. 123)',
102
    126 => 'Cannot perform search - incorrect construction (ref. 126)',
103
    245 => 'Cannot perform search as requested (ref. 245)',
104
    246 => 'Cannot perform search as requested (ref. 246)',
105
    247 => 'Cannot perform search as requested (ref. 247)',
106
    1024 => 'Cannot perform search as requested (ref. 1024)',
107
    1056 => 'Cannot perform search as requested (ref. 1056)',
108
109
    # 2.6. Search - Messages relating to Search Term or Terms
110
    4 => 'Search cannot be performed - only contains common words that are not indexed (ref. 4)',
111
    5 => 'Search cannot be performed - Too many words or phrases in the search (ref. 5)',
112
    6 => 'Search cannot be performed - Too many words or phrases in the search (ref. 6)',
113
    7 => 'Search cannot be performed - Too many truncated words or phrases in the search (ref. 7)',
114
    8 => 'Search cannot be performed (ref. 8)',
115
    9 => 'Search cannot be performed - Truncated words are too short (ref. 9)',
116
    10 => 'Search cannot be performed - Invalid format of record number (ref. 10)',
117
    110 => 'Cannot perform search - {operator} not supported (ref. 110)',
118
    124 => 'Cannot search by {term} (ref. 124)',
119
    125 => 'Cannot search by {term} (ref. 125)',
120
    127 => '{Unnormalised value} cannot be processed (ref. 127)',
121
    1027 => 'Cannot perform search - incorrect construction (ref. 1027) - to be displayed if SQL created by user, else, display "SQL error (ref. 1027)"',
122
123
    # 2.7. Search - Messages relating to Element Set Names and Element Specification
124
    24 => 'Origin should send a present request with an element set name of F or B and give message "Unable to specify record content as requested". If the message is still received, origin should display "Target protocol error (ref. 24)".',
125
    25 => 'Origin should send a present request with an element set name of F or B and give message "Unable to specify record content as requested". If the message is still received, origin should display "Target protocol error (ref. 25)".',
126
    26 => 'Origin should send a present request with an element set name of F or B and give message "Unable to specify record content as requested".',
127
128
    # 2.8. Search - Messages relating to Results Set Names
129
    18 => 'Cannot search by {result set name} (ref. 18)',
130
    19 => 'Cannot search by more than one named results set (ref. 19)',
131
    20 => 'Cannot perform search - {operator} not valid with a results set. Valid search = {Results set name} AND {term} - Perform search? (ref. 20)',
132
    21 => 'Cannot create a results set with this name because it already exists - Delete existing results set? (ref. 21)',
133
    22 => 'Naming of search results not supported (ref. 22)',
134
    112 => 'Too many results sets already exist, select one or more from the following list to delete (ref. 112)',
135
    128 => '{Results set name} is an illegal name (ref. 128)',
136
137
    # 2.9. Search - Messages relating to Piggyback Present
138
    # Messages relating to Individual Records
139
    14 => 'System error - cannot retrieve record or records (ref. 14)',
140
    15 => 'Cannot retrieve requested record - security failure (ref. 15)',
141
    16 => 'Oversized record, cannot be retrieved (ref. 16)',
142
    17 => 'Oversized record, cannot be retrieved (ref. 17)',
143
    103 => 'Record could not be retrieved - security failure (ref. 103)',
144
    104 => 'Record could not be retrieved - security failure (ref. 104)',
145
    1026 => 'Cannot retrieve record, currently locked (ref. 1026)',
146
    1028 => 'Cannot retrieve record - record deleted (ref. 1028)',
147
    # Messages relating to Record Syntax
148
    106 => 'Cannot retrieve record, record syntax not displayable (ref. 106)',
149
    227 => 'Cannot retrieve record, record syntax not displayable (ref. 227)',
150
    238 => 'Cannot retrieve record, record syntax not displayable (ref. 238)',
151
    239 => 'Cannot retrieve record, record syntax not displayable (ref. 239)',
152
    # Messages relating to Piggyback Present
153
    1005 => 'Do not display - perform a present request',
154
    1006 => 'Do not display - perform a present request',
155
156
    # 2.10 Search - Messages relating to Proximity
157
    129 => 'Cannot do a proximity search of a results set (ref. 129)',
158
    130 => 'Do not display - origin should correct error',
159
    131 => 'Cannot do a proximity search using {relation type} (ref. 131)',
160
    132 => 'Cannot do a proximity search based on {known proximity unit} (ref. 132)',
161
    201 => 'Cannot do a proximity search with {attribute} combined with {attribute} (ref. 201)',
162
    202 => 'Cannot do a proximity search with a distance of {distance} and {known proximity unit} (ref. 202)',
163
    203 => 'Do not display - origin should retry without the ordered flag.',
164
    # Note that if the origin did not prompt for the proximity parameters then it should not present these messages to the user. In preference, the origin should attempt to construct a proximity search that will be accepted by the target or should revert to a boolean AND combination in the search.
165
166
    # 2.11. Search - Messages relating to Search Results
167
    12 => 'Too many records retrieved (ref. 12)',
168
    31 => 'Search has not completed - No results available (ref. 31)',
169
    32 => 'Search has not completed - Partial results available, quality unknown (ref. 32)',
170
    33 => 'Search has not completed - Partial results available (ref. 33)',
171
172
    # 2.12. Present - General messages
173
    13 => 'No more records to display ( ref. 13)',
174
    101 => 'Security failure (ref. 101)',
175
    102 => 'Target protocol error (ref. 102) - (all targets should support present once init successful.)',
176
    243 => 'Cannot retrieve more than one range of records at once (ref. 243)',
177
    244 => 'Cannot retrieve record with contents as specified (ref. 244)',
178
    1066 => 'Cannot retrieve record with contents as specified (ref. 1066)',
179
180
    # 2.13. Present - Messages relating to Results Sets
181
    27 => 'Cannot retrieve records - results set was deleted (ref. 27)',
182
    28 => 'Cannot retrieve records - results set currently in use (ref. 28)',
183
    30 => 'Cannot retrieve records - results set not found (ref. 30)',
184
185
    # 2.14. Present - Messages relating to Record Syntax
186
    106 => 'Cannot retrieve record, record syntax not displayable (ref. 106)',
187
    227 => 'Cannot retrieve record, record syntax not displayable (ref. 227)',
188
    238 => 'Cannot retrieve record, record syntax not displayable (ref. 238)',
189
    239 => 'Cannot retrieve record, record syntax not displayable (ref. 239)',
190
    1070 => 'User not authorized to receive this record in requested syntax',
191
192
    # 2.15. Present - Messages relating to Segmentation
193
    217 => 'Oversized record or records, cannot guarantee quality of results (ref. 217)',
194
    242 => 'Cannot retrieve record - oversized (ref. 242)',
195
196
    # 2.16. Present - Messages relating to Individual Records
197
    14 => 'System error - cannot retrieve record or records (ref. 14)',
198
    15 => 'Cannot retrieve requested record - security failure (ref. 15)',
199
    16 => 'Oversized record, cannot be retrieved (ref. 16)',
200
    17 => 'Oversized record, cannot be retrieved (ref. 17)',
201
    103 => 'Record could not be retrieved - security failure (ref. 103)',
202
    104 => 'Record could not be retrieved - security failure (ref. 104)',
203
    1026 => 'Cannot retrieve record, currently locked (ref. 1026)',
204
    1028 => 'Cannot retrieve record - record deleted (ref. 1028)',
205
206
    # 2.17. Scan - General Messages
207
    101 => 'Security failure (ref. 101)',
208
    102 => 'Security failure (ref. 102)',
209
    205 => 'Cannot skip records when scanning, can only scan one by one (ref. 205)',
210
    206 => 'Cannot skip {step size} records when scanning (ref. 206)',
211
    228 => 'Do not display - origin should correct error',
212
    229 => 'Cannot scan by {term type} (ref. 229). Preferably, origin should retry scan using "general" type',
213
    232 => 'Cannot perform scan as requested (ref. 232) Preferably origin should perform multiple scans.',
214
    233 => 'Do not display - origin should resubmit scan without position in response.',
215
    234 => 'Cannot perform scan as requested (ref. 234) Preferably origin should perform multiple scans.',
216
    240 => 'Scan not completed - resources exhausted (ref. 240)',
217
    241 => 'Cannot scan any further - beginning or end reached (ref. 241)',
218
    1029 => 'Cannot perform scan as requested (ref. 1029) Preferably origin should perform multiple scans.',
219
220
    # 2.18. Scan - Messages relating to Database Selection
221
    109 => '{Database name} currently unavailable (ref. 109)',
222
    111 => 'Cannot perform scan - too many databases (ref. 111)',
223
    235 => 'Database does not exist (ref. 235)',
224
    236 => 'Access to {database name} denied (ref. 236)',
225
    1025 => 'Scan not available for {database name} (ref. 1025)',
226
227
    # 2.19. Scan - Messages relating to Scan attributes
228
    113 => 'Cannot perform scan as requested (ref. 113)',
229
    114 => 'Cannot perform scan - {use attribute} not supported (ref. 114)',
230
    115 => 'Cannot perform scan - structure of term not supported (ref. 115)',
231
    116 => 'Do not display - origin should correct error',
232
    117 => 'Cannot perform scan - {relation attribute} not supported (ref. 117)',
233
    118 => 'Cannot perform scan - {structure attribute} not supported (ref. 118)',
234
    119 => 'Cannot perform scan - {position attribute} not supported (ref. 119)',
235
    120 => 'Cannot truncate scan as requested (ref. 120)',
236
    121 => 'Cannot scan by {attribute set / attribute} (ref. 121)',
237
    122 => 'Cannot perform scan - {completeness attribute} not supported (ref. 122)',
238
    123 => 'Cannot scan {attribute} with {attribute} as requested (ref. 123)',
239
    126 => 'Cannot perform scan - incorrect construction (ref. 126)',
240
    1024 => 'Cannot perform scan as requested (ref. 1024)',
241
    1051 => 'Do not display - origin should correct error',
242
243
    # 2.20. Explain
244
    102 => 'Security failure (ref. 102)',
245
    1007 => 'Message not displayed - origin should redirect explain request.',
246
247
    # 2.21. Sort
248
    102 => 'Security failure (ref. 102)',
249
    207 => 'Cannot sort by {sequence} (ref. 207)',
250
    208 => 'Do not display - origin should correct error',
251
    209 => 'Can only sort the results from one database (ref. 209)',
252
    210 => 'Cannot sort results from {Database name} (ref. 210)',
253
    211 => 'Unable to sort - too many sort keys (ref. 211)',
254
    212 => 'Do not display - origin should correct error',
255
    213 => 'Do not display - origin should correct error',
256
    214 => 'Do not display - origin should correct error',
257
    215 => 'Do not display - origin should correct error',
258
    216 => 'Do not display - origin should correct error',
259
    230 => 'Too many records to sort (ref. 230)',
260
    231 => 'Unable to sort as requested (ref. 231)',
261
    237 => 'Do not display - origin should correct error',
262
263
    # 3. Messages - Numeric Sequence
264
    1 => 'System unavailable - Permanent system error (ref. 1)',
265
    2 => 'System temporarily unavailable (ref. 2.)',
266
    3 => 'Unsupported search for this database (ref. 3)',
267
    4 => 'Search cannot be performed - only contains common words that are not indexed (ref. 4)',
268
    5 => 'Search cannot be performed - Too many words or phrases in the search (ref. 5)',
269
    6 => 'Search cannot be performed - Too many words or phrases in the search (ref. 6)',
270
    7 => 'Search cannot be performed - Too many truncated words or phrases in the search (ref. 7)',
271
    8 => 'Search cannot be performed (ref. 8)',
272
    9 => 'Search cannot be performed - Truncated words are too short (ref. 9)',
273
    10 => 'Search cannot be performed - Invalid format of record number (ref. 10)',
274
    11 => 'Search cannot be performed - Too long (too many characters in the search) (ref. 11)',
275
    12 => 'Too many records retrieved (ref. 12)',
276
    13 => 'No more records to display ( ref. 13)',
277
    14 => 'System error - cannot retrieve record or records (ref. 14)',
278
    15 => 'Cannot retrieve requested record - security failure (ref. 15)',
279
    16 => 'Oversized record, cannot be retrieved (ref. 16)',
280
    17 => 'Oversized record, cannot be retrieved (ref. 17)',
281
    18 => 'Cannot search by {result set name} (ref. 18)',
282
    19 => 'Cannot search by more than one named results set (ref. 19)',
283
    20 => 'Cannot perform search - {operator} not valid with a results set. Valid search = {Results set name} AND {term} - Perform search? (ref. 20)',
284
    21 => 'Cannot create a results set with this name because it already exists - Delete existing results set? (ref. 21)',
285
    22 => 'Naming of search results not supported (ref. 22)',
286
    23 => 'Specific combination of databases not supported (ref. 23)',
287
    24 => 'Origin should send a present request with an element set name of F or B and give message "Unable to specify record content as requested". If the message is still received, origin should display "Target protocol error (ref. 24)".',
288
    25 => 'Origin should send a present request with an element set name of F or B and give message "Unable to specify record content as requested". If the message is still received, origin should display "Target protocol error (ref. 25)".',
289
    26 => 'Origin should send a present request with an element set name of F or B and give message "Unable to specify record content as requested".',
290
    27 => 'Cannot retrieve records - results set was deleted (ref. 27)',
291
    28 => 'Cannot retrieve records - results set currently in use (ref. 28)',
292
    29 => '{Database name} currently unavailable (ref. 29)',
293
    30 => 'Cannot retrieve records - results set not found (ref. 30)',
294
    31 => 'Search has not completed - No results available (ref. 31)',
295
    32 => 'Search has not completed - Partial results available, quality unknown (ref. 32)',
296
    33 => 'Search has not completed - Partial results available (ref. 33)',
297
    100 => 'Unspecified error (ref. 100)',
298
    101 => 'Security failure (ref. 101)',
299
    102 => 'For Search and Present: Target protocol error (ref. 102)',
300
    # For other services: Security failure (ref. 102)
301
302
    103 => 'Record could not be retrieved - security failure (ref. 103)',
303
    104 => 'Record could not be retrieved - security failure (ref. 104)',
304
    105 => 'Terminated as requested (ref. 105) (if user initiated the request)',
305
    106 => 'Cannot retrieve record, record syntax not displayable (ref. 106)',
306
    107 => 'Origin should send a type 1 query. If the message is still received, origin should display "Target protocol error (ref. 107)".',
307
    108 => 'Cannot perform search - malformed query (ref. 108)',
308
    109 => '{Database name} currently unavailable (ref. 109)',
309
    110 => 'Cannot perform search - {operator} not supported (ref. 110)',
310
    111 => 'Cannot perform search/scan - too many databases (ref. 111)',
311
    112 => 'Too many results sets already exist, select one or more from the following list to delete (ref. 112)',
312
    113 => 'Cannot perform search/scan as requested (ref. 113)',
313
    114 => 'Cannot perform search/scan - {use attribute} not supported (ref. 114)',
314
    115 => 'Cannot perform search/scan - structure of term not supported (ref. 115)',
315
    116 => 'Do not display - origin should correct error',
316
    117 => 'Cannot perform search/scan - {relation attribute} not supported (ref. 117)',
317
    118 => 'Cannot perform search/scan - {structure attribute} not supported (ref. 118)',
318
    119 => 'Cannot perform search/scan - {position attribute} not supported (ref. 119)',
319
    120 => 'Cannot truncate search/scan as requested (ref. 120)',
320
    121 => 'Cannot search/scan by {attribute set / attribute} (ref. 121)',
321
    122 => 'Cannot perform search/scan - {completeness attribute} not supported (ref. 122)',
322
    123 => 'Cannot search/scan {attribute} with {attribute} as requested (ref. 123)',
323
    124 => 'Cannot search by {term} (ref. 124)',
324
    125 => 'Cannot search by {term} (ref. 125)',
325
    126 => 'Cannot perform search/scan - incorrect construction (ref. 126)',
326
    127 => '{Unnormalised value} cannot be processed (ref. 127)',
327
    128 => '{Results set name} is an illegal name (ref. 128)',
328
    129 => 'Cannot do a proximity search of a results set (ref. 129)',
329
    130 => 'Do not display - origin should correct error',
330
    131 => 'Cannot do a proximity search using {relation type} (ref. 131)',
331
    132 => 'Cannot do a proximity search based on {known proximity unit} (ref. 132)',
332
    201 => 'Cannot do a proximity search with {attribute} combined with {attribute} (ref. 201)',
333
    202 => 'Cannot do a proximity search with a distance of {distance} and {known proximity unit} (ref. 202)',
334
    203 => 'Do not display - origin should retry without the ordered flag.',
335
    205 => 'Cannot skip records when scanning, can only scan one by one (ref. 205)',
336
    206 => 'Cannot skip {step size} records when scanning (ref. 206)',
337
    207 => 'Cannot sort by {sequence} (ref. 207)',
338
    208 => 'Do not display - origin should correct error',
339
    209 => 'Can only sort the results from one database (ref. 209)',
340
    210 => 'Cannot sort results from {Database name} (ref. 210)',
341
    211 => 'Unable to sort - too many sort keys (ref. 211)',
342
    212 => 'Do not display - origin should correct error',
343
    213 => 'Do not display - origin should correct error',
344
    214 => 'Do not display - origin should correct error',
345
    215 => 'Do not display - origin should correct error',
346
    216 => 'Do not display - origin should correct error',
347
    217 => 'Oversized record or records, cannot guarantee quality of results (ref. 217)',
348
    218 => 'Do not display - client should assign a different name',
349
    219 => 'Cannot perform {extended service} cannot find task reference number (ref. 219)',
350
    220 => 'Cannot perform {extended service}, quota exceeded (ref. 220)',
351
    221 => 'Cannot perform {extended service}, service not supported (ref. 221)',
352
    222 => 'Cannot perform {extended service}, not authorized (ref. 222)',
353
    223 => 'Cannot change or delete {extended service}, not authorized (ref. 223)',
354
    224 => 'Cannot perform {extended service} interactively (ref. 224)',
355
    225 => 'Cannot perform {extended service} interactively (ref. 225)',
356
    226 => 'Cannot perform this {extended service} interactively (ref. 226)',
357
    227 => 'Cannot retrieve record, record syntax not displayable (ref. 227)',
358
    228 => 'Do not display - origin should correct error',
359
    229 => 'Cannot scan by {term type} (ref. 229). Preferably, origin should retry scan using "general" type',
360
    230 => 'Too many records to sort (ref. 230)',
361
    231 => 'Unable to sort as requested (ref. 231)',
362
    232 => 'Cannot perform scan as requested (ref. 232) Preferably origin should perform multiple scans.',
363
    233 => 'Do not display - origin should resubmit scan without position in response.',
364
    234 => 'Cannot perform scan as requested (ref. 234) Preferably origin should perform multiple scans.',
365
    235 => 'Database does not exist (ref. 235)',
366
    236 => 'Access to {database name} denied (ref. 236)',
367
    237 => 'Do not display - origin should correct error',
368
    238 => 'Cannot retrieve record, record syntax not displayable (ref. 238)',
369
    239 => 'Cannot retrieve record, record syntax not displayable (ref. 239)',
370
    240 => 'Scan not completed - resources exhausted (ref. 240)',
371
    241 => 'Cannot scan any further - beginning or end reached (ref. 241)',
372
    242 => 'Cannot retrieve record - oversized (ref. 242)',
373
    243 => 'Cannot retrieve more than one range of records at once (ref. 243)',
374
    244 => 'Cannot retrieve record with contents as specified (ref. 244)',
375
    245 => 'Cannot perform search as requested (ref. 245)',
376
    246 => 'Cannot perform search as requested (ref. 246)',
377
    247 => 'Cannot perform search as requested (ref. 247)',
378
    1001 => 'Do not display - origin should correct error or display "Protocol error (ref. 1001)"',
379
    1002 => 'Cannot accept Item Order request as formatted (ref. 1002)',
380
    1003 => 'Cannot accept Item Order request as formatted (ref. 1003)',
381
    1004 => 'Cannot perform {extended service} - security procedures not met (ref. 1004)',
382
    1005 => 'Do not display - perform a present request',
383
    1006 => 'Do not display - perform a present request',
384
    1007 => 'Message not displayed - origin should redirect explain request.',
385
    1008 => 'Cannot perform {extended service} - missing data (ref. 1008)',
386
    1009 => 'Cannot accept Item Order request as formatted (ref. 1009)',
387
    1010 => 'Unknown user identification (ref. 1010)',
388
    1011 => 'Unknown user identification or invalid password (ref. 1011)',
389
    1012 => 'No searches remaining (pre-purchased searches exhausted) (ref. 1012)',
390
    1013 => 'User identifier not valid for this operation ref. 1013)',
391
    1014 => 'Unknown user identification or invalid password (ref. 1014)',
392
    1015 => 'System temporarily unavailable (ref. 1015)',
393
    1016 => 'System temporarily unavailable (ref. 1016)',
394
    1017 => 'User identifier not valid for any available databases (ref. 1017)',
395
    1018 => 'System temporarily unavailable (ref. 1018)',
396
    1019 => 'System temporarily unavailable (ref. 1019)',
397
    1020 => 'System temporarily available (ref. 1020)',
398
    1021 => 'Access denied - Account has expired (ref. 1021)',
399
    1022 => 'Password expired - please supply new password (ref. 1022)',
400
    1023 => 'Password changed - please supply new password (ref. 1023)',
401
    1024 => 'Cannot perform search as requested (ref. 1024)',
402
    1025 => 'For Search and Present - Target Protocol error (ref. 1025)',
403
    # For other services : Selected database {database} does not support {service} (ref. 1025)
404
405
    1026 => 'Cannot retrieve record, currently locked (ref. 1026)',
406
    1027 => 'Cannot perform search - incorrect construction (ref. 1027) - to be displayed if SQL created by user, else, display "SQL error (ref. 1027)"',
407
    1028 => 'Cannot retrieve record - record deleted (ref. 1028)',
408
    1029 => 'Cannot perform scan as requested (ref. 1029) Preferably origin should perform multiple scans.',
409
    1030 => 'Unknown message (ref. 1030)',
410
    1031 => 'Unknown message (ref. 1031)',
411
    1032 => 'Unknown message (ref. 1032)',
412
    1033 => 'Unknown message (ref. 1033)',
413
    1034 => 'Unknown message (ref. 1034)',
414
    1035 => 'Unknown message (ref. 1035)',
415
    1036 => 'Unknown message (ref. 1036)',
416
    1037 => 'Unknown message (ref. 1037)',
417
    1038 => 'Unknown message (ref. 1038)',
418
    1039 => 'Unknown message (ref. 1039)',
419
    1040 => 'Do not display - origin should correct error',
420
    1041 => 'Cannot perform {extended service} - invalid transaction data (ref. 1041)',
421
    1042 => 'Cannot perform {extended service} - invalid transaction data (ref. 1042)',
422
    1043 => 'Do not display - origin should correct error',
423
    1044 => 'Do not display - origin should correct error',
424
    1045 => 'Cannot perform {extended service} - {schema} schema unknown (ref. 1045)',
425
    1046 => 'Do not display - origin should break into two or more packages. If only one record in package, treat as if message 1052.',
426
    1047 => 'Do not display - origin should correct error',
427
    1048 => 'Do not display - origin should break into two or more packages. If only one record in package, treat as if message 1052.',
428
    1049 => 'Not displayed (but may be logged). Origin should search the task package or the database directly.',
429
    1050 => 'Do not display - origin should break into two or more packages. If only one record in package, treat as if message 1052.',
430
    1051 => 'Do not display - origin should correct error',
431
    1052 => 'Cannot update this record - too large (ref. 1052)',
432
    1053 => 'Not displayed (but may be logged). Origin should search the task package or the database directly.',
433
    1054 => 'Access denied - transaction incomplete (ref. 1054)',
434
    1055 => 'Access denied - transaction incomplete (ref. 1055)',
435
    1056 => 'Cannot perform search as requested (ref. 1056)',
436
    1057 => 'Cannot perform {extended service} as requested (ref. 1057)',
437
    1058 => 'Results may contain duplicates (ref. 1058)',
438
    1059 => 'Results may contain duplicates (ref. 1059)',
439
    1060 => 'Results may contain duplicates (ref. 1060)',
440
    1061 => 'Results may contain duplicates (ref. 1061)',
441
    1062 => 'Results may contain duplicates (ref. 1062)',
442
    1063 => 'Results may contain duplicates (ref. 1063)',
443
    1064 => 'Results may contain duplicates (ref. 1064)',
444
    1065 => 'Results may contain duplicates (ref. 1065)',
445
    1066 => 'Cannot retrieve record with contents as specified (ref. 1066)',
446
    # 1070 => 'User not authorized to receive this record in requested syntax',
447
);
448
35
our (@ISA, @EXPORT_OK);
449
our (@ISA, @EXPORT_OK);
36
BEGIN {
450
BEGIN {
37
    require Exporter;
451
    require Exporter;
Lines 175-180 sub Z3950Search { Link Here
175
                if ($error =~ m/^(10000|10007)$/ ) {
589
                if ($error =~ m/^(10000|10007)$/ ) {
176
                    push(@errconn, { server => $servers[$k]->{host}, error => $error } );
590
                    push(@errconn, { server => $servers[$k]->{host}, error => $error } );
177
                }
591
                }
592
                else {
593
                    # for example when we have 'http 400' or '404' or other errors - at least we should log those!
594
                    #  16  Record exceeds Preferred-message-size   Oversized record, cannot be retrieved (ref. 16)
595
                    warn "Error when doing search from remote: " . ($ERROR_CODE_MEANING{$error} || $error);
596
                }
178
            }
597
            }
179
            else {
598
            else {
180
                my $numresults = $oResult[$k]->size();
599
                my $numresults = $oResult[$k]->size();
181
- 

Return to bug 37843