Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3645 finish new numismatics form #3686

Merged
merged 3 commits into from
Aug 18, 2023

Conversation

sandbergja
Copy link
Member

Closes #3645

To review, make sure that the "View components numismatics" feature is enabled

@pulbot pulbot temporarily deployed to staging August 17, 2023 00:05 Inactive
@coveralls
Copy link

coveralls commented Aug 17, 2023

Coverage Status

coverage: 95.426% (+0.007%) from 95.419% when pulling e57be3f on i3645-numismatics-builtin-advanced-2 into 06342ec on main.

@@ -120,3 +120,13 @@
.row .range_limit input.range_begin, .row .range_limit input.range_end {
width: 5em;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing and improving some inline CSS from my previous PR

Comment on lines +40 to +51
<div class="search-submit-buttons clearfix col-sm-7">
<% if sort_fields_select %>
<div class="form-group sort-buttons pull-left">
<%= content_tag :label, t('blacklight.advanced_search.form.sort_label'), id: 'advanced-search-sort-label', for: 'sort', class: 'control-label' %>
<%= sort_fields_select %>
</div>
<% end %>
<div class="submit-buttons pull-right form-group">
<%= submit_tag t('blacklight.advanced_search.form.search_btn_html'), class: 'btn btn-primary advanced-search-submit', id: "advanced-search-submit" %>
</div>

</div>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the two elements that were missing from the form previously

@@ -33,13 +33,31 @@
allow(view_context).to receive(:facet_limit_for).and_return(nil)
end

it "renders fields in the correct order" do
it "renders all expected fields" do
Copy link
Member Author

@sandbergja sandbergja Aug 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "it" previously didn't accurately describe what was being tested

@sandbergja sandbergja force-pushed the i3645-numismatics-builtin-advanced-2 branch from aa8d403 to cfc5c35 Compare August 17, 2023 00:19
@sandbergja sandbergja marked this pull request as ready for review August 17, 2023 00:20
@pulbot pulbot temporarily deployed to staging August 17, 2023 11:45 Inactive
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandbergja thank you for your work on the blacklight upgrade! 🍄
When I tested the numismatics form the one bug I can report, but it is not consistent between the fields is that when I tried to edit a search with no results it gave me the '404 something went wrong page'. honeybadger error

@sandbergja sandbergja force-pushed the i3645-numismatics-builtin-advanced-2 branch from 020290c to e57be3f Compare August 18, 2023 17:08
@pulbot pulbot temporarily deployed to staging August 18, 2023 17:15 Inactive
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🍄 ! @sandbergja

@@ -66,6 +66,7 @@ def facets_for_advanced_search_form(solr_p)
# search form, so that the form displays accurate counts for
# them in its dropdowns
advanced_search_facets = blacklight_config.advanced_search.form_solr_parameters['facet.field']
solr_p[:fq]&.compact!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sandbergja 🍄 !

@christinach christinach merged commit 7cd13b1 into main Aug 18, 2023
10 checks passed
@christinach christinach deleted the i3645-numismatics-builtin-advanced-2 branch August 18, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor numismatics advanced search using the built-in advanced search BL form
4 participants