Skip to content

Commit

Permalink
Remove barcode search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 17, 2024
1 parent c8ba7f5 commit 5084172
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 118 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ RSpec/SubjectStub:
Exclude:
- 'spec/components/access_panels/sfx_component_spec.rb'
- 'spec/controllers/concerns/callnumber_search_spec.rb'
- 'spec/models/barcode_search_spec.rb'
- 'spec/models/concerns/solr_set_spec.rb'
- 'spec/models/performance_alerts_spec.rb'
- 'spec/models/search_builder_spec.rb'
Expand Down
7 changes: 0 additions & 7 deletions app/controllers/barcode_controller.rb

This file was deleted.

33 changes: 0 additions & 33 deletions app/models/barcode_search.rb

This file was deleted.

2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
concern :marc_viewable, Blacklight::Marc::Routes::MarcViewable.new
concern :range_searchable, BlacklightRangeLimit::Routes::RangeSearchable.new

resources :barcode, only: :show

resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do
concerns :searchable
concerns :range_searchable
Expand Down
9 changes: 0 additions & 9 deletions config/solr_configs/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1070,15 +1070,6 @@
</lst>
</requestHandler>

<!-- barcode requests; use /barcode?q=1234567890 -->
<requestHandler name="/barcode" class="solr.SearchHandler" >
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="fl">id</str>
<str name="q">{!field f=barcode_search v=$n}</str>
</lst>
</requestHandler>

<!-- used to get consecutive terms for browsing -->
<searchComponent name="termsComp" class="solr.TermsComponent"/>
<requestHandler name="/alphaTerms" class="solr.SearchHandler">
Expand Down
26 changes: 0 additions & 26 deletions spec/controllers/barcode_controller_spec.rb

This file was deleted.

40 changes: 0 additions & 40 deletions spec/models/barcode_search_spec.rb

This file was deleted.

0 comments on commit 5084172

Please sign in to comment.