diff --git a/app/parsers/bulkrax/bagit_parser.rb b/app/parsers/bulkrax/bagit_parser.rb index 7ea374f3..ab585c6c 100644 --- a/app/parsers/bulkrax/bagit_parser.rb +++ b/app/parsers/bulkrax/bagit_parser.rb @@ -77,7 +77,7 @@ def write_files file_set_entries = importerexporter.entries.where(type: file_set_entry_class.to_s) work_entries[0..limit || total].each do |entry| - record = Hyrax.object_factory.find(entry.identifier) + record = Bulkrax.object_factory.find(entry.identifier) next unless record bag_entries = [entry]