* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.151 2003-03-24 22:26:50 adam Exp $
+ * $Id: seshigh.c,v 1.153 2003-04-18 15:11:04 adam Exp $
*/
/*
yaz_diag_bib1_to_srw (rr.errcode));
srw_res->diagnostics[0].details = rr.errstring;
yaz_log(LOG_DEBUG, "srw_bend_search returned SRW error %d",
- srw_res->diagnostics[0].code);
+ *srw_res->diagnostics[0].code);
}
else
memcpy (db, p0, p1 - p0);
db[p1 - p0] = '\0';
}
+#if HAVE_XML2
if (p1 && *p1 == '?' && p1[1])
{
Z_SRW_PDU *res = yaz_srw_get(o, Z_SRW_searchRetrieve_response);
}
sr->u.request->recordSchema = uri_val(p1, "recordSchema", o);
sr->u.request->recordPacking = uri_val(p1, "recordPacking", o);
+ if (!sr->u.request->recordPacking)
+ sr->u.request->recordPacking = "xml";
uri_val_int(p1, "maximumRecords", o,
&sr->u.request->maximumRecords);
uri_val_int(p1, "startRecord", o,
}
}
}
+#endif
#ifdef DOCDIR
if (strlen(hreq->path) >= 5 && strlen(hreq->path) < 80 &&
!memcmp(hreq->path, "/doc/", 5))