From: Niels Erik G. Nielsen Date: Wed, 15 Sep 2010 21:30:11 +0000 (-0400) Subject: Translates diagnostic 1 and 2 X-Git-Tag: v1.5.0~7^2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=ad96f98478e2e653c503ae3cbfc3a3b80f0c5a1b;p=pazpar2-moved-to-github.git Translates diagnostic 1 and 2 ... to "Permanent system error" and "Temporary system error" respectively --- diff --git a/js/pz2.js b/js/pz2.js index 3665c4e..8aab9bf 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -644,6 +644,11 @@ pz2.prototype = } else if (bytarget[i]["state"]=="Client_Working") { bytarget[i]["hits"] = "..."; } + if (bytarget[i].diagnostic == "1") { + bytarget[i].diagnostic = "Permanent system error"; + } else if (bytarget[i].diagnostic == "2") { + bytarget[i].diagnostic = "Temporary system error"; + } } context.bytargetCounter++;