Skip to content

Commit

Permalink
hotfix: primo api updates (v1.25.2.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkinzer committed Mar 6, 2024
1 parent 8fdcbbc commit a585202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/blacklight/primo_central/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def facet_segments(field, min, max, values)
first = boundaries[index]
last = boundaries[index + 1].to_i - 1
count = values.select { |f| f[:value] >= first && f[:value] <= last }
.map { |f| f[:count] }
.map { |f| f[:count].to_i }
.reduce(0, &:+)

segments << { from: first, to: last, count: count }
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/primo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Primo.configure do |config|
config.apikey = ENV["PRIMO_API_KEY"] || Rails.configuration.bento&.dig(:primo, :apikey)
config.context = :PC
config.vid = "TULI"
config.scope = "pci_scope"
config.vid = "01TULI_INST:TULI"
config.scope = "CentralIndex"
config.enable_loggable = true
config.enable_log_requests = true
config.timeout = Rails.configuration.bento&.dig(:primo, :timeout) || 10
Expand Down

0 comments on commit a585202

Please sign in to comment.