diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3833dd4d2..836c8145d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -15,12 +15,12 @@ RSpec/SubjectStub: # Offense count: 10 RSpec/LeadingSubject: Exclude: - - 'spec/controllers/sufia/generic_works_controller_spec.rb' + - 'spec/controllers/hyrax/generic_works_controller_spec.rb' - 'spec/helpers/admin_stats_helper_spec.rb' - 'spec/lib/active_job_tenant_spec.rb' - 'spec/lib/importer/factory/string_literal_processor_spec.rb' - 'spec/lib/stanford/importer/mods_parser_spec.rb' - - 'spec/presenters/sufia/generic_work_show_presenter_spec.rb' + - 'spec/presenters/hyrax/generic_work_show_presenter_spec.rb' - 'spec/services/create_account_spec.rb' - 'spec/services/iiif_thumbnail_path_service_spec.rb' - 'spec/services/solr_config_uploader_spec.rb' diff --git a/Gemfile b/Gemfile index 39fd5b150..9a6692fd3 100644 --- a/Gemfile +++ b/Gemfile @@ -60,7 +60,7 @@ end gem 'blacklight', '~> 6.7' -gem 'sufia', git: 'https://github.com/projecthydra/sufia.git', branch: 'cc_subtree' +gem 'hyrax', git: 'https://github.com/projecthydra-labs/hyrax.git' gem 'rsolr', '~> 1.1.2' gem 'devise' diff --git a/Gemfile.lock b/Gemfile.lock index 1771ba446..c2f77ddd2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,11 +7,10 @@ GIT activesupport (>= 4.0) GIT - remote: https://github.com/projecthydra/sufia.git - revision: eb5e3d416a4a9da2ea2f06498683a095d6c5c7cd - branch: cc_subtree + remote: https://github.com/projecthydra-labs/hyrax.git + revision: f9c6586a5a566bbb2b481cc934128cf69ade4cc1 specs: - sufia (8.0.0.alpha) + hyrax (0.0.1.alpha) active_attr (~> 0.9.0) active_fedora-noid (~> 2.0) almond-rails (~> 0.0.1) @@ -255,11 +254,11 @@ GEM dry-equalizer (~> 0.2) dry-types (~> 0.9, >= 0.9.0) ice_nine (~> 0.11) - dry-types (0.9.2) + dry-types (0.9.3) concurrent-ruby (~> 1.0) dry-configurable (~> 0.1) dry-container (~> 0.3) - dry-core (~> 0.2) + dry-core (~> 0.2, >= 0.2.1) dry-equalizer (~> 0.2) dry-logic (~> 0.4, >= 0.4.0) inflecto (~> 0.0.0, >= 0.0.2) @@ -462,7 +461,7 @@ GEM mime-types-data (~> 3.2015) mime-types-data (3.2016.0521) mimemagic (0.3.2) - mini_magick (4.5.1) + mini_magick (4.6.0) mini_portile2 (2.1.0) minitest (5.10.1) mods (2.1.0) @@ -778,6 +777,7 @@ DEPENDENCIES flipflop! fog-aws honeybadger (~> 2.0) + hyrax! iiif_manifest (~> 0.1.2) is_it_working jbuilder (~> 2.0) @@ -809,7 +809,6 @@ DEPENDENCIES simplecov solr_wrapper (~> 0.10) spring (~> 1.7) - sufia! turbolinks uglifier (>= 1.3.0) web-console (>= 3.3.0) diff --git a/app/actors/sufia/actors/generic_work_actor.rb b/app/actors/hyrax/actors/generic_work_actor.rb similarity index 61% rename from app/actors/sufia/actors/generic_work_actor.rb rename to app/actors/hyrax/actors/generic_work_actor.rb index 8fca206cb..3406a95bd 100644 --- a/app/actors/sufia/actors/generic_work_actor.rb +++ b/app/actors/hyrax/actors/generic_work_actor.rb @@ -1,8 +1,8 @@ # Generated via # `rails generate curation_concerns:work GenericWork` -module Sufia +module Hyrax module Actors - class GenericWorkActor < Sufia::Actors::BaseActor + class GenericWorkActor < Hyrax::Actors::BaseActor end end end diff --git a/app/actors/sufia/actors/image_actor.rb b/app/actors/hyrax/actors/image_actor.rb similarity index 61% rename from app/actors/sufia/actors/image_actor.rb rename to app/actors/hyrax/actors/image_actor.rb index 7b3d2b254..53da3a4df 100644 --- a/app/actors/sufia/actors/image_actor.rb +++ b/app/actors/hyrax/actors/image_actor.rb @@ -1,8 +1,8 @@ # Generated via # `rails generate curation_concerns:work Image` -module Sufia +module Hyrax module Actors - class ImageActor < Sufia::Actors::BaseActor + class ImageActor < Hyrax::Actors::BaseActor end end end diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 737cd0326..b44d1bbfa 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -21,7 +21,7 @@ // Required by Blacklight //= require blacklight/blacklight -//= require sufia +//= require hyrax //= require jquery.flot.pie //= require flot_graph //= require statistics_tab_manager diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 5e2fc0cf1..d21d90e9e 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -10,7 +10,7 @@ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * - *= require sufia + *= require hyrax *= require peek *= require peek/views/faraday *= require peek/views/performance_bar diff --git a/app/assets/stylesheets/sufia.scss b/app/assets/stylesheets/hyrax.scss similarity index 94% rename from app/assets/stylesheets/sufia.scss rename to app/assets/stylesheets/hyrax.scss index e594f3336..8bdf23cd5 100644 --- a/app/assets/stylesheets/sufia.scss +++ b/app/assets/stylesheets/hyrax.scss @@ -8,7 +8,7 @@ @import "bootstrap"; @import "blacklight/blacklight"; @import "font-awesome"; -@import "sufia/sufia"; +@import "hyrax/hyrax"; @import "hyku"; @import "accounts"; @import "viewer"; diff --git a/app/controllers/account_sign_up_controller.rb b/app/controllers/account_sign_up_controller.rb index 2b5b4f409..b7d98b846 100644 --- a/app/controllers/account_sign_up_controller.rb +++ b/app/controllers/account_sign_up_controller.rb @@ -4,7 +4,7 @@ class AccountSignUpController < ApplicationController # GET /accounts/new def new - add_breadcrumb t(:'sufia.controls.home'), root_path + add_breadcrumb t(:'hyrax.controls.home'), root_path add_breadcrumb 'New account', new_account_path end diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 70ea76c78..243064c38 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -8,9 +8,9 @@ class AccountsController < ApplicationController # GET /accounts.json def index authorize! :manage, Account - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.accounts'), accounts_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.accounts'), accounts_path end # GET /accounts/1 @@ -20,17 +20,17 @@ def show # GET /accounts/new def new - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.accounts'), accounts_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.accounts'), accounts_path add_breadcrumb 'New account', new_account_path end # GET /accounts/1/edit def edit - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.accounts'), accounts_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.accounts'), accounts_path add_breadcrumb @account.tenant, edit_account_path(@account) end diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index fe4652483..bd4e27aea 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -1,11 +1,11 @@ module Admin class UsersController < ApplicationController before_action :ensure_admin! - include Sufia::UsersControllerBehavior + include Hyrax::UsersControllerBehavior layout 'admin' def self.local_prefixes - ['sufia/users'] + ['hyrax/users'] end private diff --git a/app/controllers/appearances_controller.rb b/app/controllers/appearances_controller.rb index f626c7171..0a338d5ea 100644 --- a/app/controllers/appearances_controller.rb +++ b/app/controllers/appearances_controller.rb @@ -5,9 +5,9 @@ class AppearancesController < ApplicationController # GET /sites/appearances/edit def edit - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.appearance'), edit_site_appearances_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.appearance'), edit_site_appearances_path end # PATCH/PUT /sites/1 diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1fbd5ee52..9bc238a5e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -10,10 +10,10 @@ class ApplicationController < ActionController::Base include Blacklight::Controller include Hydra::Controller::ControllerBehavior - # Adds Sufia behaviors into the application controller - include Sufia::Controller + # Adds Hyrax behaviors into the application controller + include Hyrax::Controller - include Sufia::ThemedLayoutController + include Hyrax::ThemedLayoutController with_themed_layout '1_column' helper_method :peek_enabled?, :current_account diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index c9c474886..403257353 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -27,7 +27,7 @@ def self.modified_field config.advanced_search[:query_parser] ||= 'dismax' config.advanced_search[:form_solr_parameters] ||= {} - config.search_builder_class = Sufia::CatalogSearchBuilder + config.search_builder_class = Hyrax::CatalogSearchBuilder # Show gallery view config.view.gallery.partials = [:index_header, :index] diff --git a/app/controllers/content_blocks_controller.rb b/app/controllers/content_blocks_controller.rb index b24dc0d53..1f4ca13cb 100644 --- a/app/controllers/content_blocks_controller.rb +++ b/app/controllers/content_blocks_controller.rb @@ -5,9 +5,9 @@ class ContentBlocksController < ApplicationController # GET /sites/1/edit def edit - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.content_blocks'), edit_site_content_blocks_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.content_blocks'), edit_site_content_blocks_path end # PATCH/PUT /sites/1 diff --git a/app/controllers/sufia/file_sets_controller.rb b/app/controllers/hyrax/file_sets_controller.rb similarity index 51% rename from app/controllers/sufia/file_sets_controller.rb rename to app/controllers/hyrax/file_sets_controller.rb index cdff11637..f642a9e6b 100644 --- a/app/controllers/sufia/file_sets_controller.rb +++ b/app/controllers/hyrax/file_sets_controller.rb @@ -1,7 +1,7 @@ -module Sufia +module Hyrax class FileSetsController < ApplicationController - include Sufia::FileSetsControllerBehavior - include Sufia::FileSetsControllerBehavior + include Hyrax::FileSetsControllerBehavior + include Hyrax::FileSetsControllerBehavior self.show_presenter = Hyku::FileSetPresenter end end diff --git a/app/controllers/sufia/generic_works_controller.rb b/app/controllers/hyrax/generic_works_controller.rb similarity index 69% rename from app/controllers/sufia/generic_works_controller.rb rename to app/controllers/hyrax/generic_works_controller.rb index 168231d12..19ed0e3af 100644 --- a/app/controllers/sufia/generic_works_controller.rb +++ b/app/controllers/hyrax/generic_works_controller.rb @@ -1,12 +1,12 @@ require 'iiif_manifest' -module Sufia +module Hyrax class GenericWorksController < ApplicationController - include Sufia::CurationConcernController - # Adds Sufia behaviors to the controller. - include Sufia::WorksControllerBehavior + include Hyrax::CurationConcernController + # Adds Hyrax behaviors to the controller. + include Hyrax::WorksControllerBehavior self.curation_concern_type = GenericWork - self.show_presenter = Sufia::GenericWorkShowPresenter + self.show_presenter = Hyrax::GenericWorkShowPresenter skip_load_and_authorize_resource only: :manifest diff --git a/app/controllers/sufia/images_controller.rb b/app/controllers/hyrax/images_controller.rb similarity index 52% rename from app/controllers/sufia/images_controller.rb rename to app/controllers/hyrax/images_controller.rb index c88bfe87e..bdf8ed525 100644 --- a/app/controllers/sufia/images_controller.rb +++ b/app/controllers/hyrax/images_controller.rb @@ -1,11 +1,11 @@ # Generated via # `rails generate curation_concerns:work Image` -module Sufia +module Hyrax class ImagesController < ApplicationController - include Sufia::CurationConcernController - # Adds Sufia behaviors to the controller. - include Sufia::WorksControllerBehavior + include Hyrax::CurationConcernController + # Adds Hyrax behaviors to the controller. + include Hyrax::WorksControllerBehavior self.curation_concern_type = Image end diff --git a/app/controllers/labels_controller.rb b/app/controllers/labels_controller.rb index 560fbca62..80139309f 100644 --- a/app/controllers/labels_controller.rb +++ b/app/controllers/labels_controller.rb @@ -5,9 +5,9 @@ class LabelsController < ApplicationController # GET /sites/1/edit def edit - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.labels'), edit_site_labels_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.labels'), edit_site_labels_path end # PATCH/PUT /sites/1 diff --git a/app/controllers/mailbox_controller.rb b/app/controllers/mailbox_controller.rb index d82a5b5f8..c1a528361 100644 --- a/app/controllers/mailbox_controller.rb +++ b/app/controllers/mailbox_controller.rb @@ -1,4 +1,4 @@ -require File.join(Sufia::Engine.paths['app/controllers'].first, 'mailbox_controller.rb') +require File.join(Hyrax::Engine.paths['app/controllers'].first, 'mailbox_controller.rb') class MailboxController layout 'admin' diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 3014b6740..42ac85f7d 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -11,9 +11,9 @@ class RolesController < ApplicationController def index @users = @users.where(guest: false) - add_breadcrumb t(:'sufia.controls.home'), root_path - add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path - add_breadcrumb t(:'sufia.admin.sidebar.roles_and_permissions'), site_roles_path + add_breadcrumb t(:'hyrax.controls.home'), root_path + add_breadcrumb t(:'hyrax.toolbar.admin.menu'), hyrax.admin_path + add_breadcrumb t(:'hyrax.admin.sidebar.roles_and_permissions'), site_roles_path end def update diff --git a/app/controllers/transfers_controller.rb b/app/controllers/transfers_controller.rb index 0f6881725..e057446bf 100644 --- a/app/controllers/transfers_controller.rb +++ b/app/controllers/transfers_controller.rb @@ -1,5 +1,5 @@ class TransfersController < ApplicationController - include Sufia::TransfersControllerBehavior + include Hyrax::TransfersControllerBehavior layout 'admin' end diff --git a/app/forms/sufia/generic_work_form.rb b/app/forms/hyrax/generic_work_form.rb similarity index 75% rename from app/forms/sufia/generic_work_form.rb rename to app/forms/hyrax/generic_work_form.rb index fc17fccb5..27e95b7fc 100644 --- a/app/forms/sufia/generic_work_form.rb +++ b/app/forms/hyrax/generic_work_form.rb @@ -1,7 +1,7 @@ # Generated via # `rails generate curation_concerns:work GenericWork` -module Sufia - class GenericWorkForm < Sufia::Forms::WorkForm +module Hyrax + class GenericWorkForm < Hyrax::Forms::WorkForm self.model_class = ::GenericWork include HydraEditor::Form::Permissions self.terms += [:resource_type] diff --git a/app/forms/sufia/image_form.rb b/app/forms/hyrax/image_form.rb similarity index 71% rename from app/forms/sufia/image_form.rb rename to app/forms/hyrax/image_form.rb index 91d601292..1bd92d30c 100644 --- a/app/forms/sufia/image_form.rb +++ b/app/forms/hyrax/image_form.rb @@ -1,7 +1,7 @@ # Generated via # `rails generate curation_concerns:work Image` -module Sufia - class ImageForm < Sufia::Forms::WorkForm +module Hyrax + class ImageForm < Hyrax::Forms::WorkForm self.model_class = ::Image self.terms += [:resource_type] end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3e6a2862e..1ad8469dd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,5 +1,5 @@ module ApplicationHelper - include ::SufiaHelper + include ::HyraxHelper include ContentBlockHelper def nav_link(href) diff --git a/app/helpers/content_block_helper.rb b/app/helpers/content_block_helper.rb index 596979645..f0e66f6ef 100644 --- a/app/helpers/content_block_helper.rb +++ b/app/helpers/content_block_helper.rb @@ -1,7 +1,7 @@ module ContentBlockHelper - include Sufia::ContentBlockHelperBehavior + include Hyrax::ContentBlockHelperBehavior - # This is like editable_content_block in sufia, but it doesn't allow editing + # This is like editable_content_block in hyrax, but it doesn't allow editing # rubocop:disable Rails/OutputSafety def displayable_content_block(content_block, **options) return if content_block.value.blank? diff --git a/app/helpers/sufia_helper.rb b/app/helpers/hyrax_helper.rb similarity index 78% rename from app/helpers/sufia_helper.rb rename to app/helpers/hyrax_helper.rb index b2e326b16..0fc4439b8 100644 --- a/app/helpers/sufia_helper.rb +++ b/app/helpers/hyrax_helper.rb @@ -1,7 +1,7 @@ -module SufiaHelper +module HyraxHelper include ::BlacklightHelper - include Sufia::BlacklightOverride - include Sufia::SufiaHelperBehavior + include Hyrax::BlacklightOverride + include Hyrax::HyraxHelperBehavior def application_name Site.application_name || super diff --git a/app/indexers/file_set_indexer.rb b/app/indexers/file_set_indexer.rb index 4075a1f88..f83d0fe2b 100644 --- a/app/indexers/file_set_indexer.rb +++ b/app/indexers/file_set_indexer.rb @@ -1,3 +1,3 @@ -class FileSetIndexer < Sufia::FileSetIndexer +class FileSetIndexer < Hyrax::FileSetIndexer self.thumbnail_path_service = IIIFThumbnailPathService end diff --git a/app/indexers/work_indexer.rb b/app/indexers/work_indexer.rb index de29a0969..9b979d868 100644 --- a/app/indexers/work_indexer.rb +++ b/app/indexers/work_indexer.rb @@ -1,3 +1,3 @@ -class WorkIndexer < Sufia::WorkIndexer +class WorkIndexer < Hyrax::WorkIndexer self.thumbnail_path_service = IIIFThumbnailPathService end diff --git a/app/models/ability.rb b/app/models/ability.rb index 3283df267..d17d491cd 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -1,6 +1,6 @@ class Ability include Hydra::Ability - include Sufia::Ability + include Hyrax::Ability self.ability_logic += [:everyone_can_create_curation_concerns, :superadmin_permissions] diff --git a/app/models/collection.rb b/app/models/collection.rb index 502da71bc..889ea65fc 100644 --- a/app/models/collection.rb +++ b/app/models/collection.rb @@ -1,6 +1,6 @@ # Generated by curation_concerns:models:install class Collection < ActiveFedora::Base - include ::Sufia::CollectionBehavior + include ::Hyrax::CollectionBehavior # You can replace these metadata if they're not suitable - include Sufia::BasicMetadata + include Hyrax::BasicMetadata end diff --git a/app/models/content_block.rb b/app/models/content_block.rb index 50ecf7be4..2f7e7ee8e 100644 --- a/app/models/content_block.rb +++ b/app/models/content_block.rb @@ -1,4 +1,4 @@ class ContentBlock < ActiveRecord::Base - include Sufia::ContentBlockBehavior + include Hyrax::ContentBlockBehavior include Hyku::ContentBlockBehavior end diff --git a/app/models/file_set.rb b/app/models/file_set.rb index e1baed317..facf5f58f 100644 --- a/app/models/file_set.rb +++ b/app/models/file_set.rb @@ -1,6 +1,6 @@ # Generated by curation_concerns:models:install class FileSet < ActiveFedora::Base - include ::Sufia::FileSetBehavior - include Sufia::FileSetBehavior + include ::Hyrax::FileSetBehavior + include Hyrax::FileSetBehavior self.indexer = FileSetIndexer end diff --git a/app/models/generic_work.rb b/app/models/generic_work.rb index 06e87ecb7..3463e91b3 100644 --- a/app/models/generic_work.rb +++ b/app/models/generic_work.rb @@ -1,7 +1,7 @@ class GenericWork < ActiveFedora::Base - include ::Sufia::WorkBehavior - include ::Sufia::BasicMetadata - include Sufia::WorkBehavior + include ::Hyrax::WorkBehavior + include ::Hyrax::BasicMetadata + include Hyrax::WorkBehavior validates :title, presence: { message: 'Your work must have a title.' } self.indexer = WorkIndexer diff --git a/app/models/image.rb b/app/models/image.rb index 99c3e7f94..84e8852c1 100644 --- a/app/models/image.rb +++ b/app/models/image.rb @@ -1,9 +1,9 @@ # Generated via # `rails generate curation_concerns:work Image` class Image < ActiveFedora::Base - include ::Sufia::WorkBehavior - include ::Sufia::BasicMetadata - include Sufia::WorkBehavior + include ::Hyrax::WorkBehavior + include ::Hyrax::BasicMetadata + include Hyrax::WorkBehavior self.human_readable_type = 'Image' # Change this to restrict which works can be added as a child. # self.valid_child_concerns = [] diff --git a/app/models/redis_endpoint.rb b/app/models/redis_endpoint.rb index dbf6a1e23..53f50ec4d 100644 --- a/app/models/redis_endpoint.rb +++ b/app/models/redis_endpoint.rb @@ -2,12 +2,12 @@ class RedisEndpoint < Endpoint store :options, accessors: [:namespace] def switch! - Sufia.config.redis_namespace = options[:namespace] + Hyrax.config.redis_namespace = options[:namespace] end # Reset the Redis namespace back to the default value def reset! - Sufia.config.redis_namespace = Settings.redis.default_namespace + Hyrax.config.redis_namespace = Settings.redis.default_namespace end def ping @@ -19,6 +19,6 @@ def ping private def redis_instance - Sufia::RedisEventStore.instance + Hyrax::RedisEventStore.instance end end diff --git a/app/models/search_builder.rb b/app/models/search_builder.rb index 693ab0171..9939502a3 100644 --- a/app/models/search_builder.rb +++ b/app/models/search_builder.rb @@ -2,5 +2,5 @@ class SearchBuilder < Blacklight::SearchBuilder include Blacklight::Solr::SearchBuilderBehavior include Hydra::AccessControlsEnforcement - include Sufia::SearchFilters + include Hyrax::SearchFilters end diff --git a/app/models/solr_document.rb b/app/models/solr_document.rb index 6c35888cc..ac32aa832 100644 --- a/app/models/solr_document.rb +++ b/app/models/solr_document.rb @@ -3,10 +3,10 @@ class SolrDocument include Blacklight::Solr::Document include Blacklight::Gallery::OpenseadragonSolrDocument - # Adds Sufia behaviors to the SolrDocument. - include Sufia::SolrDocumentBehavior - # Adds Sufia behaviors to the SolrDocument. - include Sufia::SolrDocumentBehavior + # Adds Hyrax behaviors to the SolrDocument. + include Hyrax::SolrDocumentBehavior + # Adds Hyrax behaviors to the SolrDocument. + include Hyrax::SolrDocumentBehavior # self.unique_key = 'id' diff --git a/app/models/user.rb b/app/models/user.rb index 0a0ee0241..73ef1cf42 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -3,10 +3,10 @@ class User < ActiveRecord::Base # Connects this user object to Hydra behaviors. include Hydra::User # Connects this user object to Curation Concerns behaviors. - include Sufia::User - # Connects this user object to Sufia behaviors. - include Sufia::User - include Sufia::UserUsageStats + include Hyrax::User + # Connects this user object to Hyrax behaviors. + include Hyrax::User + include Hyrax::UserUsageStats attr_accessible :email, :password, :password_confirmation if Blacklight::Utils.needs_attr_accessible? # Connects this user object to Blacklights Bookmarks. diff --git a/app/presenters/hyku/file_set_presenter.rb b/app/presenters/hyku/file_set_presenter.rb index bbc48aa69..98d4d5c33 100644 --- a/app/presenters/hyku/file_set_presenter.rb +++ b/app/presenters/hyku/file_set_presenter.rb @@ -1,5 +1,5 @@ module Hyku - class FileSetPresenter < Sufia::FileSetPresenter + class FileSetPresenter < Hyrax::FileSetPresenter include DisplaysImage end end diff --git a/app/presenters/sufia/generic_work_show_presenter.rb b/app/presenters/hyrax/generic_work_show_presenter.rb similarity index 78% rename from app/presenters/sufia/generic_work_show_presenter.rb rename to app/presenters/hyrax/generic_work_show_presenter.rb index 31b54b1ed..5aec1bf8c 100644 --- a/app/presenters/sufia/generic_work_show_presenter.rb +++ b/app/presenters/hyrax/generic_work_show_presenter.rb @@ -1,5 +1,5 @@ -module Sufia - class GenericWorkShowPresenter < Sufia::WorkShowPresenter +module Hyrax + class GenericWorkShowPresenter < Hyrax::WorkShowPresenter self.file_presenter_class = Hyku::FileSetPresenter def manifest_url diff --git a/app/services/iiif_thumbnail_path_service.rb b/app/services/iiif_thumbnail_path_service.rb index 7fc9c75d6..79777106b 100644 --- a/app/services/iiif_thumbnail_path_service.rb +++ b/app/services/iiif_thumbnail_path_service.rb @@ -1,4 +1,4 @@ -class IIIFThumbnailPathService < Sufia::WorkThumbnailPathService +class IIIFThumbnailPathService < Hyrax::WorkThumbnailPathService class << self protected diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb index 0e0379bbe..324ee5c3f 100644 --- a/app/views/accounts/index.html.erb +++ b/app/views/accounts/index.html.erb @@ -1,5 +1,5 @@ <% content_for :page_header do %> -