From: Sebastian Hammer Date: Mon, 16 Apr 2007 20:23:24 +0000 (+0000) Subject: Tuning interface. Tuning Wikipedia searching X-Git-Tag: PAZPAR2.1.0.0~287 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=29ab9f359c9055aeded05f9ad8286989c768086d;p=pazpar2-moved-to-github.git Tuning interface. Tuning Wikipedia searching --- diff --git a/etc/masterkey/opencontent.xml b/etc/masterkey/opencontent.xml index 9ec6e12..d6b80fb 100644 --- a/etc/masterkey/opencontent.xml +++ b/etc/masterkey/opencontent.xml @@ -8,7 +8,7 @@ + value="u=43 6=2"/> diff --git a/www/masterkey/js/client.js b/www/masterkey/js/client.js index d93de8d..8432e63 100644 --- a/www/masterkey/js/client.js +++ b/www/masterkey/js/client.js @@ -1,5 +1,5 @@ /* -** $Id: client.js,v 1.17 2007-04-15 03:24:18 quinn Exp $ +** $Id: client.js,v 1.18 2007-04-16 20:23:25 quinn Exp $ ** MasterKey - pazpar2's javascript client . */ @@ -24,7 +24,7 @@ var currentDetailedData = null; var termStartup = true; var advancedOn = false; -var showBriefLocations = true; +var showBriefLocations = false; /* wait until the DOM is ready and register basic handlers */ $(document).ready( function() { @@ -182,7 +182,7 @@ function my_onterm(data) listItem.appendTo(listEntries); } else { var listItem = $(''+data[key][i].name - /*+' ('+data[key][i].freq+')'*/+''); + +' ('+data[key][i].freq+')'+''); listItem.click(function(){ refine(this.name, this.firstChild.nodeValue) }); listItem.appendTo(listEntries); } @@ -206,7 +206,7 @@ function my_onterm(data) listItem.appendTo(listEntries); } else { var listItem = $(''+data[key][i].name - /*+' ('+data[key][i].freq+')'*/+'').click(function(){ + +' ('+data[key][i].freq+')'+'').click(function(){ refine(this.name, this.firstChild.nodeValue) }); listItem.appendTo(listEntries); } @@ -281,6 +281,8 @@ function drawDetailedRec(detailBox) var url = recLocation[i]["md-url"]; var description = recLocation[i]["md-description"]; hdtarget.append(''+recLocation[i].name+''); + if (description) + detailTable.append($(' '+description+'')); if (url) { var tline = $(' '); var td = $('').appendTo(tline); @@ -290,8 +292,6 @@ function drawDetailedRec(detailBox) tlink.appendTo(td); detailTable.append(tline); } - if (description) - detailTable.append($(' '+description+'')); hdtarget = undefined; } }