diff --git a/Gemfile b/Gemfile index ad65f167..cae7199d 100644 --- a/Gemfile +++ b/Gemfile @@ -9,9 +9,6 @@ gem 'rails', '~> 5.2.8.1' gem "sqlite3", "~> 1.3.0" # Use pg as the production database for Active Record gem 'pg' -# Use sitemap -# See https://github.com/viseztrance/rails-sitemap -gem 'sitemap' # Use Passenger as the app server # Update this when we update the Passenger docker container base image version gem 'passenger', '6.0.17', require: "phusion_passenger/rack_handler" diff --git a/config/sitemap.rb b/config/sitemap.rb deleted file mode 100644 index 5c02484e..00000000 --- a/config/sitemap.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -Sitemap::Generator.instance.load(host: 'scholarspace.library.gwu.edu', protocol: 'https') do - path :root, priority: 1, change_frequency: 'weekly' - path :search_catalog, priority: 1, change_frequency: 'weekly' - - read_group = ActiveFedora.index_field_mapper.solr_name('read_access_group', :symbol) - GwWork.where(read_group => 'public').each do |f| - literal Rails.application.routes.url_helpers.hyrax_gw_work_path(f, action: 'show'), - priority: 1, change_frequency: 'weekly' - end - GwEtd.where(read_group => 'public').each do |f| - literal Rails.application.routes.url_helpers.hyrax_gw_etd_path(f, action: 'show'), - priority: 1, change_frequency: 'weekly' - end -end