<%= setup_context(:title => I18n.t("location._plural")) %> <% @show_multiselect_column = user_can?("administer_system") no_title! %w(building floor room area).each do |place| add_column(I18n.t("location.#{place}"), proc {|record| record[place]}, :sortable => true, :sort_by => place) end add_column(I18n.t("location._singular"), proc {|record| record['title']}, :sortable => true, :sort_by => 'title_sort') add_column(I18n.t("location.holdings"), proc {|record| filter_term = {"location_uris" => record['uri']}.to_json ajax_search_url = url_for({:controller => :search, :action => :do_search, :format => :json, :listing_only => true}.merge(build_search_params({"add_filter_term" => filter_term}))) "
".html_safe }, :sortable => false) %>
<% if user_can?('update_location_record') %>
<% if user_can?('manage_repository') %> <%= link_to I18n.t("actions.edit_default_values"), {:controller => :locations, :action => :defaults}, :class => "btn btn-sm btn-default" %> <% end %> <%= link_to I18n.t("location._frontend.action.create"), {:controller => :locations, :action => :new}, :class => "btn btn-sm btn-default" %> <%= link_to I18n.t("location._frontend.action.batch"), {:controller => :locations, :action => :batch}, :class => "btn btn-sm btn-default" %> <%= button_edit_multiple_action(:locations) %> <% if user_can?("administer_system") %> <%= button_delete_multiple_action(:locations) %> <% end %>

<% end %>
<%= link_to_help :topic => "search" %>

<%= I18n.t("location._plural") %>

<%= render_aspace_partial :partial => "shared/flash_messages" %> <%= render_aspace_partial :partial => "search/listing" %>