From 6e5054c11a4470dde3515a362aa3f38d69df68d0 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 29 Oct 2014 10:20:17 +0000 Subject: [PATCH] Bug PAZ-978. Remove code that translates just two diagnostic codes (1 and 2) into human-readable messages. This is no longer necessary at all, as PazPar2 has been returning the message as well as the code in its responses since December 2012. --- js/pz2.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/pz2.js b/js/pz2.js index ab45cc0..1ee8096 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -709,11 +709,6 @@ 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"; - } var targetsSuggestions = targetNodes[i].getElementsByTagName("suggestions"); if (targetsSuggestions != undefined && targetsSuggestions.length>0) { var suggestions = targetsSuggestions[0]; -- 1.7.10.4