Sha256: 61ed150310f519b838cad7255a381249a86228fc7b9fba0fe74936386c52b614

Contents?: true

Size: 405 Bytes

Versions: 12

Compression:

Stored size: 405 Bytes

Contents

module Ddr::Index
  module Filters

    HAS_CONTENT = Filter.where(Fields::ACTIVE_FEDORA_MODEL => ["Component", "Attachment", "Target"])

    class << self
      def is_governed_by(pid)
        Filter.where(Fields::IS_GOVERNED_BY => internal_uri(pid))
      end

      def internal_uri(pid)
        ActiveFedora::Base.internal_uri(pid)
      end
    end

    private_class_method :internal_uri

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddr-models-2.4.0.rc2 lib/ddr/index/filters.rb
ddr-models-2.4.0.rc1 lib/ddr/index/filters.rb
ddr-models-2.3.2 lib/ddr/index/filters.rb
ddr-models-2.3.1 lib/ddr/index/filters.rb
ddr-models-2.3.0 lib/ddr/index/filters.rb
ddr-models-2.2.0 lib/ddr/index/filters.rb
ddr-models-2.1.3 lib/ddr/index/filters.rb
ddr-models-2.1.2 lib/ddr/index/filters.rb
ddr-models-2.1.1 lib/ddr/index/filters.rb
ddr-models-2.1.0 lib/ddr/index/filters.rb
ddr-models-2.1.0.rc2 lib/ddr/index/filters.rb
ddr-models-2.1.0.rc1 lib/ddr/index/filters.rb