%= 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}))) "