X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=2d9b452780e646dd9addabc6fa15b058e939b00a;hb=588ec81e46383127b62dc1e9d0b454dfe2637967;hp=e54c217fa08d875cfe77bb7dcf60021114ddd903;hpb=5b6ed3181d9fba4ec3d3fd4692ff16b4484ef1cb;p=mkws-moved-to-github.git
diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js
index e54c217..2d9b452 100644
--- a/tools/htdocs/mkws.js
+++ b/tools/htdocs/mkws.js
@@ -1,5 +1,5 @@
-/*! MKWS, the MasterKey Widget Set.
- * Copyright (C) 2013-2014 Index Data
+/*! MKWS, the MasterKey Widget Set.
+ * Copyright (C) 2013-2014 Index Data
* See the file LICENSE for details
*/
@@ -86,6 +86,7 @@ var mkws = {
"Authors": "Autoren",
"Subjects": "Schlagwörter",
"Sources": "Daten und Quellen",
+ "source": "datenquelle",
"Termlists": "Termlisten",
"Next": "Weiter",
"Prev": "Zurück",
@@ -99,8 +100,10 @@ var mkws = {
"found": "gefunden",
"Title": "Titel",
"Author": "Autor",
+ "author": "autor",
"Date": "Datum",
"Subject": "Schlagwort",
+ "subject": "schlagwort",
"Location": "Ort",
"Records": "Datensätze",
"Targets": "Datenbanken",
@@ -112,6 +115,7 @@ var mkws = {
"Authors": "Forfattere",
"Subjects": "Emner",
"Sources": "Kilder",
+ "source": "kilder",
"Termlists": "Termlists",
"Next": "Næste",
"Prev": "Forrige",
@@ -125,8 +129,10 @@ var mkws = {
"found": "fandt",
"Title": "Title",
"Author": "Forfatter",
+ "author": "forfatter",
"Date": "Dato",
"Subject": "Emneord",
+ "subject": "emneord",
"Location": "Lokation",
"Records": "Poster",
"Targets": "Baser",
@@ -410,7 +416,6 @@ function team($, teamName) {
// wait until the DOM is ready
function domReady ()
{
- debug("starting domReady()");
$('.mkwsSearchForm.mkwsTeam_' + m_teamName).each(function (i, obj) {
debug("adding search-forms for team '" + m_teamName + "'");
var node = this;
@@ -420,13 +425,6 @@ function team($, teamName) {
});
});
- debug("in domReady() 1");
- debug("document = '" + document + "'");
- debug("document.mkwsSearchForm = '" + document.mkwsSearchForm + "'");
- debug("document.mkwsSearchForm.mkwsQuery = '" + document.mkwsSearchForm.mkwsQuery + "'");
- debug("document.mkwsSearchForm.mkwsQuery.value = '" + document.mkwsSearchForm.mkwsQuery.value + "'");
- document.mkwsSearchForm.mkwsQuery.value = '';
- debug("in domReady() 2");
if (document.mkwsSelect) {
debug("messing with mkwsSelect");
if (document.mkwsSelect.mkwsSort)
@@ -434,7 +432,6 @@ function team($, teamName) {
if (document.mkwsSelect.mkwsPerpage)
document.mkwsSelect.mkwsPerpage.onchange = onSelectDdChange;
}
- debug("finished domReady()");
}
@@ -631,10 +628,10 @@ function team($, teamName) {
}
var filter = m_filters[i];
if (filter.id) {
- text += 'Source: ' + filter.name + '';
} else {
- text += filter.field + ': ' + filter.value + '';
}
@@ -963,7 +960,7 @@ function team($, teamName) {
debug("after domReady()");
// on first page, hide the termlist
- $(document).ready(function() { $("#mkwsTermlists").hide(); });
+ $(document).ready(function() { $(".mkwsTermlists.mkwsTeam_" + m_teamName).hide(); });
var motd = $(".mkwsMOTD.mkwsTeam_" + m_teamName);
var container = $(".mkwsMOTDContainer.mkwsTeam_" + m_teamName);
debug("for team '" + m_teamName + "', motd=" + motd + "(" + motd.length + "), container=" + container + "(" + container.length + ")");