<%= t('page.listing', :model => t('patron.creator')) -%>

[W] <%= link_to work.original_title, work -%> <%- if work.series_statement -%> (<%= link_to work.series_statement.original_title, work.series_statement -%>) <%- end -%>

<%= form_for :patrons, :url => work_patrons_path(work), :html => {:method => 'get'} do -%>

<%= t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', :class => 'search_form', :placeholder => t('page.search_term')} -%> <%- if can? :update, work -%> <%= render 'page/add' %> <% end %> <%= submit_tag t('page.search') -%> <%= link_to t('page.back_to_index'), work_patrons_path(work) -%>

<%- end -%>
<%- @patrons.each do |patron| -%> "> <%- end -%>
<%= t('activerecord.attributes.patron.full_name') -%> <%= t('activerecord.models.create_type') -%> <%= t('activerecord.models.patron_type') -%>
<%= link_to patron.full_name, patron -%> <%= work.created(patron).create_type.display_name.localize if params[:mode] != 'add' and work.created(patron).try(:create_type) -%> <%= patron.patron_type.display_name.localize -%> <%- if can? :destroy, patron -%> <%- if params[:mode] == 'add' -%> <%= link_to t('page.add'), new_work_create_path(work, :patron_id => patron.id) unless work.creators.include?(patron) -%> <%- else -%> <%= link_to t('page.edit'), edit_create_path(work.created(patron)) -%> <%= link_to t('page.destroy'), work_create_path(work, work.created(patron)), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%> <%- end -%> <%- end -%>
<%= paginate(@patrons) -%>