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:
82b6867
)
Re-order parameters to pz2 constructor.
author
Mike Taylor
<mike@indexdata.com>
Mon, 3 Mar 2014 16:55:55 +0000
(16:55 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 3 Mar 2014 16:55:55 +0000
(16:55 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
3881729
..
65848c9
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-242,18
+242,19
@@
function team($, teamName) {
// create a parameters array and pass it to the pz2's constructor
// then register the form submit event with the pz2.search function
// autoInit is set to true on default
// create a parameters array and pass it to the pz2's constructor
// then register the form submit event with the pz2.search function
// autoInit is set to true on default
- m_paz = new pz2({ "onshow": onShow,
- "windowid": teamName,
- "showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way
+ m_paz = new pz2({ "windowid": teamName,
"pazpar2path": mkws_config.pazpar2_url,
"pazpar2path": mkws_config.pazpar2_url,
+ "usesessions" : mkws_config.use_service_proxy ? false : true,
"oninit": onInit,
"oninit": onInit,
+ "onbytarget": onBytarget,
"onstat": onStat,
"onterm": (mkws_config.facets.length ? onTerm : undefined),
"onstat": onStat,
"onterm": (mkws_config.facets.length ? onTerm : undefined),
+ "onshow": onShow,
+ "onrecord": onRecord,
+ "showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way
"termlist": mkws_config.facets.join(','),
"termlist": mkws_config.facets.join(','),
- "onbytarget": onBytarget,
- "usesessions" : mkws_config.use_service_proxy ? false : true,
- "showResponseType": '', // or "json" (for debugging?)
- "onrecord": onRecord });
+ "showResponseType": '' // or "json" (for debugging?)
+ });
// Finds the node of the specified class within the current team
// Finds the node of the specified class within the current team