UW-Libraries / druw

1 stars 1 forks source link

Batch upload to hyrax v2.1.0 from within a collection fails #40

Open younga3 opened 6 years ago

younga3 commented 6 years ago

Track this issue.

younga3 commented 5 years ago

This is still broken in v2.4.1 and v3.0.0.pre.beta1 How can we just remove the following line "To create a separate work for each of the files, go to Batch upload" from the "Add new work" form?

dtolmie commented 5 years ago

It would be worth seeing how it renders if we just remove the text for batch_link and batch_upload_hint by replacing them with "" in hyrax.en.yml. Otherwise, we'll need to start customizing files to remove it entirely.

https://github.com/samvera/hyrax/blob/master/config/locales/hyrax.en.yml#L352

younga3 commented 5 years ago

Do you know how to edit https://github.com/UW-Libraries/druw/blob/master/config/locales/hyrax.en.yml to make that happen?

younga3 commented 5 years ago

I'm failing to hide that in the form by editing hyrax.en.yml I may have indentations incorrect. https://gist.github.com/younga3/3bd482bd21dc86e753d0298ed5fadc8f

younga3 commented 5 years ago

Copying and editing the following in my local VM for now. https://gist.github.com/younga3/17e5d421ef757a91dc6dd15a3d9d6600

younga3 commented 5 years ago

Even better, copying line from 3.0.0.pre.beta1 _form.html.erb makes editing hyrax.en.yml work to hide this line. <p class="switch-upload-type"><%= t('.batch_upload_hint') %> <%= link_to t('.batch_link'), hyrax.new_batch_upload_path %></p>