Sha256: f4fe0c036981ec36f0e0f7a5df0bf9a60df62e1b0906d4575097c6bd11324870
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true module Hyrax ## # Valkyrie model for Admin Set domain objects. class AdministrativeSet < Hyrax::Resource include Hyrax::Schema(:core_metadata) attribute :alternative_title, Valkyrie::Types::Set.of(Valkyrie::Types::String) attribute :creator, Valkyrie::Types::Set.of(Valkyrie::Types::String) attribute :description, Valkyrie::Types::Set.of(Valkyrie::Types::String) def collection_type_gid # allow AdministrativeSet to behave more like a regular PcdmCollection Hyrax::CollectionType.find_or_create_admin_set_type.to_global_id end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.3.0 | app/models/hyrax/administrative_set.rb |
hyrax-3.2.0 | app/models/hyrax/administrative_set.rb |