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:
21183d9
)
Issue warning if staticrank is < 0. And set to 0
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 28 Nov 2006 08:44:10 +0000
(08:44 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 28 Nov 2006 08:44:10 +0000
(08:44 +0000)
index/extract.c
patch
|
blob
|
history
diff --git
a/index/extract.c
b/index/extract.c
index
b140531
..
7dcbbee
100644
(file)
--- a/
index/extract.c
+++ b/
index/extract.c
@@
-1,4
+1,4
@@
-/* $Id: extract.c,v 1.242 2006-11-25 09:15:19 adam Exp $
+/* $Id: extract.c,v 1.243 2006-11-28 08:44:10 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
@@
-651,6
+651,11
@@
ZEBRA_RES zebra_extract_record_stream(ZebraHandle zh,
*sysno = rec->sysno;
recordAttr = rec_init_attr (zh->reg->zei, rec);
+ if (extractCtrl.staticrank < 0)
+ {
+ yaz_log(YLOG_WARN, "Negative staticrank for record. Set to 0");
+ extractCtrl.staticrank = 0;
+ }
recordAttr->staticrank = extractCtrl.staticrank;
if (matchStr)