X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=experiments%2Fspclient%2Fmkws.js;h=989249af9d49363dea871228c5c9e5dfc157abfb;hb=bd34fa3e82e45bf83c123f24b8056ad483edaf31;hp=050475397a8c985ab231d7f1ffce60230990a68f;hpb=91117c67b1a2ce7909d3ad2fb6c49b47ddd08673;p=mkws-moved-to-github.git diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 0504753..989249a 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -3,6 +3,7 @@ "use strict"; // HTML5 +// global config object mkws_config if (!mkws_config) var mkws_config = {}; // for the guys who forgot to define mkws_config... @@ -30,6 +31,11 @@ var mkws_locale_lang = { "to": "von", "of": "aus", "found": "gefunden", + "Title": "Titel", + "Author": "Autor", + "Date": "Datum", + "Subject": "Schlagwort", + "Location": "Ort", "dummy": "dummy" }, @@ -49,6 +55,11 @@ var mkws_locale_lang = { "to": "til", "of": "ud af", "found": "fandt", + "Title": "Title", + "Author": "Forfatter", + "Date": "Dato", + "Subject": "Emneord", + "Location": "Lokation", "dummy": "dummy" } @@ -137,6 +148,9 @@ function my_onstat(data) { } function my_onterm(data) { + if (!mkws_config.termlist_menu) + return; + var termlists = []; termlists.push('
'+ marker + ' | |
Title | : '+data["md-title"]; + details += ' |
' + M('Title') + ' | : '+data["md-title"]; if (data["md-title-remainder"] !== undefined) { details += ' : ' + data["md-title-remainder"] + ' '; } @@ -411,15 +425,15 @@ function renderDetails(data, marker) details += ' |
Date | : ' + data["md-date"] + ' |
' + M('Date') + ' | : ' + data["md-date"] + ' |
Author | : ' + data["md-author"] + ' |
' + M('Author') + ' | : ' + data["md-author"] + ' |
URL | : ' + data["md-electronic-url"] + '' + ' |
Subject | : ' + data["location"][0]["md-subject"] + ' |
' + M('Subject') + ' | : ' + data["location"][0]["md-subject"] + ' |
Location | : ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + ' |
' + M('Location') + ' | : ' + data["location"][0]["@name"] + " (" +data["location"][0]["@id"] + ")" + ' |