diff --git a/app/models/solr_document.rb b/app/models/solr_document.rb index c018d4ca..3db516f5 100644 --- a/app/models/solr_document.rb +++ b/app/models/solr_document.rb @@ -88,7 +88,7 @@ def bioghist # DUL custom property for a tagless short description of a collection or component. # Can be used e.g., in meta tags or popovers/tooltips. def short_description - truncate(strip_tags(abstract_or_scope), length: 400, separator: ' ') + truncate(ActionController::Base.helpers.strip_tags(abstract_or_scope), length: 400, separator: ' ') end # DUL override ArcLight core method, which was incorrectly lowercasing subsequent characters in @@ -211,6 +211,33 @@ def subseries_title parent_labels[i] if i.present? end + # ======================== + # AEON Request Item Values + # ======================== + + def aeon_item_sub_title_value + rv = ActionController::Base.helpers.strip_tags(normalized_title) + rv += " (#{extent})" if extent + # CGI.escapeHTML(rv) + rv + end + + def aeon_item_sub_title_sr_only + aeon_item_sub_title_value + end + + def aeon_item_volume_value + containers.join(', ') + end + + def aeon_item_citation_value + reference + end + + def aeon_item_info_1_value + accessrestrict + end + # ============================== # Highlights (for query matches) # ============================== diff --git a/app/views/arclight/fragments/_components.html.erb b/app/views/arclight/fragments/_components.html.erb index ab969fc7..378959de 100644 --- a/app/views/arclight/fragments/_components.html.erb +++ b/app/views/arclight/fragments/_components.html.erb @@ -8,11 +8,11 @@ <% else %> @@ -35,4 +35,4 @@ <%= render 'arclight/fragments/component_details', { component: component } %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/catalog/_aeon_request_checkbox.html.erb b/app/views/catalog/_aeon_request_checkbox.html.erb index cf5a068d..267be539 100755 --- a/app/views/catalog/_aeon_request_checkbox.html.erb +++ b/app/views/catalog/_aeon_request_checkbox.html.erb @@ -10,14 +10,14 @@ diff --git a/config/initializers/arc_84.rb b/config/initializers/arc_84.rb index 863e594f..1e7a9e06 100644 --- a/config/initializers/arc_84.rb +++ b/config/initializers/arc_84.rb @@ -1115,9 +1115,8 @@ "umich-wcl-P-2863-25for" => "umich-wcl-P-2863.25for", "umich-scl-kramera" => "umich-scl-ams0185", "umich-scl-hungarywar" => "umich-scl-ams0195", - "umich-scl-cope" => "umich-scl-ams0196", - "umich-scl-weber" => "umich-scl-ams0197", + "umich-scl-cope" => "umich-scl-ams0196", + "umich-scl-weber" => "umich-scl-ams0197", "umich-scl-inglisa" => "umich-scl-ams0198", "umich-scl-warresisters" => "umich-scl-ams0199" - }