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
Version 4.2.40
[yaz-moved-to-github.git]
/
src
/
opacdisp.c
diff --git
a/src/opacdisp.c
b/src/opacdisp.c
index
735d969
..
1a3adf4
100644
(file)
--- a/
src/opacdisp.c
+++ b/
src/opacdisp.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-13,7
+13,6
@@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <ctype.h>
#include <yaz/proto.h>
#include <yaz/marcdisp.h>
#include <yaz/proto.h>
#include <yaz/marcdisp.h>
@@
-30,7
+29,7
@@
static void opac_element_str(WRBUF wrbuf, yaz_iconv_t cd1, yaz_iconv_t cd2,
wrbuf_puts(wrbuf, "<");
wrbuf_puts(wrbuf, elem);
wrbuf_puts(wrbuf, ">");
wrbuf_puts(wrbuf, "<");
wrbuf_puts(wrbuf, elem);
wrbuf_puts(wrbuf, ">");
-
+
pos = wrbuf->pos; /* save position */
if (wrbuf_iconv_write_x(wrbuf, cd1, data, strlen(data), 1) && cd2)
{
pos = wrbuf->pos; /* save position */
if (wrbuf_iconv_write_x(wrbuf, cd1, data, strlen(data), 1) && cd2)
{
@@
-69,7
+68,7
@@
void yaz_opac_decode_wrbuf2(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf,
if (r->bibliographicRecord)
{
Z_External *ext = r->bibliographicRecord;
if (r->bibliographicRecord)
{
Z_External *ext = r->bibliographicRecord;
-
+
wrbuf_puts(wrbuf, " <bibliographicRecord>\n");
if (ext->which == Z_External_octet)
yaz_marc_decode_wrbuf(mt, (const char *) ext->u.octet_aligned->buf,
wrbuf_puts(wrbuf, " <bibliographicRecord>\n");
if (ext->which == Z_External_octet)
yaz_marc_decode_wrbuf(mt, (const char *) ext->u.octet_aligned->buf,
@@
-97,9
+96,9
@@
void yaz_opac_decode_wrbuf2(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf,
else if (h->which == Z_HoldingsRecord_holdingsAndCirc)
{
int j;
else if (h->which == Z_HoldingsRecord_holdingsAndCirc)
{
int j;
-
+
Z_HoldingsAndCircData *d = h->u.holdingsAndCirc;
Z_HoldingsAndCircData *d = h->u.holdingsAndCirc;
-
+
opac_element_str(wrbuf, cd1, cd2, 2, "typeOfRecord",
d->typeOfRecord);
opac_element_str(wrbuf, cd1, cd2, 2, "encodingLevel",
opac_element_str(wrbuf, cd1, cd2, 2, "typeOfRecord",
d->typeOfRecord);
opac_element_str(wrbuf, cd1, cd2, 2, "encodingLevel",