Sha256: 92e49852176b88108aef3747e2bb7d7305c1e69160deb4d0aca578cfbdde8463
Contents?: true
Size: 878 Bytes
Versions: 4
Compression:
Stored size: 878 Bytes
Contents
module CommonwealthVlrEngine module ComponentHelper include Blacklight::ComponentHelperBehavior # add extra tools to show view -- folders, social sharing, etc. def render_show_doc_actions(document=@document, options={}) wrapping_class = options.delete(:documentFunctions) || options.delete(:wrapping_class) || 'documentFunctions' content = [] #content << render(:partial => 'catalog/bookmark_control', :locals => {:document=> document}.merge(options)) if render_bookmarks_control? # social media: content << render(:partial => 'catalog/add_this') if has_user_authentication_provider? and current_or_guest_user content << render(:partial => 'catalog/folder_item_control', :locals => {:document => document}) end content_tag('div', content.join("\n").html_safe, :class=> wrapping_class) end end end
Version data entries
4 entries across 4 versions & 1 rubygems