projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57b0ad6
)
initial configuration for mkws
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 20 Jun 2013 12:36:33 +0000
(12:36 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 20 Jun 2013 12:36:33 +0000
(12:36 +0000)
experiments/spclient/mkws.js
patch
|
blob
|
history
diff --git
a/experiments/spclient/mkws.js
b/experiments/spclient/mkws.js
index
f0a8f7f
..
5dee695
100644
(file)
--- a/
experiments/spclient/mkws.js
+++ b/
experiments/spclient/mkws.js
@@
-371,7
+371,22
@@
function renderDetails(data, marker)
return details;
}
-function mkws_html_all() {
+/*
+ * All the HTML stuff to render the search forms and
+ * result pages.
+ */
+function mkws_html_all(data) {
+
+ var config = {
+ sort: [ ["relevance"], ["title:1", "title"], ["date:0", "newest"], ["date:1", "oldest"]],
+ perpage: [10, 20, 30, 50],
+ sort_default: "relevance",
+ perpage_default: 20,
+ query_width: 50,
+
+ dummy: "dummy"
+ };
+
$("#mkwsSwitch").html($("<a/>", {
href: '#',
onclick: "switchView(\'records\')",