Skip to content
Snippets Groups Projects
Commit deecb85e authored by Gyan Gupta's avatar Gyan Gupta
Browse files

add some missing code

parent 8f3d2be6
Branches bug_fix/importer_issues_25_33_34
No related tags found
2 merge requests!384fixes for importer filters and entry respective links,!346Draft: Hyrax 5 - Upgrade hyrax to v5
Pipeline #20901 failed
......@@ -166,4 +166,15 @@ module HyraxHelper
meta_object = s3.system_metadata_object(work_id)
meta_object.present? and (work.date_modified.to_i <= DateTime.parse(meta_object.last_modified.to_s).to_i)
end
def get_custom_entry_record(entry)
case entry.class.name
when "Bulkrax::CrcFolderComplexSubjectEntry"
ComplexSubject.find_by(source_identifier: entry.identifier)
when "Bulkrax::CrcFolderComplexSessionEntry"
ComplexSession.find_by(source_identifier: entry.identifier)
else
ComplexModality.find_by(source_identifier: entry.identifier)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment