app/helpers/collections_search_helper.rb in hydra-collections-3.0.0.beta2 vs app/helpers/collections_search_helper.rb in hydra-collections-3.0.0.beta3

- old
+ new

@@ -2,10 +2,9 @@ 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 + Collection.load_instance_from_solr(collection_pid).title || collection_pid end end