Reference Universe widget MKWS-156
[mkws-moved-to-github.git] / examples / htdocs / mkws-widget-ru.js
diff --git a/examples/htdocs/mkws-widget-ru.js b/examples/htdocs/mkws-widget-ru.js
new file mode 100644 (file)
index 0000000..e38d957
--- /dev/null
@@ -0,0 +1,11 @@
+mkws.registerWidgetType('ReferenceUniverse', function() {
+    //this.team.config.service_proxy_auth = "http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc";
+    // this.team.config.perpage_default = 5;
+    // this.team.config.sort_default = "position";
+    var teamClass = 'mkwsTeam_' + this.team.name();
+    var html = "<h2>Reference Universe results:</h2>\n";
+    html += '<div class="mkwsRecords ' + teamClass 
+            + '" autosearch="' + $(this.node).attr("autosearch")
+            + '" sort="position" perpage="5"></div>';
+    $(this.node).html(html);
+});