Sha256: 64f391d6015013bc643fd45b06796445b06c73a18e6fc6aad285c87bec379806
Contents?: true
Size: 817 Bytes
Versions: 4
Compression:
Stored size: 817 Bytes
Contents
module CommonwealthVlrEngine module BlacklightHelper include Blacklight::BlacklightHelperBehavior # local override to allow using CommonwealthVlrEngine::CatalogHelper#render_main_title # for catalog#show title heading def document_heading document=nil document ||= @document if document[blacklight_config.index.title_field.to_sym] render_main_title(document) else @document.id end end # local override to use custom #document_heading method (above) for catalog#show title heading def render_document_heading(*args) options = args.extract_options! document = args.first tag = options.fetch(:tag, :h4) document = document || @document content_tag(tag, document_heading(document), itemprop: "name") end end end
Version data entries
4 entries across 4 versions & 1 rubygems