add maxValuesPerFacet attr/param
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 12 Sep 2010 15:23:46 +0000 (15:23 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 12 Sep 2010 15:23:46 +0000 (15:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17609 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/FacetSidebar.js

index dab6bb9..3ac08e7 100644 (file)
@@ -34,6 +34,7 @@ if(!dojo._hasResource["openils.widget.FacetSidebar"]) {
             classOrder : null,
             searchSubmit : '',
             facetLimit : 10,
+            maxValuesPerFacet : 100,
 
             startup : function () {
                 this.populate();
@@ -49,7 +50,7 @@ if(!dojo._hasResource["openils.widget.FacetSidebar"]) {
                     this.facetData = openils.widget.Searcher._cache.facetData;
                     this._render_callback();
                 } else {
-                    var limit = dojo.isIE ? this.facetLimit : null;
+                    var limit = dojo.isIE ? this.facetLimit : this.maxValuesPerFacet;
                     var self = this;
                     fieldmapper.standardRequest( 
                         [ 'open-ils.search', 'open-ils.search.facet_cache.retrieve'], 
@@ -68,7 +69,7 @@ if(!dojo._hasResource["openils.widget.FacetSidebar"]) {
             },
 
             _render_callback : function(facetData) {
-               var facetData = this.facetData;
+                var facetData = this.facetData;
                 var classes = openils.widget.Searcher._cache.arr.cmc;
                 if (this.classOrder && this.classOrder.length > 0) {
                     classes = [];