From: Adam Dickmeiss Date: Wed, 30 Jan 2013 12:29:52 +0000 (+0100) Subject: Diagnostic for missing MARC rule for OPAC X-Git-Tag: v4.2.50~2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=74aa3f7eb2b76108e21dd9d1ea8535387075fe59;p=yaz-moved-to-github.git Diagnostic for missing MARC rule for OPAC --- diff --git a/src/record_conv.c b/src/record_conv.c index 731fa35..5edc28b 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -630,7 +630,10 @@ int yaz_record_conv_opac_record(yaz_record_conv_t p, int ret = 0; struct yaz_record_conv_rule *r = p->rules; if (!r || r->type->construct != construct_marc) + { + wrbuf_puts(p->wr_error, "Expecting MARC rule as first rule for OPAC"); ret = -1; /* no marc rule so we can't do OPAC */ + } else { struct marc_info *mi = r->info;