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.
} 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];