Skip to content

Commit

Permalink
remove dogbiscuit crossover, fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Sep 21, 2023
1 parent 649ce6f commit 3f22a33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,16 @@ def self.uploaded_field
# handler defaults, or have no facets.
config.add_facet_fields_to_solr_request!

# Prior to this change, the applications specific translations were not loaded. Dogbiscuits were assuming the translations were already loaded.
Rails.root.glob("config/locales/*.yml").each do |path|
I18n.load_path << path.to_s
end
I18n.backend.reload!
index_props = DogBiscuits.config.index_properties.collect do |prop|
{ prop => index_options(prop, DogBiscuits.config.property_mappings[prop]) }
end
add_index_field config, index_props
# TODO ROB
# # Prior to this change, the applications specific translations were not loaded. Dogbiscuits were assuming the translations were already loaded.
# Rails.root.glob("config/locales/*.yml").each do |path|
# I18n.load_path << path.to_s
# end
# I18n.backend.reload!
# index_props = DogBiscuits.config.index_properties.collect do |prop|
# { prop => index_options(prop, DogBiscuits.config.property_mappings[prop]) }
# end
# add_index_field config, index_props

# solr fields to be displayed in the show (single result) view
# The ordering of the field names is the order of the display
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Rails.application.routes.draw do # rubocop:disable Metrics/BlockLength
resources :identity_providers
concern :range_searchable, BlacklightRangeLimit::Routes::RangeSearchable.new
concern :iiif_search, BlacklightIiifSearch::Routes.new
concern :oai_provider, BlacklightOaiProvider::Routes.new

Expand Down

0 comments on commit 3f22a33

Please sign in to comment.