<% =begin jrochkind's alternative partial for displaying holdings. Displays more information to deal with the more information we need to display from our Horizon. In tabular format. Customized for JH's needs, but should be usable by anyone. =end %>
<% holdings = get_service_type('holding') %> <% unless holdings.empty? %> <% holdings.each do |p| target = p.view_data %> <% status_class = (target[:status] == "Not Charged" or target[:status] == "Available") ? 'available' : '' %> <% if (!target[:match_reliability].blank?) && target[:match_reliability] != ServiceResponse::MatchExact %> <% end %> <% unless target[:notes].blank? %> <% end %> <% unless target[:coverage_str_array].blank? %> <% end %> <% end %>

<%= target[:collection_str] %>

<%= target[:call_number]%><%= target[:status] %> <%= link_to(image_tag("more_info.gif", "border" => 0, "alt" => 'more info'), {:controller=>"link_router", :id=>p.id}, "target" => "_blank") %> <% if target[:request_url] %>
<%= link_to( image_tag("request.gif", "border" => "0", "alt" => "request"), target[:request_url], "target" => "_blank" ) %> <% end %>
<% unless target[:edition_str].blank? %> Edition information <%= target[:edition_str] %> <% else %> May be alternate edition. <% end %>
<%= target[:notes] %>
<%= list_with_limit("copies_#{p.id}", target[:coverage_str_array]) do |item, index| %>
  • <%= item %>
  • <% end %>
    <% end %> <% if holdings.empty? searches = get_service_type('holding_search') searches.each do | result_st | response = result_st.view_data %>

    <%= link_to response[:display_text], {:controller=>'link_router', :id=>result_st.id}, 'target'=>"_blank" %>

    <% end end if (holdings.blank? && searches.blank? && ! service_types_in_progress?(['holding', 'holding_search'])) %>

    Not Available

    <% end %>