Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/thesis_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ def update
redirect_to thesis_confirm_path
end

def process_theses
def process_thesis
@thesis = Thesis.with_attached_files.includes([:departments, {
authors: [:user], degrees: [:degree_type]
}]).find(params[:id])
@other_theses_with_holds = @thesis.other_theses_with_holds.to_a
end

def process_theses_update
def process_thesis_update
thesis = Thesis.find(params[:id])
removed = deleted_file_list
params[:thesis][:files_complete] = false if removed.count.positive?
Expand Down
4 changes: 2 additions & 2 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def processor
can :deduplicate, Thesis
can :mark_downloaded, Thesis
can :mark_withdrawn, Thesis
can :process_theses, Thesis
can :process_theses_update, Thesis
can :process_thesis, Thesis
can :process_thesis_update, Thesis
can :publication_statuses, Thesis
can :publish_preview, Thesis
can :publish_to_dspace, Thesis
Expand Down
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
get 'thesis/confirm', to: 'thesis#confirm', as: 'thesis_confirm'
get 'thesis/deduplicate', to: 'thesis#deduplicate', as: 'thesis_deduplicate'
get 'thesis/publication_statuses', to: 'thesis#publication_statuses', as: 'thesis_publication_statuses'
get 'thesis/:id/process', to: 'thesis#process_theses', as: 'thesis_process'
patch 'thesis/:id/process', to: 'thesis#process_theses_update', as: 'thesis_process_update'
get 'thesis/:id/process', to: 'thesis#process_thesis', as: 'thesis_process'
patch 'thesis/:id/process', to: 'thesis#process_thesis_update', as: 'thesis_process_update'
get 'thesis/publish_preview', to: 'thesis#publish_preview', as: 'thesis_publish_preview'
get 'thesis/publish', to: 'thesis#publish_to_dspace', as: 'thesis_publish_to_dspace'
get 'thesis/select', to: 'thesis#select', as: 'thesis_select'
Expand Down