From: Dennis Schafroth Date: Fri, 13 Apr 2012 13:44:05 +0000 (+0200) Subject: Pass on approximation X-Git-Tag: v1.6.13~44^2~1 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=8bfec4f65dad9787b17ec7df90b97d110d6cfa04;p=pazpar2-moved-to-github.git Pass on approximation --- diff --git a/js/pz2.js b/js/pz2.js index 41fa147..e2335da 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -441,7 +441,14 @@ pz2.prototype = } else { context.throwError('Show failed. Malformed WS resonse.', 114); - } + }; + var approxNode = data.getElementsByTagName("approximation"); + if (approxNode) + show['approximation'] = + Number( approxNode[0].childNodes[0].nodeValue); + + + data.getElementsByTagName("") context.activeClients = activeClients; context.showCounter++; var delay = context.showTime;