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:
d64b669
)
Attempt to fix 5709. Has not been able to reproduce before or after
author
Dennis Schafroth
<dennis@indexdata.com>
Wed, 16 May 2012 11:46:17 +0000
(13:46 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Wed, 16 May 2012 11:46:17 +0000
(13:46 +0200)
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
e2335da
..
e2c4cba
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-442,8
+442,9
@@
pz2.prototype =
context.throwError('Show failed. Malformed WS resonse.',
114);
};
+
var approxNode = data.getElementsByTagName("approximation");
- if (approxNode)
+ if (approxNode && approxNode[0] && approxNode[0].childNodes[0] && approxNode[0].childNodes[0].nodeValue)
show['approximation'] =
Number( approxNode[0].childNodes[0].nodeValue);