Skip to content

Commit

Permalink
fix bagit exporting (#798)
Browse files Browse the repository at this point in the history
find the correct entry type by the entry class when exporting with bagit. @work_ids, @collection_ids and @file_set_ids no longer exist as of #749
  • Loading branch information
alishaevn authored Apr 21, 2023
1 parent ed27cd9 commit 0b33cdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/parsers/bulkrax/bagit_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def write_files

folder_count = 1
records_in_folder = 0
work_entries = importerexporter.entries.where(identifier: @work_ids)
collection_entries = importerexporter.entries.where(identifier: @collection_ids)
file_set_entries = importerexporter.entries.where(identifier: @file_set_ids)
work_entries = importerexporter.entries.where(type: work_entry_class.to_s)
collection_entries = importerexporter.entries.where(type: collection_entry_class.to_s)
file_set_entries = importerexporter.entries.where(type: file_set_entry_class.to_s)

work_entries[0..limit || total].each do |entry|
record = ActiveFedora::Base.find(entry.identifier)
Expand Down

0 comments on commit 0b33cdc

Please sign in to comment.