var mkws_config = {
service_proxy_auth: "//sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=wimp&password=wimp6363"
};
mkws.registerWidgetType('wimp', function() {
if (!this.config.perpage) this.config.perpage = 5;
if (!this.config.sort) this.config.sort = "position";
this.team.registerTemplate('wimp', '\
Results from Wimp
\
\
{{#each hits}}\
- \
{{#mkws-first md-electronic-url}}\
\
{{/mkws-first}}\
{{md-title}}\
\
{{#if md-title-remainder}}\
{{md-title-remainder}}\
{{/if}}\
{{#if md-title-responsibility}}\
{{md-title-responsibility}}\
{{/if}}\
\
{{/each}}\
\
');
var that = this;
var template = that.team.loadTemplate(that.config.template || "wimp");
this.team.queue("records").subscribe(function(data) {
that.node.html(template(data));
});
that.autosearch();
});