Complete!
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 51de2f9..ed81bcb 100644 (file)
@@ -49,6 +49,7 @@ mkws.locale_lang = {
        "Date": "Datum",
        "Subject": "Schlagwort",
        "Location": "Ort",
+       // ### to add: Records, Targets
 
        "dummy": "dummy"
     },
@@ -73,6 +74,7 @@ mkws.locale_lang = {
        "Date": "Dato",
        "Subject": "Emneord",
        "Location": "Lokation",
+       // ### to add: Records, Targets
 
        "dummy": "dummy"
     }
@@ -556,6 +558,10 @@ function renderField(caption, data, data2, data3) {
 function mkws_html_all(config) {
 
     /* default mkws config */
+    /* ### No defaults given for:
+     * lang, responsive_design, service_proxy_auth, use_service_proxy
+     * and of course the optional language_* entries.
+     */
     var mkws_config_default = {
        sort: [["relevance"], ["title:1", "title"], ["date:0", "newest"], ["date:1", "oldest"]],
        perpage: [10, 20, 30, 50],
@@ -691,9 +697,9 @@ function mkws_set_lang(mkws_config)  {
 function mkws_html_switch(config) {
     debug("HTML switch");
 
-    $("#mkwsSwitch").append($('<a href="#" id="mkwsSwitch_records" onclick="mkws.switchView(\'records\')">' + M("Records") + '</a>'));
+    $("#mkwsSwitch").append($('<a href="#" id="mkwsSwitch_records" onclick="mkws.switchView(\'records\')">' + M('Records') + '</a>'));
     $("#mkwsSwitch").append($("<span/>", { text: " | " }));
-    $("#mkwsSwitch").append($('<a href="#" id="mkwsSwitch_targets" onclick="mkws.switchView(\'targets\')">' + M("Targets") + '</a>'));
+    $("#mkwsSwitch").append($('<a href="#" id="mkwsSwitch_targets" onclick="mkws.switchView(\'targets\')">' + M('Targets') + '</a>'));
 
     debug("HTML targets");
     $("#mkwsTargets").html('\