projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76bd678
)
Fix sequence of diagnostic element
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 15 Jan 2004 23:33:29 +0000
(23:33 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 15 Jan 2004 23:33:29 +0000
(23:33 +0000)
src/srw.c
patch
|
blob
|
history
diff --git
a/src/srw.c
b/src/srw.c
index
038b9b6
..
7fb30b4
100644
(file)
--- a/
src/srw.c
+++ b/
src/srw.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: srw.c,v 1.17 2004-01-09 19:53:42 adam Exp $
+ * $Id: srw.c,v 1.18 2004-01-15 23:33:29 adam Exp $
*/
#include <yaz/srw.h>
*/
#include <yaz/srw.h>
@@
-318,13
+318,13
@@
static int yaz_srw_diagnostics(ODR o, xmlNodePtr pptr, Z_SRW_diagnostic **recs,
{
xmlNodePtr rptr = xmlNewChild(pptr, ns_diag, "diagnostic", 0);
add_xsd_integer(rptr, "code", (*recs)[i].code);
{
xmlNodePtr rptr = xmlNewChild(pptr, ns_diag, "diagnostic", 0);
add_xsd_integer(rptr, "code", (*recs)[i].code);
- add_xsd_string(rptr, "details", (*recs)[i].details);
if ((*recs)[i].code)
{
const char *message = yaz_diag_srw_str(*(*recs)[i].code);
if (message)
add_xsd_string(rptr, "message", message);
}
if ((*recs)[i].code)
{
const char *message = yaz_diag_srw_str(*(*recs)[i].code);
if (message)
add_xsd_string(rptr, "message", message);
}
+ add_xsd_string(rptr, "details", (*recs)[i].details);
}
}
return 0;
}
}
return 0;