X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fdummy-opac.c;h=beb1229e02bef2fd070b427749cfa4d247de3eef;hb=a067640083f9ef3f18feb267cc361b7602b9fa37;hp=f44d042722b3c1f33e876e876de45fe34a633957;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;p=yaz-moved-to-github.git diff --git a/ztest/dummy-opac.c b/ztest/dummy-opac.c index f44d042..beb1229 100644 --- a/ztest/dummy-opac.c +++ b/ztest/dummy-opac.c @@ -1,13 +1,14 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2012 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 +#endif -#include #include #include #include @@ -65,13 +66,13 @@ Z_OPACRecord *dummy_opac(int num, ODR odr, const char *marc_input) 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;