Translates diagnostic 1 and 2
[pazpar2-moved-to-github.git] / js / pz2.js
index 3665c4e..8aab9bf 100644 (file)
--- 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++;