Skip to content

Commit

Permalink
Merge pull request #399 from Minitex/reenable-transcript-search
Browse files Browse the repository at this point in the history
Reenable transcript search
  • Loading branch information
swandog30 authored Oct 10, 2024
2 parents 1680e99 + 26dc627 commit 5fc0346
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/controllers/advanced_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def index
###
# Temporarily excluded from advanced search. Remove
# next line to re-enable the transcript search input
field.include_in_advanced_search = false
# field.include_in_advanced_search = false
field.solr_parameters = { :'spellcheck.dictionary' => 'default' }
field.solr_local_parameters = {
qf: '$transcription_qf',
Expand Down
16 changes: 8 additions & 8 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,14 @@ def parse_referrer_pagination_params(query_string)
# when the advanced search form is submitted.
#
# Commenting out transcript until we have a good plan for transcript search results - PKS
#config.add_search_field('transcript') do |field|
# field.include_in_simple_search = false
# field.solr_parameters = { :'spellcheck.dictionary' => 'default' }
# field.solr_local_parameters = {
# qf: '$transcription_qf',
# pf: '$transcription_pf'
# }
#end
config.add_search_field('transcript') do |field|
field.include_in_simple_search = false
field.solr_parameters = { :'spellcheck.dictionary' => 'default' }
field.solr_local_parameters = {
qf: '$transcription_qf',
pf: '$transcription_pf'
}
end
config.add_search_field('description') do |field|
field.include_in_simple_search = false
field.solr_parameters = { :'spellcheck.dictionary' => 'default' }
Expand Down
3 changes: 1 addition & 2 deletions spec/features/advanced_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
solr_fixtures('sll:22470', 'otter:297', 'msn:2277', 'msn:2670', 'msn:2680')
end

xit 'can find a record by text contained in its transcript' do
pending 'Transcript is temporarily excluded from advanced search'
it 'can find a record by text contained in its transcript' do
visit '/'
click_link 'Advanced Search'
fill_in 'Transcript', with: '"fifty percent cut"'
Expand Down

0 comments on commit 5fc0346

Please sign in to comment.