Sha256: bad0a2608f51c8341729492c7ed6442a1e8b7c06bc477f9481470ac68b8424b4

Contents?: true

Size: 362 Bytes

Versions: 13

Compression:

Stored size: 362 Bytes

Contents

# View Helper methods for Hydra Collections in search results
module CollectionsSearchHelper

  # @param [String] collection_pid the pid of a collection
  # @return [String] the title of the collection if available, otherwise its pid
  def collection_name(collection_pid)
    Collection.load_instance_from_solr(collection_pid).title || collection_pid
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hydra-collections-3.0.0.beta3 app/helpers/collections_search_helper.rb
hydra-collections-2.0.5 app/helpers/collections_search_helper.rb
hydra-collections-2.0.4 app/helpers/collections_search_helper.rb
hydra-collections-2.0.3 app/helpers/collections_search_helper.rb
hydra-collections-2.0.2 app/helpers/collections_search_helper.rb
hydra-collections-2.0.1 app/helpers/collections_search_helper.rb
hydra-collections-2.0.0 app/helpers/collections_search_helper.rb
hydra-collections-1.3.2 app/helpers/collections_search_helper.rb
hydra-collections-1.3.1 app/helpers/collections_search_helper.rb
hydra-collections-1.3.0 app/helpers/collections_search_helper.rb
hydra-collections-1.2.0 app/helpers/collections_search_helper.rb
hydra-collections-1.2.0.rc1 app/helpers/collections_search_helper.rb
hydra-collections-1.1.0 app/helpers/collections_search_helper.rb