From: Jason Skomorowski Date: Mon, 15 Dec 2014 19:04:22 +0000 (-0500) Subject: Widget for testing Wikipediat-derived categories WCAT-4 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=12ed20302a918463f33493aa1060174cf50a9e8b;hp=26b79b908b393eaf0cac3dc047aa2f39bf67ad1b Widget for testing Wikipediat-derived categories WCAT-4 --- diff --git a/examples/htdocs/mkws-widget-wikicat.js b/examples/htdocs/mkws-widget-wikicat.js new file mode 100644 index 0000000..8bb3901 --- /dev/null +++ b/examples/htdocs/mkws-widget-wikicat.js @@ -0,0 +1,12 @@ +mkws.registerWidgetType('wikicategories', function() { + $.ajax({ + url: mkws.pazpar2_url() + "?command=wiki&query=" + this.config.autosearch, + context: this + }) + .done(function(data) { + outstr = new XMLSerializer().serializeToString(data.getElementsByTagName("targetcategories").item(0)); + this.node.html(outstr.replace("targetcategories", "ul").replace(/targetcategory/g, "li")); + }); +}); + + diff --git a/examples/htdocs/tester-wiki.html b/examples/htdocs/tester-wiki.html new file mode 100644 index 0000000..b49d255 --- /dev/null +++ b/examples/htdocs/tester-wiki.html @@ -0,0 +1,391 @@ + + + + + +MKWS demo: Reference & Credo, and popup widget, development + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + Settings: + + + + + + Results: + + + +
+
+ +
+ + Relevant to query ? + + + + + + + + + Note: + +
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
+ + + + + +