X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fdummy-opac.c;h=dbf40cfbba9f2a4b3abf6678828049f21971a293;hp=47d9f56fd677abdb59b0e0be0a1988705a6f15dd;hb=5541b773e8ee0e5c086946016c060f6f629bd410;hpb=6b76baf0fb5d0d437caedd8076f77f372d775758 diff --git a/ztest/dummy-opac.c b/ztest/dummy-opac.c index 47d9f56..dbf40cf 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-2013 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 @@ -30,11 +31,11 @@ Z_OPACRecord *dummy_opac(int num, ODR odr, const char *marc_input) odr_malloc(odr, sizeof(*hr)); Z_HoldingsAndCircData *hc = (Z_HoldingsAndCircData *) odr_malloc(odr, sizeof(*hc)); - + rec->holdingsData[i] = hr; hr->which = Z_HoldingsRecord_holdingsAndCirc; hr->u.holdingsAndCirc = hc; - + hc->typeOfRecord = "u"; hc->encodingLevel = "u"; @@ -45,7 +46,7 @@ Z_OPACRecord *dummy_opac(int num, ODR odr, const char *marc_input) hc->completeness = 0; /* OPT */ hc->dateOfReport = "000000"; hc->nucCode = "s-FM/GC"; - hc->localLocation = + hc->localLocation = "Main or Science/Business Reading Rms - STORED OFFSITE"; hc->shelvingLocation = 0; /* OPT */ hc->callNumber = "MLCM 89/00602 (N)";