diff --git a/app/controllers/concerns/hyrax/works_controller_behavior.rb b/app/controllers/concerns/hyrax/works_controller_behavior.rb index 53855ff..b996b7b 100644 --- a/app/controllers/concerns/hyrax/works_controller_behavior.rb +++ b/app/controllers/concerns/hyrax/works_controller_behavior.rb @@ -76,6 +76,10 @@ def create def show @user_collections = user_collections + if user_signed_in? && (current_user.admin? || current_user.library_reviewers?) && @presenter.required_report_name.first != 'Not Required' + @required_report_base_due_date = RequiredReportDueDate.find_by(submission_id: @presenter.id)&.base_due_date.to_s + end + respond_to do |wants| wants.html { presenter && parent_presenter } wants.json do diff --git a/app/views/hyrax/base/show.html.erb b/app/views/hyrax/base/show.html.erb index aab2169..cb455f4 100644 --- a/app/views/hyrax/base/show.html.erb +++ b/app/views/hyrax/base/show.html.erb @@ -40,3 +40,16 @@ +<% if @required_report_base_due_date.present? %> + +<% end %>