* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.71 2006-03-16 08:55:28 adam Exp $
+ * $Id: seshigh.c,v 1.74 2006-04-05 12:05:36 mike Exp $
*/
/**
* \file seshigh.c
assoc->backend = binitres->handle;
if (binitres->errcode)
{
+ int srw_code = yaz_diag_bib1_to_srw(binitres->errcode);
assoc->state = ASSOC_DEAD;
- yaz_add_srw_diagnostic(assoc->encode, d, num, binitres->errcode,
+ yaz_add_srw_diagnostic(assoc->encode, d, num, srw_code,
binitres->errstring);
return 0;
}
int r;
int srw_errcode = 0;
const char *add = 0;
- char rpn_buf[512];
+ char rpn_buf[5120];
r = cql_parser_string(cp, cql);
if (r)
yaz_mime_types_add(types, "html", "text/html");
yaz_mime_types_add(types, "htm", "text/html");
yaz_mime_types_add(types, "txt", "text/plain");
+ yaz_mime_types_add(types, "js", "application/x-javascript");
yaz_mime_types_add(types, "gif", "image/gif");
yaz_mime_types_add(types, "png", "image/png");
assoc->init->implementation_name,
odr_prepend(assoc->encode, "GFS", resp->implementationName));
- version = odr_strdup(assoc->encode, "$Revision: 1.71 $");
+ version = odr_strdup(assoc->encode, "$Revision: 1.74 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
resp->implementationVersion = odr_prepend(assoc->encode,