Sha256: c98d44f9880a763a1d16629daebe5b8c2ed4f4ec45e8c707eb9b9c030e10b1e0

Contents?: true

Size: 403 Bytes

Versions: 76

Compression:

Stored size: 403 Bytes

Contents

module ActiveFedora
  module Calculations
    # Get a count of the number of objects from solr
    # Takes :conditions as an argument
    def count(*args)
      return apply_finder_options(args.first).count if args.any?
      opts = {}
      opts[:rows] = limit_value if limit_value
      opts[:sort] = order_values if order_values

      SolrService.count(create_query(where_values))
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
active-fedora-15.0.1 lib/active_fedora/relation/calculations.rb
active-fedora-15.0.0 lib/active_fedora/relation/calculations.rb
active-fedora-14.0.1 lib/active_fedora/relation/calculations.rb
active-fedora-14.0.0 lib/active_fedora/relation/calculations.rb
active-fedora-13.3.0 lib/active_fedora/relation/calculations.rb
active-fedora-12.2.4 lib/active_fedora/relation/calculations.rb
active-fedora-13.2.7 lib/active_fedora/relation/calculations.rb
active-fedora-13.2.5 lib/active_fedora/relation/calculations.rb
active-fedora-13.2.4 lib/active_fedora/relation/calculations.rb
active-fedora-12.2.3 lib/active_fedora/relation/calculations.rb
active-fedora-13.2.3 lib/active_fedora/relation/calculations.rb
active-fedora-13.2.2 lib/active_fedora/relation/calculations.rb
active-fedora-13.2.0 lib/active_fedora/relation/calculations.rb
active-fedora-13.1.3 lib/active_fedora/relation/calculations.rb
active-fedora-11.5.6 lib/active_fedora/relation/calculations.rb
active-fedora-12.2.2 lib/active_fedora/relation/calculations.rb
active-fedora-11.2.1 lib/active_fedora/relation/calculations.rb
active-fedora-12.2.1 lib/active_fedora/relation/calculations.rb
active-fedora-12.0.3 lib/active_fedora/relation/calculations.rb
active-fedora-11.5.5 lib/active_fedora/relation/calculations.rb