app/models/bulkrax/csv_collection_entry.rb in bulkrax-6.0.1 vs app/models/bulkrax/csv_collection_entry.rb in bulkrax-7.0.0
- old
+ new
@@ -1,11 +1,9 @@
# frozen_string_literal: true
module Bulkrax
class CsvCollectionEntry < CsvEntry
- def factory_class
- Collection
- end
+ self.default_work_type = "Collection"
# Use identifier set by CsvParser#unique_collection_identifier, which falls back
# on the Collection's first title if record[source_identifier] is not present
def add_identifier
self.parsed_metadata[work_identifier] = [self.identifier].flatten