Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

simple maintenance page for SDR #487

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
119 changes: 61 additions & 58 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,63 +1,66 @@
Rails.application.routes.draw do
root to: 'catalog#home'
get 'catalog' => 'catalog#index', :as => :catalog_index
root to: redirect('/maintenance/index.html')
get "*path", to: redirect('/maintenance/index.html')

devise_for :users, skip: [:registrations, :passwords, :sessions]
devise_scope :user do
get 'webauth/login' => 'login#login', as: :new_user_session
match 'webauth/logout' => 'devise/sessions#destroy', :as => :destroy_user_session, :via => Devise.mappings[:user].sign_out_via
end

# Actions to advance Collections through the Hydrus process.
post 'collections/open/:id' => 'hydrus_collections#open', :as => 'open_collection'
post 'collections/close/:id' => 'hydrus_collections#close', :as => 'close_collection'
get 'collections/list_all' => 'hydrus_collections#list_all', :as => 'list_all'

# Actions to advance Items through the Hydrus process.
post 'items/publish_directly/:id' => 'hydrus_items#publish_directly', :as => 'publish_directly_item'
post 'items/submit_for_approval/:id' => 'hydrus_items#submit_for_approval', :as => 'submit_for_approval_item'
post 'items/approve/:id' => 'hydrus_items#approve', :as => 'approve_item'
post 'items/disapprove/:id' => 'hydrus_items#disapprove', :as => 'disapprove_item'
post 'items/open_new_version/:id' => 'hydrus_items#open_new_version', :as => 'open_new_version_item'
post 'items/resubmit/:id' => 'hydrus_items#resubmit', :as => 'resubmit_item'
post 'items/send_purl_email' => 'hydrus_items#send_purl_email', :as => 'send_purl_email'
get 'items/discard_confirmation/:id' => 'hydrus_items#discard_confirmation', :as => 'discard_item_confirmation'
get 'collections/discard_confirmation/:id' => 'hydrus_collections#discard_confirmation', :as => 'discard_collection_confirmation'

resources :collections, controller: 'hydrus_collections', as: 'hydrus_collections' do
resources :events, only: :index
resources :datastreams, only: :index
resources :items, only: :index, controller: 'hydrus_items'
end

resources :items, controller: 'hydrus_items', as: 'hydrus_items', only: [:show, :edit, :update, :new, :create, :destroy] do
resources :events, only: :index
resources :datastreams, only: :index
get 'terms_of_deposit', as: 'terms_of_deposit', on: :collection
get 'agree_to_terms_of_deposit', as: 'agree_to_terms_of_deposit', on: :collection
end

resource :contact

resources :admin_policy_objects, controller: 'hydrus_admin_policy_objects', as: 'hydrus_admin_policy_objects' do
resources :datastreams, only: :index
end

get 'items/:id/destroy_value' => 'hydrus_items#destroy_value', :as => 'destroy_hydrus_item_value'
post 'items/:id/create_file' => 'hydrus_items#create_file', :as => 'create_hydrus_item_file'
get 'items/:id/destroy_file' => 'hydrus_items#destroy_file', :as => 'destroy_hydrus_item_file'
get 'collections/:id/destroy_value' => 'hydrus_collections#destroy_value', :as => 'destroy_hydrus_collection_value'

# Actions for the HydrusSolrController.
get 'hydrus_solr/reindex/:id' => 'hydrus_solr#reindex' # NOTE: It's not clear that anything is using this.
get 'hydrus_solr/delete_from_index/:id' => 'hydrus_solr#delete_from_index' # NOTE: It's not clear that anything is using this.
match 'dor/reindex/:id' => 'hydrus_solr#reindex', :as => 'reindex', via: [:get, :post, :put]
match 'dor/delete_from_index/:id' => 'hydrus_solr#delete_from_index', :as => 'delete_from_index', via: [:get, :post]

