In detailed view, print the same title information as in the short list
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 5 Dec 2008 16:28:10 +0000 (17:28 +0100)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 5 Dec 2008 16:28:10 +0000 (17:28 +0100)
(title + subtitle)

www/jsdemo/example_client.js

index 19f21d3..c1671e2 100644 (file)
@@ -343,8 +343,16 @@ function drawCurDetails ()
     var data = curDetRecData;
     var recordDiv = document.getElementById('recdiv_'+data.recid);
     var details = "";
-    if (data["md-title"] != undefined)
-        details += '<tr><td><b>Title</b></td><td><b>:</b> '+data["md-title"] + '</td></tr>';
+    if (data["md-title"] != undefined) {
+        details += '<tr><td><b>Title</b></td><td><b>:</b> '+data["md-title"];
+       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>';
+       }
+       details += '</td></tr>';
+    }
     if (data["md-date"] != undefined)
         details += '<tr><td><b>Date</b></td><td><b>:</b> ' + data["md-date"] + '</td></tr>';
     if (data["md-author"] != undefined)