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:
197f2d3
)
Fix the filtering on the web
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 4 Jun 2010 16:33:00 +0000
(18:33 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 4 Jun 2010 16:33:00 +0000
(18:33 +0200)
www/iphone/example_client.js
patch
|
blob
|
history
diff --git
a/www/iphone/example_client.js
b/www/iphone/example_client.js
index
1d00c2b
..
1292d8b
100644
(file)
--- a/
www/iphone/example_client.js
+++ b/
www/iphone/example_client.js
@@
-140,8
+140,8
@@
function my_onterm(data) {
termlists.push('<ul>');
for (var i = 0; i < data.xtargets.length && i < SourceMax; i++ ) {
termlists.push('<li><a href="#" target_id='+data.xtargets[i].id
termlists.push('<ul>');
for (var i = 0; i < data.xtargets.length && i < SourceMax; i++ ) {
termlists.push('<li><a href="#" target_id='+data.xtargets[i].id
- + ' onclick="limitTarget(this.getAttribute(\'target_id\'), this.firstChild.nodeValue);return false;">' + data.xtargets[i].name
- + ' (' + data.xtargets[i].freq + ')</a></li>');
+ + ' onclick="limitTarget(this.getAttribute(\'target_id\'), \'' + data.xtargets[i].name + '\');return false;">'
+ + data.xtargets[i].name + ' (' + data.xtargets[i].freq + ')<a></li>');
}
termlists.push('</ul>');
termlists.push('</div>');
}
termlists.push('</ul>');
termlists.push('</div>');
@@
-150,8
+150,8
@@
function my_onterm(data) {
termlists.push('<h4 id="subjects" class="termtitle">Subjects</h4>');
termlists.push('<ul>');
for (var i = 0; i < data.subject.length && i < SubjectMax; i++ ) {
termlists.push('<h4 id="subjects" class="termtitle">Subjects</h4>');
termlists.push('<ul>');
for (var i = 0; i < data.subject.length && i < SubjectMax; i++ ) {
- termlists.push('<li><a href="#" onclick="limitQuery(\'su\', this.firstChild.nodeValue);return false;">' + data.subject[i].name + '('
- + data.subject[i].freq + ')</a></li>');
+ termlists.push('<li><a href="#" onclick="limitQuery(\'su\', \'' + data.subject[i].name + '\');return false;">'
+ + data.subject[i].name + ' (' + data.subject[i].freq + ')</a></li>');
}
termlists.push('</ul>');
termlists.push('</div>');
}
termlists.push('</ul>');
termlists.push('</div>');
@@
-160,7
+160,7
@@
function my_onterm(data) {
termlists.push('<h4 class="termtitle">Authors</h4>');
termlists.push('<ul>');
for (var i = 0; i < data.author.length && i < AuthorMax; i++ ) {
termlists.push('<h4 class="termtitle">Authors</h4>');
termlists.push('<ul>');
for (var i = 0; i < data.author.length && i < AuthorMax; i++ ) {
- termlists.push('<li><a href="#" onclick="limitQuery(\'au\', this.firstChild.nodeValue);return false;">'
+ termlists.push('<li><a href="#" onclick="limitQuery(\'au\', \'' + data.subject[i].name +'\');return false;">'
+ data.author[i].name
+ ' ('
+ data.author[i].freq
+ data.author[i].name
+ ' ('
+ data.author[i].freq