diff --git a/app/assets/images/splash-logos/MolaLogo.png b/app/assets/images/splash-logos/MolaLogo.png index 0104fa7e..20955a5d 100644 Binary files a/app/assets/images/splash-logos/MolaLogo.png and b/app/assets/images/splash-logos/MolaLogo.png differ diff --git a/config/initializers/hyrax-doi.rb b/config/initializers/hyrax-doi.rb index 40b25765..2ef920e6 100644 --- a/config/initializers/hyrax-doi.rb +++ b/config/initializers/hyrax-doi.rb @@ -188,6 +188,12 @@ def initialize(builder: nil) def client Hyrax::DOI::DataCiteClient.new(username: self.username, password: self.password, prefix: self.prefix, mode: self.mode) end + + # Override Hyrax::DOI::DataCiteRegister.work_url to ensure that the url registered uses the tenant host + def work_url(work) + account_cname = work["account_cname_tesim"]&.first + Rails.application.routes.url_helpers.polymorphic_url(work, host: account_cname) + end end