/* 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.
*/
/**
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <ctype.h>
#include <yaz/proto.h>
#include <yaz/marcdisp.h>
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)
{
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,
else if (h->which == Z_HoldingsRecord_holdingsAndCirc)
{
int j;
-
+
Z_HoldingsAndCircData *d = h->u.holdingsAndCirc;
-
+
opac_element_str(wrbuf, cd1, cd2, 2, "typeOfRecord",
d->typeOfRecord);
opac_element_str(wrbuf, cd1, cd2, 2, "encodingLevel",