Sha256: 71c8b64ca1d9b1b674745ff4b75e2504a2471cc7698eb9f7c345826b55179482

Contents?: true

Size: 508 Bytes

Versions: 22

Compression:

Stored size: 508 Bytes

Contents

require "active-fedora"
require "active_fedora_finders"
class METSStructuredAggregator < ::ActiveFedora::Base
  extend ActiveModel::Callbacks
  include ::ActiveFedora::Finders
  include ::ActiveFedora::DatastreamCollections
  include ::Hydra::ModelMethods
  include Cul::Scv::Hydra::Models::Common
  include Cul::Scv::Hydra::Models::Aggregator

  has_many :parts, :property => :cul_member_of, :class_name=>'ActiveFedora::Base'

  #alias :file_objects :resources

  def route_as
    "multipartitem"
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cul_scv_hydra-0.17.2 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.17.1 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.17.0 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.12 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.11 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.10 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.8 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.7 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.6 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.5 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.4 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.3 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.2 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.1 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.16.0 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.15.1 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.15.0 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.14.2 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.14.1 app/models/mets_structured_aggregator.rb
cul_scv_hydra-0.14.0 app/models/mets_structured_aggregator.rb