bz#618, stop duplicate authority cross-ref suggestions
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Apr 2008 12:30:18 +0000 (12:30 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Apr 2008 12:30:18 +0000 (12:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9494 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/result_common.js

index b7a210d..0ef27e5 100644 (file)
@@ -209,6 +209,7 @@ function resultLowHits() {
        if(getTerm()) resultExpandSearch(); /* advanced search */
 }
 
+var lowHitsXRefSet = {};
 var lowHitsXRefLink;
 var lowHitsXRefLinkParent;
 function resultLowHitXRef(r) {
@@ -224,6 +225,10 @@ function resultLowHitXRef(r) {
                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;