From: Mike Taylor Date: Fri, 10 Mar 2006 17:18:09 +0000 (+0000) Subject: Recognise the "always" configuration element. X-Git-Tag: YAZ.2.1.14~7 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=8dde2679aeaae3fbe0cbee6c891ba07249245837;p=yaz-moved-to-github.git Recognise the "always" configuration element. --- diff --git a/NEWS b/NEWS index 1742c1b..9a78435 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,11 @@ defaults. So now a combination of mapping specifications such as: index.dc.date = 1=date-modified 4=5 does the right thing. +cql_transform() now also respects the "always" mapping specification, +which establishes an initial set of attributes to be used for all +terms except where overridden by more specific attributes associated +with the index, relation or modifier. + Added SRU-GET and SRU-POST support for ZOOM C. Option "sru" specifies which mode to use; one of "post", "get" or "soap" (SRW, default). diff --git a/src/cqltransform.c b/src/cqltransform.c index 69630e4..9b2e18d 100644 --- a/src/cqltransform.c +++ b/src/cqltransform.c @@ -1,4 +1,4 @@ -/* $Id: cqltransform.c,v 1.19 2006-03-10 14:43:13 mike Exp $ +/* $Id: cqltransform.c,v 1.20 2006-03-10 17:18:09 mike Exp $ Copyright (C) 1995-2005, Index Data ApS Index Data Aps @@ -399,6 +399,7 @@ void cql_transform_r(cql_transform_t ct, ct->addinfo = 0; } } + cql_pr_attr(ct, "always", 0, 0, pr, client_data, 0); if (cn->u.st.relation && !cql_strcmp(cn->u.st.relation, "=")) cql_pr_attr(ct, "relation", "eq", "scr", pr, client_data, 19);