lib/umlaut_configurable.rb in umlaut-3.0.0alpha10 vs lib/umlaut_configurable.rb in umlaut-3.0.0alpha11
- old
+ new
@@ -347,9 +347,10 @@
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?) ||
(! renderer.responses_empty?)
end )
service_type_values ['cited_by', 'similar']
end