# Action to get an uploaded file
constraints filename: %r{[^/]+} do
get '/file/:id/:filename' => 'object_files#show', :as => 'file_upload'
end
# root to: 'catalog#home'
# get 'catalog' => 'catalog#index', :as => :catalog_index
#
# devise_for :users, skip: [:registrations, :passwords, :sessions]
# devise_scope :user do
# get 'webauth/login' => 'login#login', as: :new_user_session
# match 'webauth/logout' => 'devise/sessions#destroy', :as => :destroy_user_session, :via => Devise.mappings[:user].sign_out_via
# end
#
# # Actions to advance Collections through the Hydrus process.
# post 'collections/open/:id' => 'hydrus_collections#open', :as => 'open_collection'
# post 'collections/close/:id' => 'hydrus_collections#close', :as => 'close_collection'
# get 'collections/list_all' => 'hydrus_collections#list_all', :as => 'list_all'
#
# # Actions to advance Items through the Hydrus process.
# post 'items/publish_directly/:id' => 'hydrus_items#publish_directly', :as => 'publish_directly_item'
# post 'items/submit_for_approval/:id' => 'hydrus_items#submit_for_approval', :as => 'submit_for_approval_item'
# post 'items/approve/:id' => 'hydrus_items#approve', :as => 'approve_item'
# post 'items/disapprove/:id' => 'hydrus_items#disapprove', :as => 'disapprove_item'
# post 'items/open_new_version/:id' => 'hydrus_items#open_new_version', :as => 'open_new_version_item'
# post 'items/resubmit/:id' => 'hydrus_items#resubmit', :as => 'resubmit_item'
# post 'items/send_purl_email' => 'hydrus_items#send_purl_email', :as => 'send_purl_email'
# get 'items/discard_confirmation/:id' => 'hydrus_items#discard_confirmation', :as => 'discard_item_confirmation'
# get 'collections/discard_confirmation/:id' => 'hydrus_collections#discard_confirmation', :as => 'discard_collection_confirmation'
#
# resources :collections, controller: 'hydrus_collections', as: 'hydrus_collections' do
# resources :events, only: :index
# resources :datastreams, only: :index
# resources :items, only: :index, controller: 'hydrus_items'
# end
#
# resources :items, controller: 'hydrus_items', as: 'hydrus_items', only: [:show, :edit, :update, :new, :create, :destroy] do
# resources :events, only: :index
# resources :datastreams, only: :index
# get 'terms_of_deposit', as: 'terms_of_deposit', on: :collection
# get 'agree_to_terms_of_deposit', as: 'agree_to_terms_of_deposit', on: :collection
# end
#
# resource :contact
#
# resources :admin_policy_objects, controller: 'hydrus_admin_policy_objects', as: 'hydrus_admin_policy_objects' do
# resources :datastreams, only: :index
# end
#
# get 'items/:id/destroy_value' => 'hydrus_items#destroy_value', :as => 'destroy_hydrus_item_value'
# post 'items/:id/create_file' => 'hydrus_items#create_file', :as => 'create_hydrus_item_file'
# get 'items/:id/destroy_file' => 'hydrus_items#destroy_file', :as => 'destroy_hydrus_item_file'
# get 'collections/:id/destroy_value' => 'hydrus_collections#destroy_value', :as => 'destroy_hydrus_collection_value'
#
# # Actions for the HydrusSolrController.
# get 'hydrus_solr/reindex/:id' => 'hydrus_solr#reindex' # NOTE: It's not clear that anything is using this.
# get 'hydrus_solr/delete_from_index/:id' => 'hydrus_solr#delete_from_index' # NOTE: It's not clear that anything is using this.
# match 'dor/reindex/:id' => 'hydrus_solr#reindex', :as => 'reindex', via: [:get, :post, :put]
# match 'dor/delete_from_index/:id' => 'hydrus_solr#delete_from_index', :as => 'delete_from_index', via: [:get, :post]
#
# # Action to get an uploaded file
# constraints filename: %r{[^/]+} do
# get '/file/:id/:filename' => 'object_files#show', :as => 'file_upload'
# end

get '/404', to: 'exceptions#render_404'
get '/500', to: 'exceptions#render_500'
Expand Down
75 changes: 75 additions & 0 deletions public/maintenance/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html class="js" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Stanford Digital Repository - Maintenance Ongoing</title>
<link rel="stylesheet" media="all" href="maintain/temp.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body id="catalog-home">
<div id="wrapper">
<div id="sul-wrapper">
<div id="container" class="container">
<header id="header">
<div class="row">
<div class="col-md-6" id="branding">
<a class="img-link" href="http://library.stanford.edu/"><img src="maintain/sul.png"></a>
</div>
</div>
</header>


<h1>Stanford Digital Repository – Maintenance</h1>

<div class="row">
<div class="col-sm-12" id="main"><div id="content">

<div class="row">
<div class="col-sm-7" id="home_text">
<p class="homepage-intro">
Due to network maintenance at Stanford, the SDR is currently unavailable for use from Wednesday November 25 - Sunday November 29. We expect to restore service early Monday morning November 30.
</p>
</div>
<div class="col-sm-4 col-sm-offset-1 promotion">


<div class="jumbotron">
<h3><a href="http://searchworks.stanford.edu/?f%5Bcollection_type%5D%5B%5D=Digital+Collection">Find SDR Deposits</a></h3>
<p>using SearchWorks</p>
</div>

<ul>
<li>
<span class="info-prefix">»</span>
<a href="http://library.stanford.edu/research/data-management-services/data-management-plans">Data Management Plans and SDR</a>
</li>
<li>
<span class="info-prefix">»</span>
<a href="http://library.stanford.edu/sdr">SDR Services information web site</a>
</li>
</ul>

</div>
</div>



</div></div>
</div>


</div>
</div>
<footer>
<img class="hidden-phone footer-logo" src="maintain/stanford.png">
<div id="footer-links">
<a href="http://www.stanford.edu/">Stanford University Home</a> <a href="http://visit.stanford.edu/plan/maps.html">Maps &amp; Directions</a> <a href="http://www.stanford.edu/search/">Search Stanford</a> <a href="http://www.stanford.edu/site/terms.html">Terms of Use</a> <a href="http://www.stanford.edu/site/copyright.html">Copyright Complaints</a><br>
<span>© Stanford University, Stanford, California 94305. (650) 723-2300</span>
</div>


</a></footer></div>


</a></body></html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/maintenance/maintain/stanford.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/maintenance/maintain/sul.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/maintenance/maintain/temp.css

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.