Sha256: 7fcecf8b12fe9803b48725a7c32fedf65faf1bc130c3b1ca4f19695954dec097

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 Bytes

Contents

module CommonwealthVlrEngine
  module CollectionsHelperBehavior

    # link to view all items in a collection
    def link_to_all_col_items(col_title, institution_name=nil, link_class)
      facet_params = {blacklight_config.collection_field => [col_title]}
      facet_params[blacklight_config.institution_field] = institution_name if institution_name
      link_to(t('blacklight.collections.browse.all'),
              search_catalog_path(:f => facet_params),
              :class => link_class)
    end

    # whether the A-Z link menu should be displayed in collections#index
    def should_render_col_az?
      false
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb
commonwealth-vlr-engine-0.0.4 app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb
commonwealth-vlr-engine-0.0.3 app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb
commonwealth-vlr-engine-0.0.2 app/helpers/commonwealth_vlr_engine/collections_helper_behavior.rb