Skip to content

Commit

Permalink
[ESSI-875] [ESSI-2057] monkeypatch #export_from_list, restrict to Col…
Browse files Browse the repository at this point in the history
…lection
  • Loading branch information
aploshay committed Jan 15, 2025
1 parent 85a110a commit 2df1729
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/extensions/bulkrax/exporter/export_metadata_only.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ module Extensions
module Bulkrax
module Exporter
module ExportMetadataOnly
# unmodified from bulkrax
# modified from bulkrax to remove options
def export_from_list
if defined?(::Hyrax)
[
[I18n.t('bulkrax.exporter.labels.importer'), 'importer'],
# [I18n.t('bulkrax.exporter.labels.importer'), 'importer'],
[I18n.t('bulkrax.exporter.labels.collection'), 'collection'],
[I18n.t('bulkrax.exporter.labels.worktype'), 'worktype'],
[I18n.t('bulkrax.exporter.labels.all'), 'all']
# [I18n.t('bulkrax.exporter.labels.worktype'), 'worktype'],
# [I18n.t('bulkrax.exporter.labels.all'), 'all']
]
else
[
[I18n.t('bulkrax.exporter.labels.importer'), 'importer'],
# [I18n.t('bulkrax.exporter.labels.importer'), 'importer'],
[I18n.t('bulkrax.exporter.labels.collection'), 'collection'],
[I18n.t('bulkrax.exporter.labels.all'), 'all']
# [I18n.t('bulkrax.exporter.labels.all'), 'all']
]
end
end
Expand Down

0 comments on commit 2df1729

Please sign in to comment.