Skip to content

Instantly share code, notes, and snippets.

@cfitz
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfitz/74fe98d13d164026d35b to your computer and use it in GitHub Desktop.
Save cfitz/74fe98d13d164026d35b to your computer and use it in GitHub Desktop.
Add columns to search results
<%
title = I18n.t("search_results.title") if title.nil?
%>
<div class="row-fluid">
<div class="span3">
<%= render_aspace_partial :partial => "search/filter" %>
</div>
<div class="span9">
<div class="record-pane">
<%= link_to_help :topic => "search" %>
<% if !params[:linker] %>
<h2><%= title %></h2>
<% end %>
<%
add_browse_columns("resource", {"level" => "archival_record_level", "language" => "language_iso639_2"})
add_browse_columns("digital_object")
add_browse_columns("accession")
%>
<%= render_aspace_partial :partial => "listing" %>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment