X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=experiments%2Fspclient%2Fmkws.js;h=e3e5fe5d2955bc423b49d3568ada853c390c2a84;hb=235260b9ff89a63bdc951f53123b2bca6dbb18ea;hp=cf2c7dd1bceddf548f6066279ebc528341646f69;hpb=db685e95a7dd991aa856a825da483e0b11b7300a;p=mkws-moved-to-github.git diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index cf2c7dd..e3e5fe5 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -13,6 +13,9 @@ if (!mkws_config) var mkws_config = {}; // for the guys who forgot to define mkws_config... +if (typeof mkws_config.use_service_proxy === 'undefined') + mkws_config.use_service_proxy = true; + var mkws_debug = 1; var pazpar2_url = mkws_config.pazpar2_url ? mkws_config.pazpar2_url : "/pazpar2/search.pz2"; @@ -647,7 +650,7 @@ function mkws_html_lang(mkws_config) { } for (var k in mkws_locale_lang) { - if (hash[k] == 1) + if (hash[k] == 1 || lang_display.length == 0) list.push(k); } @@ -687,7 +690,7 @@ function M(word) { /* implement jQuery.parseQuerystring() for parsing URL parameters */ jQuery.extend({ - parseQuerystring: function() { + parseQuerystring: function() { var nvpair = {}; var qs = window.location.search.replace('?', ''); var pairs = qs.split('&'); @@ -696,7 +699,21 @@ jQuery.extend({ nvpair[pair[0]] = pair[1]; }); return nvpair; -} }); + }, + pazpar2: function(data) { + document.write('
\ +
\ +
\ +
\ +
\ + '); + + mkws_html_all(mkws_config); + } +}); function debug(string) { if (!mkws_debug)