From: Adam Dickmeiss Date: Wed, 26 Jun 1996 09:21:43 +0000 (+0000) Subject: Bug fix: local attribute set wasn't obeyed in scan. X-Git-Tag: ZEBRA.1.0~417 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=bf1f271315a6acfd52d8d7abf1aee2e0502bdbf2 Bug fix: local attribute set wasn't obeyed in scan. --- diff --git a/index/zrpn.c b/index/zrpn.c index b2cde9b..a5da244 100644 --- a/index/zrpn.c +++ b/index/zrpn.c @@ -4,7 +4,10 @@ * 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 @@ -1560,17 +1563,17 @@ int rpn_scan (ZServerInfo *zi, Z_AttributesPlusTerm *zapt, logf (LOG_DEBUG, "scan, position = %d, num = %d", pos, num); + if (attributeset == VAL_NONE) + attributeset = VAL_BIB1; + 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); - 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++)