app/views/resolve/_holding.html.erb in umlaut-3.3.1 vs app/views/resolve/_holding.html.erb in umlaut-4.0.0.beta1

- old
+ new

@@ -5,39 +5,39 @@ # Process each holding. holdings.each do |p| target = p.view_data %> <div class="umlaut-holding"> <div class="item_status_row"> - <div class="collection-and-number row-fluid"> - <div class="span7 collection-str"><i class="umlaut_icons-famfamfam-book"></i> + <div class="collection-and-number row"> + <div class="col-sm-7 collection-str"><i class="umlaut_icons-famfamfam-book"></i> <%= target[:collection_str] %></div> <% # Set status class based on configured available statuses status_class = umlaut_config.holdings.available_statuses.include?(target[:status]) ? 'umlaut-available' : '' %> - <div class="span5 holding-status <%= status_class %>"> <%= target[:status] %></div> + <div class="col-sm-5 holding-status <%= status_class %>"> <%= target[:status] %></div> </div> - <div class="status-and-actions row-fluid"> - <div class="span7 call-number"><%= target[:call_number]%></div> + <div class="status-and-actions row"> + <div class="col-sm-7 call-number"><%= target[:call_number]%></div> - <div class="holding-actions span5"> - <%= link_to("More info", {:controller=>"link_router", :id=>p.id}, :target => "_blank", :class=>"more-info btn btn-mini") %> + <div class="holding-actions col-sm-5"> + <%= link_to(t('umlaut.holding.more_info'), {:controller=>"link_router", :id=>p.id}, :target => "_blank", :class=>"more-info btn btn-xs btn-default") %> <% if target[:request_url] %> - <%= link_to("Request", target[:request_url], :target => "_blank", :class=>"request btn btn-mini btn-primary") %> + <%= link_to(t('umlaut.holding.request'), target[:request_url], :target => "_blank", :class=>"request btn btn-xs btn-primary") %> <% end %> </div> </div> </div> <% if target[:match_reliability].present? && target[:match_reliability] != ServiceResponse::MatchExact %> <div class="umlaut-holding-match-reliability"> <% unless target[:edition_str].blank? %> - <em class="note">Edition information</em> <%= target[:edition_str] %> + <em class="note"><%=t('umlaut.resolve.edition_info')%></em> <%= target[:edition_str] %> <% else %> - <em class="note">May be alternate edition.</em> + <em class="note"><%t('umlaut.resolve.maybe_alt_edition')%></em> <% end %> </div> <% end %> <% if target[:notes].present? %> @@ -58,18 +58,18 @@ </div> <% end %> <% if holdings.empty? %> <div class="umlaut-content-indent"> - <% # Get and display holding searches + <% # Get and display holding searches searches = holding.find_all{|response| response.service_type_value_name.eql? "holding_search"} searches.each do | result_st | response = result_st.view_data %> <p class="umlaut-holding-search"><%= link_to response[:display_text], {:controller=>'link_router', :id=>result_st.id}, 'target'=>"_blank" %></p> <% end %> - <% + <% # Display "Not Available" if we've completed our service run and both holdings and holding searches are empty if (holdings.blank? and searches.blank? and (not service_types_in_progress?(['holding', 'holding_search']))) %> - <p class="umlaut-unavailable">Not Available</p> + <p class="umlaut-unavailable"><%=t('umlaut.resolve.not_available')%></p> <% end %> </div> <% end %>