projects
/
pazpar2-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:
dd4dd14
)
Bases error reporting on 'state' rather than 'hits'.
author
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Wed, 30 Jun 2010 10:57:30 +0000
(06:57 -0400)
committer
Niels Erik G. Nielsen
<nielserik@indexdata.com>
Wed, 30 Jun 2010 10:57:30 +0000
(06:57 -0400)
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
7948ea0
..
3665c4e
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-637,6
+637,13
@@
pz2.prototype =
bytarget[i][nodeName] = nodeText;
}
}
+ if (bytarget[i]["state"]=="Client_Disconnected") {
+ bytarget[i]["hits"] = "Error";
+ } else if (bytarget[i]["state"]=="Client_Error") {
+ bytarget[i]["hits"] = "Error";
+ } else if (bytarget[i]["state"]=="Client_Working") {
+ bytarget[i]["hits"] = "...";
+ }
}
context.bytargetCounter++;