Skip to content

Commit

Permalink
[ESSI-857] [ESSI-2050] monkeypatch to disable files export
Browse files Browse the repository at this point in the history
  • Loading branch information
aploshay committed Jan 10, 2025
1 parent 7cd8004 commit fa7d845
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/extensions/bulkrax/exporter/export_metadata_only.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# unmodified from bulkrax 5.5.1
# modified from bulkrax 5.5.1
module Extensions
module Bulkrax
module Exporter
module ExportMetadataOnly
# modified to remove option for files export
def export_type_list
[
[I18n.t('bulkrax.exporter.labels.metadata'), 'metadata'],
[I18n.t('bulkrax.exporter.labels.full'), 'full']
# [I18n.t('bulkrax.exporter.labels.full'), 'full']
]
end

# modified to never support file export
def metadata_only?
export_type == 'metadata'
true # export_type == 'metadata'
end
end
end
Expand Down

0 comments on commit fa7d845

Please sign in to comment.