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:
39671a0
)
Fix RPN to CQL rejects local Bib-1 attribute set YAZ-861
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Oct 2015 14:15:42 +0000
(16:15 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Oct 2015 14:15:42 +0000
(16:15 +0200)
src/cqltransform.c
patch
|
blob
|
history
diff --git
a/src/cqltransform.c
b/src/cqltransform.c
index
b5fe140
..
1118dc2
100644
(file)
--- a/
src/cqltransform.c
+++ b/
src/cqltransform.c
@@
-339,9
+339,11
@@
const char *cql_lookup_reverse(cql_transform_t ct,
for (j = 0; j < attributes->num_attributes; j++)
{
/* actual attribute */
for (j = 0; j < attributes->num_attributes; j++)
{
/* actual attribute */
- Z_AttributeElement *a_ae = attributes->attributes[j];
- int r = compare_attr(e_ae, a_ae);
- if (r == 0)
+ Z_AttributeElement a_ae = *attributes->attributes[j];
+ if (a_ae.attributeSet && &e_ae->attributeSet &&
+ !oid_oidcmp(a_ae.attributeSet, yaz_oid_attset_bib_1))
+ a_ae.attributeSet = 0;
+ if (!compare_attr(e_ae, &a_ae))
break;
}
if (j == attributes->num_attributes)
break;
}
if (j == attributes->num_attributes)