sort_default: "relevance",
query_width: 50,
responsive_design: true,
- facets: ["sources", "subjects", "authors"],
+ facets: ["authors", "sources", "subjects"],
perpage_default: 20
};
</script>
}
function my_onterm(data) {
- if (!mkws_config.facets || mkws_config.facets.length == 0)
+ // no facets
+ if (!mkws_config.facets || mkws_config.facets.length == 0) {
+ $("#termlist").parent().hide();
return;
+ }
+
+ // display if we first got results
+ $("#termlist").parent().show();
var termlists = [];
termlists.push('<div class="title">' + M('Termlists') + '</div>');
mkws_service_proxy_auth(config.service_proxy_auth);
domReady();
+
+ // on first page, hide the termlist
+ $(document).ready(function() { $("#termlist").parent().hide(); } );
}
function mkws_set_lang(mkws_config) {