From: Sebastian Hammer Date: Mon, 30 Apr 2007 14:28:09 +0000 (+0000) Subject: Varous display changes to MK demo X-Git-Tag: PAZPAR2.1.0.0~192 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=0d7346814f4f69eafab5d2bd2b9c0d976339fa17;p=pazpar2-moved-to-github.git Varous display changes to MK demo --- diff --git a/www/masterkey/js/client.js b/www/masterkey/js/client.js index 2d262b1..9fb9412 100644 --- a/www/masterkey/js/client.js +++ b/www/masterkey/js/client.js @@ -1,5 +1,5 @@ /* -** $Id: client.js,v 1.21 2007-04-30 03:35:57 quinn Exp $ +** $Id: client.js,v 1.22 2007-04-30 14:28:09 quinn Exp $ ** MasterKey - pazpar2's javascript client . */ @@ -283,7 +283,7 @@ function drawDetailedRec(detailBox) var hdtarget; if( recLocation ) { - hdtarget = $('Available at:'); + hdtarget = $('Available at: '); detailTable.append(hdtarget); for(var i=0; i < recLocation.length; i++) @@ -292,7 +292,13 @@ function drawDetailedRec(detailBox) hdtarget = $(' ').appendTo(detailTable); var url = recLocation[i]["md-url"]; var description = recLocation[i]["md-description"]; + var date = recLocation[i]["md-date"]; + var citation = recLocation[i]["md-citation"]; hdtarget.append(''+recLocation[i].name+''); + if (date) + detailTable.append($('Date: '+date+'')); + if (citation) + detailTable.append($('Citation: '+citation+'')); if (description) detailTable.append($(' '+description+'')); if (url) {