use_service_proxy: false, /* true, flase */
switch_menu: true, /* true, false: show/hide Records|Targets menu */
lang_menu: true, /* true, false: show/hide language menu */
+ sort_menu: true, /* show/hide perpage menu */
+ perpage_menu: true, /* show/hide language menu */
lang_display: ["en", "de", "da"], /* display languages links for given
languages, [] for all */
facets: ["sources", "subjects", "authors"], /* display facets, in this order, [] for none */
document.mkwsSearchForm.onsubmit = onFormSubmitEventHandler;
document.mkwsSearchForm.mkwsQuery.value = '';
if (document.mkwsSelect) {
- document.mkwsSelect.mkwsSort.onchange = onSelectDdChange;
- document.mkwsSelect.mkwsPerpage.onchange = onSelectDdChange;
+ if (document.mkwsSelect.mkwsSort)
+ document.mkwsSelect.mkwsSort.onchange = onSelectDdChange;
+ if (document.mkwsSelect.mkwsPerpage)
+ document.mkwsSelect.mkwsPerpage.onchange = onSelectDdChange;
}
}
perpage_default: 20,
query_width: 50,
switch_menu: true, /* show/hide Records|Targets menu */
- lang_menu: true, /* show/hide language menu */
+ lang_menu: true, /* show/hide sort menu */
+ sort_menu: true, /* show/hide perpage menu */
+ perpage_menu: true, /* show/hide language menu */
lang_display: [], /* display languages links for given languages, [] for all */
facets: ["sources", "subjects", "authors"], /* display facets, in this order, [] for none */
responsive_design_width: 980, /* a page with less pixel width considered as mobile */
}
if ($("#mkwsRanking").length) {
- $("#mkwsRanking").html('\
- <form name="mkwsSelect" id="mkwsSelect" action="" >\
- ' + M('Sort by') + ' ' + mkws_html_sort(config) + '\
- ' + M('and show') + ' ' + mkws_html_perpage(config) + '\
- ' + M('per page') + '.\
- </form>');
+ var ranking_data = '';
+ ranking_data += '<form name="mkwsSelect" id="mkwsSelect" action="" >';
+ if (config.sort_menu) {
+ ranking_data += M('Sort by') + ' ' + mkws_html_sort(config) + ' ';
+ }
+ if (config.perpage_menu) {
+ ranking_data += M('and show') + ' ' + mkws_html_perpage(config) + ' ' + M('per page') + '.';
+ }
+ ranking_data += '</form>';
+
+ $("#mkwsRanking").html(ranking_data);
}
mkws_html_switch(config);