diff --git a/app/helpers/hyku_knapsack/application_helper.rb b/app/helpers/hyku_knapsack/application_helper.rb index 6bf92f0..80b31de 100644 --- a/app/helpers/hyku_knapsack/application_helper.rb +++ b/app/helpers/hyku_knapsack/application_helper.rb @@ -2,12 +2,5 @@ module HykuKnapsack module ApplicationHelper - def tenant_registered_curation_concern_types - if current_account.mobius? - MOBIUS_CONCERNS - else - Hyrax.config.registered_curation_concern_types - MOBIUS_CONCERNS - end - end end end diff --git a/app/models/account_decorator.rb b/app/models/account_decorator.rb index 74d241e..24b760d 100644 --- a/app/models/account_decorator.rb +++ b/app/models/account_decorator.rb @@ -20,10 +20,6 @@ module AccountDecorator truman webster ].freeze - - def mobius? - name.in?(MOBIUS_TENANTS) - end end Account.prepend(AccountDecorator) diff --git a/app/models/concerns/bulkrax/has_local_processing.rb b/app/models/concerns/bulkrax/has_local_processing.rb index 5e9592b..b6a80cb 100644 --- a/app/models/concerns/bulkrax/has_local_processing.rb +++ b/app/models/concerns/bulkrax/has_local_processing.rb @@ -6,8 +6,6 @@ module HasLocalProcessing # add any special processing here, for example to reset a metadata property # to add a custom property from outside of the import data def add_local - return unless Account.find_by(tenant: Apartment::Tenant.current).mobius? - remove_escape_character_from_values! remove_duplicates_from_identifier! diff --git a/app/models/site_decorator.rb b/app/models/site_decorator.rb deleted file mode 100644 index 4aa2911..0000000 --- a/app/models/site_decorator.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -# OVERRIDE Hyku to set tenants with appropriate works - -module SiteDecorator - def instance - return NilSite.instance if Account.global_tenant? - - first_or_create do |site| - account = Account.find_by(tenant: Apartment::Tenant.current) - if account.mobius? - site.available_works = MOBIUS_CONCERNS - else - site.available_works = Hyrax.config.registered_curation_concern_types - MOBIUS_CONCERNS - end - end - end -end - -Site.singleton_class.send(:prepend, SiteDecorator) diff --git a/app/views/admin/work_types/edit.html.erb b/app/views/admin/work_types/edit.html.erb deleted file mode 100644 index ba35cdf..0000000 --- a/app/views/admin/work_types/edit.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -<% provide :page_header do %> -