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