From fbdba021c917c36b27a594bfa555de45d4f2383c Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 15 Nov 2011 11:24:06 +0100 Subject: [PATCH] Use md-author if present instead of md-title-responsibility. Swap title-remainder with author/title-responsibility --- www/iphone/example_client.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/www/iphone/example_client.js b/www/iphone/example_client.js index 4fe0836..ea74e67 100644 --- a/www/iphone/example_client.js +++ b/www/iphone/example_client.js @@ -153,10 +153,13 @@ function my_onshow(data) { +'' + hit["md-title"] +' '); - if (hit["md-title-responsibility"] !== undefined) { - html.push(''+hit["md-title-responsibility"]+' '); if (hit["md-title-remainder"] !== undefined) { - html.push('' + hit["md-title-remainder"] + ' '); + html.push('' + hit["md-title-remainder"] + ' '); + if (hit["md-author"] != undefined) { + html.push(''+hit["md-author"]+' '); + } + else if (hit["md-title-responsibility"] !== undefined) { + html.push(''+hit["md-title-responsibility"]+' '); } } if (hit.recid == curDetRecId) { @@ -611,8 +614,8 @@ function renderDetails(data, marker) if (data["md-title-remainder"] !== undefined) { details += ' : ' + data["md-title-remainder"] + ' '; } - if (data["md-title-responsibility"] !== undefined) { - details += ' '+ data["md-title-responsibility"] +''; + if (data["md-author"] !== undefined) { + details += ' '+ data["md-auhtor"] +''; } details += ''; } @@ -669,7 +672,9 @@ function renderDetails_iphone(data, marker) if (data["md-title-remainder"] !== undefined) { details += ' ' + data["md-title-remainder"] + ' '; } - if (data["md-title-responsibility"] !== undefined) { + if (data["md-author"] !== undefined) { + details += ''+ data["md-author"] +''; + } else if (data["md-title-responsibility"] !== undefined) { details += ''+ data["md-title-responsibility"] +''; } details += '' -- 1.7.10.4