X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=61eedb6638a2b15d0a50dedb42958ac519945846;hb=882c232c826d2c16d199d37cb2c6ffe89f040dd8;hp=e305ad56dccb82b07fba23fd515581d5bb3bd4f0;hpb=3e5d964356197c78c2a6fd8e9392713e1f7cf38a;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index e305ad5..61eedb6 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -198,10 +198,6 @@ function my_onterm(data) { var termlist = document.getElementById("mkwsTermlists"); replaceHtml(termlist, acc.join('')); - - // ### I don't believe these lines should be necessary (but they are) - if (mkws_config.responsive_design) - mkws_resize_page(); } function add_single_facet(acc, caption, data, max, cclIndex) { @@ -834,8 +830,10 @@ jQuery.extend({ }); return nvpair; }, - pazpar2: function(data) { - document.write('
\ + pazpar2: function(config) { + + // simple layout + var div = '
\
\
\
\ @@ -843,7 +841,61 @@ jQuery.extend({
\
\ Powered by MKWS © 2013 Index Data\ -
'); + '; + + // new table layout + var table = '\ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
'; + + if (config && config.layout == 'table') { + debug("jquery plugin layout: table"); + document.write(table); + } else { + debug("jquery plugin layout: div"); + document.write(div); + } mkws_html_all(mkws_config); }