From 0d7346814f4f69eafab5d2bd2b9c0d976339fa17 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Mon, 30 Apr 2007 14:28:09 +0000 Subject: [PATCH] Varous display changes to MK demo --- www/masterkey/js/client.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4