Module: Sufia::DownloadsControllerBehavior

Extended by:
ActiveSupport::Concern
Includes:
Hydra::Controller::DownloadBehavior
Included in:
DownloadsController
Defined in:
lib/sufia/downloads_controller_behavior.rb

Instance Method Summary collapse

Instance Method Details

#datastream_nameObject


28
29
30
31
32
33
34
# File 'lib/sufia/downloads_controller_behavior.rb', line 28

def datastream_name
  if datastream.dsid == self.class.default_content_dsid
    params[:filename] || asset.label
  else
    params[:datastream_id]
  end
end