app/controllers/umlaut_configurable.rb in umlaut-3.3.1 vs app/controllers/umlaut_configurable.rb in umlaut-4.0.0.beta1

- old
+ new

@@ -251,22 +251,33 @@ (list[index1], list[index2] = list[index2], list[index1]) if index1 && index2 && (index1 > index2) list end end - + + ########## + # + # Names of these sections can be given in Rails i18n, under key + # umlaut.display_sections.#{section_div_id}.title + # If not given there, will be automatically calculated from + # the display_name of the ServiceType Value included. + # + # Optional sub-head prompts can also be given in i18n, under + # umlaut.display_sections.#{section_div_id}.prompt + # + ########### + add_resolve_sections! do div_id "cover_image" partial "cover_image" visibility :responses_exist show_heading false show_spinner false end add_resolve_sections! do div_id "fulltext" - section_title "Online Access" html_area :main partial :fulltext show_partial_only true end @@ -277,11 +288,10 @@ show_partial_only true end add_resolve_sections! do div_id "excerpts" - section_prompt "A limited preview which may include table of contents, index, and other selected pages." html_area :main list_visible_limit 5 visibility :responses_exist end @@ -291,19 +301,17 @@ visibility :responses_exist end add_resolve_sections! do div_id "holding" - section_title ServiceTypeValue[:holding].display_name_pluralize html_area :main partial 'holding' service_type_values ["holding","holding_search"] end add_resolve_sections! do div_id "document_delivery" - section_title "Request a copy from Inter-Library Loan" html_area :main visibility :responses_exist #bg_update false end @@ -319,11 +327,10 @@ visibility :responses_exist end add_resolve_sections! do div_id "help" - section_title "Question? Problem? Contact:" html_area :sidebar bg_update false partial "help" show_heading false show_spinner false @@ -343,19 +350,16 @@ add_resolve_sections! do div_id "export_citation" html_area :sidebar visibility :in_progress - item_name_plural "Export tools" end add_resolve_sections! do div_id "related_items" html_area :sidebar partial "related_items" - section_title "More like this" - item_name_plural "Related Items" # custom visibility, show it for item-level cites, # or if we actually have some visibility( lambda do |renderer| renderer.any_services? && (! renderer.request.title_level_citation?) || @@ -364,10 +368,9 @@ service_type_values ['cited_by', 'similar'] end add_resolve_sections! do div_id "highlighted_link" - section_title "See also" html_area :sidebar visibility :in_progress partial_locals( :show_source => true ) end