From: Adam Dickmeiss Date: Wed, 2 Mar 2005 23:59:22 +0000 (+0000) Subject: Wrap OPACXML in opacRecord as suggested by Larry Dixson. X-Git-Tag: YAZ.2.1.0~21 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=89ebb6f247bae61360fe7ee2997c27e030ee1820;p=yaz-moved-to-github.git Wrap OPACXML in opacRecord as suggested by Larry Dixson. --- diff --git a/src/opacdisp.c b/src/opacdisp.c index 79c1dde..1cef0d3 100644 --- a/src/opacdisp.c +++ b/src/opacdisp.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: opacdisp.c,v 1.5 2005-02-25 17:05:09 adam Exp $ + * $Id: opacdisp.c,v 1.6 2005-03-02 23:59:22 adam Exp $ */ /** * \file opacdisp.c @@ -54,8 +54,7 @@ void yaz_opac_decode_wrbuf(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf) { int i; - wrbuf_puts(wrbuf, "\n"); - + wrbuf_puts(wrbuf, "\n"); if (r->bibliographicRecord) { Z_External *ext = r->bibliographicRecord; @@ -66,6 +65,8 @@ void yaz_opac_decode_wrbuf(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf) ext->u.octet_aligned->len, wrbuf); wrbuf_puts (wrbuf, " \n"); } + wrbuf_puts(wrbuf, "\n"); + for (i = 0; i < r->num_holdingsData; i++) { Z_HoldingsRecord *h = r->holdingsData[i]; @@ -155,6 +156,7 @@ void yaz_opac_decode_wrbuf(yaz_marc_t mt, Z_OPACRecord *r, WRBUF wrbuf) wrbuf_puts(wrbuf, " \n"); } wrbuf_puts(wrbuf, "\n"); + wrbuf_puts(wrbuf, "\n"); } void yaz_display_OPAC(WRBUF wrbuf, Z_OPACRecord *opac_rec, int flags)