Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hack-fix-proxy-links'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Lown committed Jun 22, 2020
2 parents ca7d729 + 62474ad commit cc16353
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/models/concerns/solr_document_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ module SolrDocumentBehavior
send(:include, RequestItem)
send(:include, SmsFieldMapping)
send(:include, Syndetics)

def urls
@urls ||= deserialized_urls.each do |url|
url[:href] = fix_old_proxy(url[:href])
end
end

def fix_old_proxy(url)
url.gsub('//proxy.lib.duke.edu/', '//login.proxy.lib.duke.edu/')
end
end

def rubenstein_record?
Expand Down
2 changes: 1 addition & 1 deletion lib/dul_argon_skin/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module DulArgonSkin
VERSION = '1.6.10'
VERSION = '1.6.11'
end

0 comments on commit cc16353

Please sign in to comment.