Skip to content

Commit

Permalink
i84 - update visibility label and help text
Browse files Browse the repository at this point in the history
This was contributed back per PALNI PALCI. Since it's possible to override whatever setting the user selects at the form level, help text is provided. If the visibility is declared at the CSV level, the visibility selected at the form level will be ignored.

Issue:
- scientist-softserv/palni_palci_knapsack#84
  • Loading branch information
ShanaLMoore committed Jun 18, 2024
1 parent 74b8d7e commit e3e952d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/bulkrax/importers/_csv_fields.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<div class='csv_fields'>

<%= fi.input :visibility,
label: 'Default Visibility',
collection: [
['Public', 'open'],
['Private', 'restricted'],
['Institution', 'authenticated']
],
selected: importer.parser_fields['visibility'] || 'open',
input_html: { class: 'form-control' }
input_html: { class: 'form-control' },
hint: 'If your CSV includes the visibility field, it will override the default setting.'
%>
<% if defined?(::Hyrax) %>
Expand Down

0 comments on commit e3e952d

Please sign in to comment.