[open-ils-commits] r9494 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 30 09:10:31 EDT 2008
Author: miker
Date: 2008-04-30 08:30:18 -0400 (Wed, 30 Apr 2008)
New Revision: 9494
Modified:
trunk/Open-ILS/web/opac/skin/default/js/result_common.js
Log:
bz#618, stop duplicate authority cross-ref suggestions
Modified: trunk/Open-ILS/web/opac/skin/default/js/result_common.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/result_common.js 2008-04-30 12:30:08 UTC (rev 9493)
+++ trunk/Open-ILS/web/opac/skin/default/js/result_common.js 2008-04-30 12:30:18 UTC (rev 9494)
@@ -209,6 +209,7 @@
if(getTerm()) resultExpandSearch(); /* advanced search */
}
+var lowHitsXRefSet = {};
var lowHitsXRefLink;
var lowHitsXRefLinkParent;
function resultLowHitXRef(r) {
@@ -224,6 +225,10 @@
var word;
var c = 0;
while( word = arr.shift() ) {
+
+ if (lowHitsXRefSet[word] == 1) continue;
+ lowHitsXRefSet[word] = 1;
+
if(c++ > 20) break;
var a = {};
a[PARAM_TERM] = word;
More information about the open-ils-commits
mailing list