Bug PAZ-978.
authorMike Taylor <mike@indexdata.com>
Wed, 29 Oct 2014 10:20:17 +0000 (10:20 +0000)
committerMike Taylor <mike@indexdata.com>
Wed, 29 Oct 2014 10:20:17 +0000 (10:20 +0000)
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

index ab45cc0..1ee8096 100644 (file)
--- 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];