diff --git a/lib/tufts/curation/collection.rb b/lib/tufts/curation/collection.rb index 6469956..1d631e4 100644 --- a/lib/tufts/curation/collection.rb +++ b/lib/tufts/curation/collection.rb @@ -10,14 +10,14 @@ class Collection < ActiveFedora::Base # If it is unavailable, we skip loading the complex behavior and settle for having # `Hyrax::CoreMetadata` and `Hyrax::BasicMetadata` in place. def self.inherited(subclass) - subclass.include 'Hyrax::CollectionBehavior'.constantize + subclass.include '::Hyrax::CollectionBehavior'.constantize subclass.indexer = Hyrax::CollectionWithBasicMetadataIndexer rescue NameError => e warn 'Hyrax::CollectionBehavior is unavailable; skipping inclusion ' \ "in #{subclass}.\n#{e}" end - include Hyrax::CoreMetadata + include Hyrax::BasicMetadata property :ead, predicate: ::Tufts::Vocab::Tufts.has_description do |index| index.as :stored_searchable