Skip to content

Commit c7f5a90

Browse files
committed
[ESSI-857] [ESSI-2050] monkeypatch to disable files export
1 parent 06b9b9c commit c7f5a90

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/extensions/bulkrax/exporter/export_metadata_only.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
# unmodified from bulkrax 5.5.1
1+
# modified from bulkrax 5.5.1
22
module Extensions
33
module Bulkrax
44
module Exporter
55
module ExportMetadataOnly
6+
# modified to remove option for files export
67
def export_type_list
78
[
89
[I18n.t('bulkrax.exporter.labels.metadata'), 'metadata'],
9-
[I18n.t('bulkrax.exporter.labels.full'), 'full']
10+
# [I18n.t('bulkrax.exporter.labels.full'), 'full']
1011
]
1112
end
1213

14+
# modified to never support file export
1315
def metadata_only?
14-
export_type == 'metadata'
16+
true # export_type == 'metadata'
1517
end
1618
end
1719
end

0 commit comments

Comments
 (0)