[open-ils-commits] r9493 -
branches/rel_1_2/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 30 09:10:21 EDT 2008
Author: miker
Date: 2008-04-30 08:30:08 -0400 (Wed, 30 Apr 2008)
New Revision: 9493
Modified:
branches/rel_1_2/Open-ILS/web/opac/skin/default/js/result_common.js
Log:
bz#618, stop duplicate authority cross-ref suggestions
Modified: branches/rel_1_2/Open-ILS/web/opac/skin/default/js/result_common.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/skin/default/js/result_common.js 2008-04-30 12:17:45 UTC (rev 9492)
+++ branches/rel_1_2/Open-ILS/web/opac/skin/default/js/result_common.js 2008-04-30 12:30:08 UTC (rev 9493)
@@ -200,6 +200,7 @@
if(getTerm()) resultExpandSearch(); /* advanced search */
}
+var lowHitsXRefSet = {};
var lowHitsXRefLink;
var lowHitsXRefLinkParent;
function resultLowHitXRef(r) {
@@ -215,6 +216,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