Sha256: 1ef187f0c099610857b3fd63e401d9be1d2372df226d4154ac801ad17cdb6f34

Contents?: true

Size: 1010 Bytes

Versions: 26

Compression:

Stored size: 1010 Bytes

Contents

<%# See code comments on ContributorsController.new to understand what this view does %>
<%- if params.has_key?(:contributor_type) %>
  <%- ct = params[:contributor_type] %>
  <%# Calculating the new index so all field values (ie first name & last name) will be added to one contributor with that index %>
  <%- new_contributor_index = @document_fedora.datastreams_in_memory["descMetadata"].find_by_terms(ct.to_sym).length %>
  
  <%= form_tag url_for(:action=>"update", :controller=>"assets", :content_type=>"mods_asset", :id=>params[:asset_id]), :id=>"add_contributor", "data-resourceType"=>"mods_asset", "accept-charset"=>"utf-8" do %>
      <input name="_method" type="hidden" value="put" />  
      <%= render :partial=>"contributors/edit_#{ct}.html", :locals=>{"edit_#{ct}".to_sym =>{}, "edit_#{ct}_counter".to_sym =>new_contributor_index}  %>
      <%= submit_tag "Add #{ct.capitalize}", {:id => "addContributor"} %> 
  <% end %>
<%- else %>
  <%= render :partial=>"contributors/new.html"  %>
<%- end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hydra-head-3.3.0 app/views/contributors/new.html.erb
hydra-head-3.2.2 app/views/contributors/new.html.erb
hydra-head-3.2.1 app/views/contributors/new.html.erb
hydra-head-3.2.0 app/views/contributors/new.html.erb
hydra-head-3.2.0.pre3 app/views/contributors/new.html.erb
hydra-head-3.2.0.pre2 app/views/contributors/new.html.erb
hydra-head-3.2.0.pre1 app/views/contributors/new.html.erb
hydra-head-3.1.5 app/views/contributors/new.html.erb
hydra-head-3.1.4 app/views/contributors/new.html.erb
hydra-head-3.1.3 app/views/contributors/new.html.erb
hydra-head-3.1.2 app/views/contributors/new.html.erb
hydra-head-3.1.1 app/views/contributors/new.html.erb
hydra-head-3.1.0 app/views/contributors/new.html.erb
hydra-head-3.1.0.rc2 app/views/contributors/new.html.erb
hydra-head-3.1.0.rc1 app/views/contributors/new.html.erb
hydra-head-3.1.0.pre5 app/views/contributors/new.html.erb
hydra-head-3.1.0.pre4 app/views/contributors/new.html.erb
hydra-head-3.1.0.pre3 app/views/contributors/new.html.erb
hydra-head-3.0.1 app/views/contributors/new.html.erb
hydra-head-3.1.0.pre2 app/views/contributors/new.html.erb