projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a601f8d
)
Diagnostic for missing MARC rule for OPAC
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 30 Jan 2013 12:29:52 +0000
(13:29 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 30 Jan 2013 12:29:52 +0000
(13:29 +0100)
src/record_conv.c
patch
|
blob
|
history
diff --git
a/src/record_conv.c
b/src/record_conv.c
index
731fa35
..
5edc28b
100644
(file)
--- 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;