service_proxy_auth: "http://sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc"
};
-mkws.registerWidgetType('ReferenceUniverse', function() {
+mkws.registerWidgetType('reference-universe', function() {
if (!this.config.perpage) this.config.perpage = 5;
if (!this.config.sort) this.config.sort = "position";
- this.team.registerTemplate('ReferenceUniverse', '\
+ this.team.registerTemplate('reference-universe', '\
<h2>Results from Reference Universe</h2>\
<ul>\
{{#each hits}}\
');
var that = this;
- var template = that.team.loadTemplate(that.config.template || "ReferenceUniverse");
+ var template = that.team.loadTemplate(that.config.template || "reference-universe");
this.team.queue("records").subscribe(function(data) {
that.node.html(template(data));
});
<script src="//mkws.indexdata.com/mkws-complete.js"></script>
<script src="//mkws.indexdata.com/mkws-widget-ru.js"></script>
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
- <div class="mkwsReferenceUniverse" autosearch="!param!q"></div>
+ <div class="mkws-reference-universe" autosearch="!param!q"></div>
## A bit more detail
<link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws-widget-ru.css" />
-Any element you give the class `mkwsReferenceUniverse` will have is contents replaced by the top results from a search against the Reference Universe service for the current query.
+Any element you give the class `mkws-reference-universe` will have is contents replaced by the top results from a search against the Reference Universe service for the current query.
- <div class="mkwsReferenceUniverse" autosearch="!param!q"></div>
+ <div class="mkws-reference-universe" autosearch="!param!q"></div>
### Finding the query