* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.70 2006-03-15 14:12:26 marc Exp $
+ * $Id: seshigh.c,v 1.72 2006-03-16 12:30:03 adam 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;
}
if (!stylesheet)
stylesheet = assoc->stylesheet;
+ /* empty stylesheet means NO stylesheet */
+ if (stylesheet && *stylesheet == '\0')
+ stylesheet = 0;
+
ret = z_soap_codec_enc_xsl(assoc->encode, &soap_package,
&hres->content_buf, &hres->content_len,
soap_handlers, charset, stylesheet);
assoc->init->implementation_name,
odr_prepend(assoc->encode, "GFS", resp->implementationName));
- version = odr_strdup(assoc->encode, "$Revision: 1.70 $");
+ version = odr_strdup(assoc->encode, "$Revision: 1.72 $");
if (strlen(version) > 10) /* check for unexpanded CVS strings */
version[strlen(version)-2] = '\0';
resp->implementationVersion = odr_prepend(assoc->encode,