<%= notice %>

Document · Institutional Access <% if params[:document_id] %> <%= link_to '+ New Access URL', new_document_document_access_path(@document), { class: 'btn btn-primary float-right' } %> <% end %>

<% if params[:document_id] %>

<%= @document.title %>

<% else %>

Import for Multiple Documents

<% end %>

Import a CSV File

<%= simple_form_for DocumentAccess.new, url: import_document_accesses_path, method: :post, multipart: true do |f| %>
<%= f.simple_fields_for :assets do |asset_fields| %> <%= asset_fields.input :file, as: :file, input_html: {} %> <%- end %>
<%= submit_tag "Import CSV", {class: 'btn btn-primary'} %>
<% end %>

Example CSV File

friendlier_id institution_code access_url
999-0010 12 http://pi.lib.uchicago.edu/1001/cat/bib/11538549
999-0010-alabama 12 http://pi.lib.uchicago.edu/1001/cat/bib/11538549
... ... ...
CSV File Column Definitions
friendlier_id
The associated GEOMG document's friendlier id
institution_code
The code for the institution
access_url
The URL for the Access link