Reference Universe widget MKWS-156
[mkws-moved-to-github.git] / examples / htdocs / mkws-widget-ru.js
1 mkws.registerWidgetType('ReferenceUniverse', function() {
2     //this.team.config.service_proxy_auth = "http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc";
3     // this.team.config.perpage_default = 5;
4     // this.team.config.sort_default = "position";
5     var teamClass = 'mkwsTeam_' + this.team.name();
6     var html = "<h2>Reference Universe results:</h2>\n";
7     html += '<div class="mkwsRecords ' + teamClass 
8             + '" autosearch="' + $(this.node).attr("autosearch")
9             + '" sort="position" perpage="5"></div>';
10     $(this.node).html(html);
11 });