+mkws.facetConfig = {
+ xtargets: [ "Sources", 16, false ],
+ subject: [ "Subjects", 10, true ],
+ author: [ "Authors", 10, true ]
+}
+
+
mkws.registerWidgetType('Termlists', function() {
var that = this;
var facets = that.config.facets;
$(that.node).show();
});
- for (var i = 0; i < facets.length; i++) {
- var name = facets[i]
- var ref = mkws.facetConfig[name];
- if (!ref) {
- alert("bad facet configuration: '" + name + "'");
- }
- }
-
widget.autosearch(that);
});