Sha256: 2b1ae1ee15e52082f30b3ba47e9a23b801953e88b5ab1aabb81ff12638abdd18
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
require 'deprecation' module Hydra module DownloadsHelperBehavior extend Deprecation self.deprecation_horizon = 'hydra-head 5.x' def list_downloadables( datastreams, mime_types=["application/pdf"]) result = "<ul>" datastreams.each_value do |ds| result << "<li>" result << link_to(ds.label, hydra_asset_downloads_path(ds.pid, :download_id=>ds.dsid)) result << "</li>" end result << "</ul>" return result end deprecation_deprecate :list_downloadables end end
Version data entries
4 entries across 4 versions & 1 rubygems