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:
f6a03dd
)
Use md-author if present instead of md-title-responsibility. Swap title-remainder...
author
Dennis Schafroth
<dennis@indexdata.com>
Tue, 15 Nov 2011 10:24:06 +0000
(11:24 +0100)
committer
Dennis Schafroth
<dennis@indexdata.com>
Tue, 15 Nov 2011 10:24:06 +0000
(11:24 +0100)
www/iphone/example_client.js
patch
|
blob
|
history
diff --git
a/www/iphone/example_client.js
b/www/iphone/example_client.js
index
4fe0836
..
ea74e67
100644
(file)
--- a/
www/iphone/example_client.js
+++ b/
www/iphone/example_client.js
@@
-153,10
+153,13
@@
function my_onshow(data) {
+'<a href="#" id="rec_'+hit.recid
+'" onclick="showDetails(this.id);return false;">'
+ hit["md-title"] +'</a> ');
+'<a href="#" id="rec_'+hit.recid
+'" onclick="showDetails(this.id);return false;">'
+ hit["md-title"] +'</a> ');
- if (hit["md-title-responsibility"] !== undefined) {
- html.push('<a href="#">'+hit["md-title-responsibility"]+'</a> ');
if (hit["md-title-remainder"] !== undefined) {
if (hit["md-title-remainder"] !== undefined) {
- html.push('<a href="#">' + hit["md-title-remainder"] + ' </a> ');
+ html.push('<a href="#">' + hit["md-title-remainder"] + ' </a> ');
+ if (hit["md-author"] != undefined) {
+ html.push('<a href="#">'+hit["md-author"]+'</a> ');
+ }
+ else if (hit["md-title-responsibility"] !== undefined) {
+ html.push('<a href="#">'+hit["md-title-responsibility"]+'</a> ');
}
}
if (hit.recid == curDetRecId) {
}
}
if (hit.recid == curDetRecId) {
@@
-611,8
+614,8
@@
function renderDetails(data, marker)
if (data["md-title-remainder"] !== undefined) {
details += ' : <span>' + data["md-title-remainder"] + ' </span>';
}
if (data["md-title-remainder"] !== undefined) {
details += ' : <span>' + data["md-title-remainder"] + ' </span>';
}
- if (data["md-title-responsibility"] !== undefined) {
- details += ' <span><i>'+ data["md-title-responsibility"] +'</i></span>';
+ if (data["md-author"] !== undefined) {
+ details += ' <span><i>'+ data["md-auhtor"] +'</i></span>';
}
details += '</td></tr>';
}
}
details += '</td></tr>';
}
@@
-669,7
+672,9
@@
function renderDetails_iphone(data, marker)
if (data["md-title-remainder"] !== undefined) {
details += ' ' + data["md-title-remainder"] + ' ';
}
if (data["md-title-remainder"] !== undefined) {
details += ' ' + data["md-title-remainder"] + ' ';
}
- if (data["md-title-responsibility"] !== undefined) {
+ if (data["md-author"] !== undefined) {
+ details += '<i>'+ data["md-author"] +'</i>';
+ } else if (data["md-title-responsibility"] !== undefined) {
details += '<i>'+ data["md-title-responsibility"] +'</i>';
}
details += '</big>'
details += '<i>'+ data["md-title-responsibility"] +'</i>';
}
details += '</big>'