projects
/
idzebra-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:
3ab71b2
)
Bug fix: local attribute set wasn't obeyed in scan.
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 26 Jun 1996 09:21:43 +0000
(09:21 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 26 Jun 1996 09:21:43 +0000
(09:21 +0000)
index/zrpn.c
patch
|
blob
|
history
diff --git
a/index/zrpn.c
b/index/zrpn.c
index
b2cde9b
..
a5da244
100644
(file)
--- a/
index/zrpn.c
+++ b/
index/zrpn.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zrpn.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zrpn.c,v $
- * Revision 1.52 1996-06-17 14:26:20 adam
+ * Revision 1.53 1996-06-26 09:21:43 adam
+ * Bug fix: local attribute set wasn't obeyed in scan.
+ *
+ * Revision 1.52 1996/06/17 14:26:20 adam
* Function gen_regular_rel changed to handle negative numbers.
*
* Revision 1.51 1996/06/11 10:54:15 quinn
* Function gen_regular_rel changed to handle negative numbers.
*
* Revision 1.51 1996/06/11 10:54:15 quinn
@@
-1560,17
+1563,17
@@
int rpn_scan (ZServerInfo *zi, Z_AttributesPlusTerm *zapt,
logf (LOG_DEBUG, "scan, position = %d, num = %d", pos, num);
logf (LOG_DEBUG, "scan, position = %d, num = %d", pos, num);
+ if (attributeset == VAL_NONE)
+ attributeset = VAL_BIB1;
+
attr_init (&use, zapt, 1);
attr_init (&use, zapt, 1);
- use_value = attr_find (&use, NULL);
+ use_value = attr_find (&use, &attributeset);
logf (LOG_DEBUG, "use value %d", use_value);
attr_init (&completeness, zapt, 6);
completeness_value = attr_find (&completeness, NULL);
logf (LOG_DEBUG, "completeness value %d", completeness_value);
logf (LOG_DEBUG, "use value %d", use_value);
attr_init (&completeness, zapt, 6);
completeness_value = attr_find (&completeness, NULL);
logf (LOG_DEBUG, "completeness value %d", completeness_value);
- if (attributeset == VAL_NONE)
- attributeset = VAL_BIB1;
-
if (use_value == -1)
use_value = 1016;
for (base_no = 0; base_no < num_bases && ord_no < 32; base_no++)
if (use_value == -1)
use_value = 1016;
for (base_no = 0; base_no < num_bases && ord_no < 32; base_no++)