[Refdb-cvs] CVS: refdb/src xmlhandler.c,1.22.2.8,1.22.2.9
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2004-09-28 22:12:44
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28845 Modified Files: Tag: Release_0_9_5_stable xmlhandler.c Log Message: fix double missing counts in multiple citations Index: xmlhandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/xmlhandler.c,v retrieving revision 1.22.2.8 retrieving revision 1.22.2.9 diff -u -U2 -r1.22.2.8 -r1.22.2.9 --- xmlhandler.c 26 Sep 2004 21:13:06 -0000 1.22.2.8 +++ xmlhandler.c 28 Sep 2004 22:12:34 -0000 1.22.2.9 @@ -1682,10 +1682,13 @@ } else { - /* requested ref is not in the database */ - (*(ptr_gbdata->ptr_ndb_notfound))++; + /* don't count the first dummy citation in a multiple citation */ + if (!nis_multi) { + /* requested ref is not in the database */ + (*(ptr_gbdata->ptr_ndb_notfound))++; - /* add ID or citation key to the linked list of unfound stuff */ - if (append_lilifstring(ptr_gbdata->ptr_notfound_first, id_string)) { - (*(ptr_gbdata->ptr_ndb_error))++; + /* add ID or citation key to the linked list of unfound stuff */ + if (append_lilifstring(ptr_gbdata->ptr_notfound_first, id_string)) { + (*(ptr_gbdata->ptr_ndb_error))++; + } } } |