|
|
@ -26,7 +26,7 @@ class FilesController < ApplicationController
|
|
|
|
before_filter :authorize, :except => [:create,:getattachtype,:quote_resource_show,:search,:searchone4reload,:search_project,:quote_resource_show_project,
|
|
|
|
before_filter :authorize, :except => [:create,:getattachtype,:quote_resource_show,:search,:searchone4reload,:search_project,:quote_resource_show_project,
|
|
|
|
:search_tag_attachment,:subfield_upload_file,:search_org_subfield_tag_attachment,
|
|
|
|
:search_tag_attachment,:subfield_upload_file,:search_org_subfield_tag_attachment,
|
|
|
|
:search_tag_attachment,:quote_resource_show_org_subfield,:find_org_subfield_attache,
|
|
|
|
:search_tag_attachment,:quote_resource_show_org_subfield,:find_org_subfield_attache,
|
|
|
|
:search_files_in_subfield,:upload_files_menu,:file_hidden,:republish_file,:update_file_description]
|
|
|
|
:search_files_in_subfield,:upload_files_menu,:file_hidden,:republish_file,:update_file_description, :edit_file_description]
|
|
|
|
|
|
|
|
|
|
|
|
helper :sort
|
|
|
|
helper :sort
|
|
|
|
include SortHelper
|
|
|
|
include SortHelper
|
|
|
@ -981,6 +981,13 @@ class FilesController < ApplicationController
|
|
|
|
def upload_files_menu
|
|
|
|
def upload_files_menu
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def edit_file_description
|
|
|
|
|
|
|
|
@attachment = Attachment.find(params[:id])
|
|
|
|
|
|
|
|
@attachment.description = params[:file_description_edit]
|
|
|
|
|
|
|
|
@attachment.save
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def update_file_description
|
|
|
|
def update_file_description
|
|
|
|
@attachment = Attachment.find(params[:id])
|
|
|
|
@attachment = Attachment.find(params[:id])
|
|
|
|
@attachment.description = params[:description]
|
|
|
|
@attachment.description = params[:description]
|
|
|
|