@core_helper
def has_more_facets(facet, limit=None, exclude_active=False):
 facets = []
 for facet_item in c.search_facets.get(facet)['items']:
  if (not len(facet_item['name'].strip())):
   continue
  if (not ((facet, facet_item['name']) in request.params.items())):
   facets.append(dict(active=False, **facet_item))
  elif (not exclude_active):
   facets.append(dict(active=True, **facet_item))
 if (c.search_facets_limits and (limit is None)):
  limit = c.search_facets_limits.get(facet)
 if ((limit is not None) and (len(facets) > limit)):
  return True
 return False

@ core_helper def has_more_facets ( facet , limit = None , exclude_active = False ) : facets = [ ] for facet_item in c . search_facets . get ( facet ) [ 'items' ] : if ( not len ( facet_item [ 'name' ] . strip ( ) ) ) : continue if ( not ( ( facet , facet_item [ 'name' ] ) in request . params . items ( ) ) ) : facets . append ( dict ( active = False , ** facet_item ) ) elif ( not exclude_active ) : facets . append ( dict ( active = True , ** facet_item ) ) if ( c . search_facets_limits and ( limit is None ) ) : limit = c . search_facets_limits . get ( facet ) if ( ( limit is not None ) and ( len ( facets ) > limit ) ) : return True return False
returns true if there are more facet items for the given facet than the limit .