Skip to content

Commit

Permalink
renamed CATALOG_SOLR to BROWSE_SOLR
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Sep 11, 2023
1 parent a74c268 commit 89f2a31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BIBLIO_SOLR='http://biblio-server/solr'
CATALOG_SOLR='http://catalog-solr-server/solr'
BROWSE_SOLR='http://catalog-solr-server/solr'
CALLNUMBERS_CORE='callnumbers'
AUTHORS_CORE='authors'
2 changes: 1 addition & 1 deletion lib/utilities/browse_solr_client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "faraday"

class BrowseSolrClient
def initialize(solr_url: ENV.fetch("CATALOG_SOLR"), core: ENV.fetch("CALLNUMBERS_CORE"), match_field: "callnumber", q: "*:*")
def initialize(solr_url: ENV.fetch("BROWSE_SOLR"), core: ENV.fetch("CALLNUMBERS_CORE"), match_field: "callnumber", q: "*:*")
@conn = Faraday.new(
url: solr_url
) do |f|
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def stub_solr_get_request(url:, output: "{}", status: 200, query: nil, no_return
}
req_attributes[:query] = query unless query.nil?
resp = {headers: {content_type: "application/json"}, status: status, body: output}
req = stub_request(:get, "#{ENV["CATALOG_SOLR"]}/#{url}").with(**req_attributes)
req = stub_request(:get, "#{ENV["BROWSE_SOLR"]}/#{url}").with(**req_attributes)

if no_return.nil?
req.to_return(**resp)
Expand Down

0 comments on commit 89f2a31

Please sign in to comment.