Sha256: 8c606492378b00fed958892c3483a110e073d3ee8d174b2e00a25618da23b454

Contents?: true

Size: 577 Bytes

Versions: 56

Compression:

Stored size: 577 Bytes

Contents

class ResourceAggregator < ::ActiveFedora::Base
  include ::ActiveFedora::FinderMethods::RepositoryMethods
  include ::ActiveFedora::DatastreamCollections
  include ::Hydra::ModelMethods
  include Cul::Hydra::Models::Common
  include Cul::Hydra::Models::Aggregator
  include Cul::Hydra::Models::LinkableResources

  has_many :parts, :property => :cul_member_of, :class_name=>'Resource'

  def route_as
    "resource"
  end
  
  def index_type_label
    "PART"
  end
  
  def thumbnail_info
    return {:url=>image_url("cul_hydra/crystal/file.png"),:mime=>'image/png'}
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cul_hydra-1.8.0 app/models/resource_aggregator.rb
cul_hydra-1.7.6 app/models/resource_aggregator.rb
cul_hydra-1.7.5 app/models/resource_aggregator.rb
cul_hydra-1.7.4 app/models/resource_aggregator.rb
cul_hydra-1.7.3 app/models/resource_aggregator.rb
cul_hydra-1.7.2 app/models/resource_aggregator.rb
cul_hydra-1.7.1 app/models/resource_aggregator.rb
cul_hydra-1.7.0 app/models/resource_aggregator.rb
cul_hydra-1.6.4 app/models/resource_aggregator.rb
cul_hydra-1.6.2 app/models/resource_aggregator.rb
cul_hydra-1.6.1 app/models/resource_aggregator.rb
cul_hydra-1.6.0 app/models/resource_aggregator.rb
cul_hydra-1.5.3 app/models/resource_aggregator.rb
cul_hydra-1.5.2 app/models/resource_aggregator.rb
cul_hydra-1.5.1 app/models/resource_aggregator.rb
cul_hydra-1.5.0 app/models/resource_aggregator.rb
cul_hydra-1.4.18 app/models/resource_aggregator.rb
cul_hydra-1.4.17 app/models/resource_aggregator.rb
cul_hydra-1.4.16 app/models/resource_aggregator.rb
cul_hydra-1.4.15 app/models/resource_aggregator.rb