projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use wrbuf_xmlputs_n instead of wrbuf_write_cdata to avoid clash with
[yaz-moved-to-github.git]
/
src
/
srwutil.c
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
a7bc839
..
5a81820
100644
(file)
--- a/
src/srwutil.c
+++ b/
src/srwutil.c
@@
-2,7
+2,7
@@
* Copyright (c) 2002-2004, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 2002-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: srwutil.c,v 1.11 2004-01-27 21:22:44 adam Exp $
+ * $Id: srwutil.c,v 1.14 2004-03-01 17:33:03 adam Exp $
*/
#include <yaz/srw.h>
*/
#include <yaz/srw.h>
@@
-134,8
+134,8
@@
void yaz_uri_val_int(const char *path, const char *name, ODR o, int **intp)
void yaz_mk_std_diagnostic(ODR o, Z_SRW_diagnostic *d,
int code, const char *details)
{
void yaz_mk_std_diagnostic(ODR o, Z_SRW_diagnostic *d,
int code, const char *details)
{
- d->code = (char *) odr_malloc(o, 50);
- sprintf(d->code, "info:srw/diagnostic/1/%d", code);
+ d->uri = (char *) odr_malloc(o, 50);
+ sprintf(d->uri, "info:srw/diagnostic/1/%d", code);
d->message = 0;
if (details)
d->details = odr_strdup(o, details);
d->message = 0;
if (details)
d->details = odr_strdup(o, details);
@@
-254,7
+254,7
@@
int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
char *scanClause = 0;
char *recordXPath = 0;
char *recordSchema = 0;
char *scanClause = 0;
char *recordXPath = 0;
char *recordSchema = 0;
- char *recordPacking = "xml";
+ char *recordPacking = "xml"; /* xml packing is default for SRU */
char *maximumRecords = 0;
char *startRecord = 0;
char **uri_name;
char *maximumRecords = 0;
char *startRecord = 0;
char **uri_name;
@@
-711,6
+711,7
@@
static int srw_bib1_map[] = {
115, 16,
116, 16,
117, 19,
115, 16,
116, 16,
117, 19,
+ 117, 20,
118, 22,
119, 32,
119, 31,
118, 22,
119, 32,
119, 31,