<% if current_user.archivist %>
<%= t(".add_work_header_html", title: item.title) %>
<% else %>
<%= t(".invite_header_html", title: item.title) %>
<% end %>
<% else %>
<%= t(".add_bookmark_header") %>
<% end %>
<%
# when in the works controller, such as for a non-multi-chapter work, form_for does not set work_id
# so the create action of the collection_items controller fails to find the targetted work
# hence the klutzy workaround with setting the _id manually in the url, below
%>
<%= form_for([item, @collection_item], :url => { (item.class.name.foreign_key).to_sym => item.id, :controller => 'collection_items', :action => :create}) do |form| %>