/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
-
/** \file
* \brief Little toy-thing to genearate an OPAC record with some values
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <ctype.h>
#include <yaz/wrbuf.h>
hc->circulationData[0] = (Z_CircRecord *)
odr_malloc(odr, sizeof(**hc->circulationData));
- hc->circulationData[0]->availableNow = odr_intdup(odr, 1);
+ hc->circulationData[0]->availableNow = odr_booldup(odr, 1);
hc->circulationData[0]->availablityDate = 0;
hc->circulationData[0]->availableThru = 0;
hc->circulationData[0]->restrictions = 0;
hc->circulationData[0]->itemId = "1226176";
- hc->circulationData[0]->renewable = odr_intdup(odr, 0);
- hc->circulationData[0]->onHold = odr_intdup(odr, 0);
+ hc->circulationData[0]->renewable = odr_booldup(odr, 0);
+ hc->circulationData[0]->onHold = odr_booldup(odr, 0);
hc->circulationData[0]->enumAndChron = 0;
hc->circulationData[0]->midspine = 0;
hc->circulationData[0]->temporaryLocation = 0;