1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2011 Index Data
3 * See the file LICENSE for details.
7 * \brief Implements SRU/Z39.50 diagnostic mappings
18 static int bib1_srw_map[] = {
106 205, 1, /* bad map */
107 206, 1, /* bad map */
109 208, 1, /* bad map */
120 218, 1, /* bad map */
121 219, 1, /* bad map */
122 220, 1, /* bad map */
123 221, 1, /* bad map */
125 223, 1, /* bad map */
126 224, 1, /* bad map */
127 225, 1, /* bad map */
128 226, 1, /* bad map */
130 228, 1, /* bad map */
135 233, 1, /* bad map */
136 234, 1, /* bad map */
142 240, 1, /* bad map */
143 241, 1, /* bad map */
145 243, 1, /* bad map */
150 1001, 1, /* bad map */
151 1002, 1, /* bad map */
152 1003, 1, /* bad map */
153 1004, 1, /* bad map */
154 1005, 1, /* bad map */
155 1006, 1, /* bad map */
188 * This array contains overrides for when the first occurrence of a
189 * particular SRW error in the array above does not correspond with
190 * the best back-translation of that SRW error.
192 static int srw_bib1_map[] = {
195 /* No doubt there are many more */
200 int yaz_diag_bib1_to_srw (int code)
202 const int *p = bib1_srw_map;
212 int yaz_diag_srw_to_bib1(int code)
214 /* Check explicit reverse-map first */
215 const int *p = srw_bib1_map;
223 /* Fall back on reverse lookup in main map */
237 * c-file-style: "Stroustrup"
238 * indent-tabs-mode: nil
240 * vim: shiftwidth=4 tabstop=8 expandtab