Sha256: 3d580d6fc3e73e5144bd9622357d767f96ac0ab20fdd9b905d707bcc48833e6a

Contents?: true

Size: 390 Bytes

Versions: 4

Compression:

Stored size: 390 Bytes

Contents

module GenericWorkHelper
  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sufia-7.0.0.beta4 app/helpers/generic_work_helper.rb
sufia-7.0.0.beta3 app/helpers/generic_work_helper.rb
sufia-7.0.0.beta2 app/helpers/generic_work_helper.rb
sufia-7.0.0.beta1 app/helpers/generic_work_helper.rb