1 var mkws_config = {service_proxy_auth: "http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc"};
3 mkws.registerWidgetType('ReferenceUniverse', function() {
4 if (!this.config.perpage) this.config.perpage = 5;
5 if (!this.config.sort) this.config.sort = "position";
6 this.team.registerTemplate('ReferenceUniverse', '\
7 <h2>Results from Reference Universe</h2>\
11 {{#mkws-first md-electronic-url}}\
16 {{#if md-title-remainder}}\
17 <span>{{md-title-remainder}}</span>\
19 {{#if md-title-responsibility}}\
20 <span><i>{{md-title-responsibility}}</i></span>\
28 var template = that.team.loadTemplate(that.config.template || "ReferenceUniverse");
29 this.team.queue("records").subscribe(function(data) {
30 that.node.html(template(data));
32 widget.autosearch(that);