-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i3232: Remove basic search bar and sort results from numismatics page
- Loading branch information
1 parent
f67f5ee
commit 3b7bc0c
Showing
9 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
<div class="sort-buttons pull-left"> | ||
<% sort_fields = active_sort_fields.values.map { |field_config| [sort_field_label(field_config.key), field_config.key] } %> | ||
<%= label_tag(:sort, t('blacklight.advanced_search.form.sort_label'), :class => "control-label") %> | ||
<%= select_tag(:sort, options_for_select(sort_fields, h(params[:sort])), :class => "sort-select") %> | ||
<%= hidden_field_tag(:search_field, blacklight_config.advanced_search[:url_key]) %> | ||
</div> | ||
|
||
<div class="submit-buttons pull-right"> | ||
<%= submit_tag t('blacklight.advanced_search.form.search_btn_html'), :class=>'btn btn-primary advanced-search-submit', :id => "advanced-search-submit" %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
require 'rails_helper' | ||
|
||
RSpec.describe 'Numismatics search form' do | ||
context 'when using the view components numismatics form' do | ||
before { allow(Flipflop).to_receive(:view_components_numismatics?).and_return(true) } | ||
end | ||
it 'does not display the basic search form' do | ||
visit '/numismatics' | ||
expect(page).not_to have_selector('.search-query-form') | ||
end | ||
|
||
context 'when using the original numismatics form' do | ||
before { allow(Flipflop).to_receive(:view_components_numismatics?).and_return(false) } | ||
end | ||
it 'does not display the basic search form' do | ||
visit '/numismatics' | ||
expect(page).not_to have_selector('.search-query-form') | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters