Sha256: a225fbf5108ed3d2344abaeaf484fb768e4e2ad45c69af666ac155adba9be0bb

Contents?: true

Size: 382 Bytes

Versions: 19

Compression:

Stored size: 382 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)
    #TODO this can be loaded from solr
    Collection.find(collection_pid).title || collection_pid
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hydra-collections-7.0.0 app/helpers/collections_search_helper.rb
hydra-collections-5.0.4 app/helpers/collections_search_helper.rb
hydra-collections-6.0.0 app/helpers/collections_search_helper.rb
hydra-collections-6.0.0.rc2 app/helpers/collections_search_helper.rb
hydra-collections-6.0.0.rc1 app/helpers/collections_search_helper.rb
hydra-collections-5.0.3 app/helpers/collections_search_helper.rb
hydra-collections-6.0.0.alpha app/helpers/collections_search_helper.rb
hydra-collections-5.0.2 app/helpers/collections_search_helper.rb
hydra-collections-5.0.1 app/helpers/collections_search_helper.rb
hydra-collections-5.0.0 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0.rc3 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0.rc2 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0.rc1 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0.beta4 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0.beta3 app/helpers/collections_search_helper.rb
hydra-collections-4.0.0.beta1 app/helpers/collections_search_helper.rb
hydra-collections-3.0.0.beta2 app/helpers/collections_search_helper.rb
hydra-collections-3.0.0.beta1 app/helpers/collections_search_helper.rb