1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2012 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 */
190 * This array contains overrides for when the first occurrence of a
191 * particular SRW error in the array above does not correspond with
192 * the best back-translation of that SRW error.
194 static int srw_bib1_map[] = {
198 /* No doubt there are many more */
203 int yaz_diag_bib1_to_srw (int code)
205 const int *p = bib1_srw_map;
215 int yaz_diag_srw_to_bib1(int code)
217 /* Check explicit reverse-map first */
218 const int *p = srw_bib1_map;
226 /* Fall back on reverse lookup in main map */
240 * c-file-style: "Stroustrup"
241 * indent-tabs-mode: nil
243 * vim: shiftwidth=4 tabstop=8 expandtab