app/models/bulkrax/oai_set_entry.rb in bulkrax-7.0.0 vs app/models/bulkrax/oai_set_entry.rb in bulkrax-8.0.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
module Bulkrax
class OaiSetEntry < OaiEntry
- self.default_work_type = "Collection"
+ self.default_work_type = Bulkrax.collection_model_class.to_s
def build_metadata
self.parsed_metadata = self.raw_metadata
add_local
return self.parsed_metadata