X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fretrieval.c;h=65c1098e51883e74192cb8f9de269f61757be35a;hp=f82f8c7ac98a864d7ff1f669b29ca1949a56f754;hb=e38cab5629e6643d9e1621a697e8ccc8d7822727;hpb=97d7fdb61597302d861480d4bc7455d4bb1b08cb diff --git a/src/retrieval.c b/src/retrieval.c index f82f8c7..65c1098 100644 --- a/src/retrieval.c +++ b/src/retrieval.c @@ -180,6 +180,14 @@ static int conf_retrieval(yaz_retrieval_t p, const xmlNode *ptr) else { + if (el->record_conv) + { + wrbuf_printf(p->wr_error, "Element : " + "only one allowed"); + yaz_record_conv_destroy(el->record_conv); + return -1; + } + /* parsing attributees */ struct _xmlAttr *attr; for (attr = ptr->properties; attr; attr = attr->next){