Sha256: 073bcf892fdb2b2d807817a92bfdba4cb06da604b127dd09c1d47d5eb91bd0b1

Contents?: true

Size: 427 Bytes

Versions: 12

Compression:

Stored size: 427 Bytes

Contents

module Sufia
  module CollectionsHelper
    def render_collection_links(solr_doc)
      collection_list = Sufia::CollectionMemberService.run(solr_doc)
      return if collection_list.empty?
      links = collection_list.map do |collection|
        link_to collection.title_or_label, collection_path(collection.id)
      end
      content_tag :span, safe_join([t('sufia.collection.is_part_of'), ': '] + links)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sufia-7.4.1 app/helpers/sufia/collections_helper.rb
sufia-7.4.0 app/helpers/sufia/collections_helper.rb
sufia-7.3.1 app/helpers/sufia/collections_helper.rb
sufia-7.3.0 app/helpers/sufia/collections_helper.rb
sufia-7.3.0.rc3 app/helpers/sufia/collections_helper.rb
sufia-7.3.0.rc2 app/helpers/sufia/collections_helper.rb
sufia-7.3.0.rc1 app/helpers/sufia/collections_helper.rb
sufia-7.2.0 app/helpers/sufia/collections_helper.rb
sufia-7.1.0 app/helpers/sufia/collections_helper.rb
sufia-7.0.0 app/helpers/sufia/collections_helper.rb
sufia-7.0.0.rc2 app/helpers/sufia/collections_helper.rb
sufia-7.0.0.rc1 app/helpers/sufia/collections_helper.rb