projects
/
pazpar2-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:
9df0804
)
Add All to termlists
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 4 Jun 2010 10:39:28 +0000
(12:39 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 4 Jun 2010 10:39:28 +0000
(12:39 +0200)
www/iphone/example_client.js
patch
|
blob
|
history
diff --git
a/www/iphone/example_client.js
b/www/iphone/example_client.js
index
cfae8ed
..
64843f0
100644
(file)
--- a/
www/iphone/example_client.js
+++ b/
www/iphone/example_client.js
@@
-199,20
+199,21
@@
function serialize(array) {
var termlist = {};
function my_onterm_iphone(data) {
my_onterm(data);
var termlist = {};
function my_onterm_iphone(data) {
my_onterm(data);
- var targets = "";
+ var targets = "-|All|\n";
+
for (var i = 0; i < data.xtargets.length; i++ ) {
targets = targets + data.xtargets[i].id + "|" + data.xtargets[i].name + "|" + data.xtargets[i].freq + "\n";
}
termlist["xtargets"] = targets;
for (var i = 0; i < data.xtargets.length; i++ ) {
targets = targets + data.xtargets[i].id + "|" + data.xtargets[i].name + "|" + data.xtargets[i].freq + "\n";
}
termlist["xtargets"] = targets;
- var subjects = "";
+ var subjects = "-|All|\n";
for (var i = 0; i < data.subject.length; i++ ) {
for (var i = 0; i < data.subject.length; i++ ) {
- subjects = subjects + "-" + "|" + data.subject[i].name + "|" + data.subject[i].freq + "\n";
+ subjects = subjects + "su" + "|" + data.subject[i].name + "|" + data.subject[i].freq + "\n";
}
termlist["subjects"] = subjects;
}
termlist["subjects"] = subjects;
- var authors = "";
+ var authors = "-|All|\n";
for (var i = 0; i < data.author.length; i++ ) {
for (var i = 0; i < data.author.length; i++ ) {
- authors = authors + "-" + "|" + data.author[i].name + "|" + data.author[i].freq + "\n";
+ authors = authors + "au" + "|" + data.author[i].name + "|" + data.author[i].freq + "\n";
}
termlist["authors"] = authors;
//document.getElementById("log").innerHTML = targets + "\n" + subjects + "\n" + authors;
}
termlist["authors"] = authors;
//document.getElementById("log").innerHTML = targets + "\n" + subjects + "\n" + authors;
@@
-276,7
+277,8
@@
function domReady ()
document.search.query.value = '';
document.select.sort.onchange = onSelectDdChange;
document.select.perpage.onchange = onSelectDdChange;
document.search.query.value = '';
document.select.sort.onchange = onSelectDdChange;
document.select.perpage.onchange = onSelectDdChange;
- applicationMode(true);
+ if (document.location.search.match("inApp=true"))
+ applicationMode(true);
}
function applicationMode(newmode)
}
function applicationMode(newmode)