diff --git a/app/controllers/learning_objects_controller.rb b/app/controllers/learning_objects_controller.rb index 00b0c1bad5795f0da57f43aa8be30eeee4d32de0..a218daef42faaa98cfd6c509cfef648088a168bc 100644 --- a/app/controllers/learning_objects_controller.rb +++ b/app/controllers/learning_objects_controller.rb @@ -82,11 +82,9 @@ class LearningObjectsController < ApplicationController end def download - #@learning_object.download current_user - # dspace = DspaceService.create_client - # - # return send_file dspace.bitstreams.retrieve(id: @learning_object.default_attachment.id_dspace) if 1 == @learning_object.attachments.count + @learning_object.download current_user + redirect_to @learning_object.retrieve_link end # POST /learning_objects/1/bookmarks