From: Wolfram Schneider Date: Fri, 5 Dec 2008 16:28:10 +0000 (+0100) Subject: In detailed view, print the same title information as in the short list X-Git-Tag: v1.1.0~63 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=cb7f7b2e989a82746dab42bcd4b8b5fe47025a5c;p=pazpar2-moved-to-github.git In detailed view, print the same title information as in the short list (title + subtitle) --- diff --git a/www/jsdemo/example_client.js b/www/jsdemo/example_client.js index 19f21d3..c1671e2 100644 --- a/www/jsdemo/example_client.js +++ b/www/jsdemo/example_client.js @@ -343,8 +343,16 @@ function drawCurDetails () var data = curDetRecData; var recordDiv = document.getElementById('recdiv_'+data.recid); var details = ""; - if (data["md-title"] != undefined) - details += 'Title: '+data["md-title"] + ''; + if (data["md-title"] != undefined) { + details += 'Title: '+data["md-title"]; + if (data["md-title-remainder"] !== undefined) { + details += ' : ' + data["md-title-remainder"] + ' '; + } + if (data["md-title-responsibility"] !== undefined) { + details += ' '+ data["md-title-responsibility"] +''; + } + details += ''; + } if (data["md-date"] != undefined) details += 'Date: ' + data["md-date"] + ''; if (data["md-author"] != undefined)