module DownloadsHelper
def list_downloadables( datastreams, mime_types=["application/pdf"])
result = "
"
datastreams.each_value do |ds|
result << "- "
result << link_to(ds.label, asset_downloads_path(ds.pid, :download_id=>ds.dsid))
# if editor?
# result << " #{ds.attributes["mimeType"]}"
# end
result << "
"
end
result << "
"
return result
end
end