Skip to content

Commit

Permalink
Update mola logo (#516)
Browse files Browse the repository at this point in the history
* make sure everyone can write to /app/samvera/branding

* assert the host name for polymorphic_url to avoide url mix-ups

* new mola logo
  • Loading branch information
cziaarm authored Feb 8, 2024
1 parent f12b25c commit 0ae3920
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified app/assets/images/splash-logos/MolaLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions config/initializers/hyrax-doi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0ae3920

Please sign in to comment.