From 497f9312a05a38f19f6f9ea3ca3a651750e0d7d8 Mon Sep 17 00:00:00 2001 From: Sarah Proctor Date: Tue, 14 Jan 2025 10:47:22 -0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A7=B9=20Updates=20to=20search=20form?= =?UTF-8?q?=20overrides?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit: - updates the search form override view files for the cultural and institutional repositories to align with existing code in Hyrax which fixes styling issues in the dropdown menus - updates the Hyku dependencies to the latest versions of Hyrax gems Ref: - https://github.com/notch8/palni_palci_knapsack/issues/156 --- Gemfile.lock | 13 +++++----- .../catalog/_search_form.html.erb | 24 +++++++------------ .../catalog/_search_form.html.erb | 24 +++++++------------ 3 files changed, 24 insertions(+), 37 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index f9a434e0b..8f437cd3e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -153,7 +153,7 @@ GIT GIT remote: https://github.com/samvera/hyrax.git - revision: abd5955f325b966ebd21d0de8d96b61cf0421cf3 + revision: b6dcb8af85ab346b475c05e6e68b93da7825d319 branch: main specs: hyrax (5.0.1) @@ -174,7 +174,6 @@ GIT dry-logic (~> 1.5) dry-monads (~> 1.6) dry-validation (~> 1.10) - faraday (= 2.9.1) flipflop (~> 2.3) flot-rails (~> 0.0.6) font-awesome-rails (~> 4.2) @@ -193,7 +192,7 @@ GIT noid-rails (~> 3.0) oauth oauth2 (~> 1.2) - openseadragon + openseadragon (~> 0.9) posix-spawn qa (~> 5.5, >= 5.5.1) rails (~> 6.1) @@ -211,7 +210,7 @@ GIT signet sprockets (= 3.7.2) tinymce-rails (~> 5.10) - valkyrie (~> 3.3) + valkyrie (~> 3.5) view_component (~> 2.74.1) GIT @@ -1005,8 +1004,8 @@ GEM validate_email validate_url webfinger (~> 2.0) - openseadragon (0.6.0) - rails (> 3.2.0) + openseadragon (0.9.0) + rails (> 6.1.0) openssl (3.2.0) optimist (3.1.0) order_already (0.3.2) @@ -1416,7 +1415,7 @@ GEM validate_url (1.0.15) activemodel (>= 3.0.0) public_suffix - valkyrie (3.3.0) + valkyrie (3.5.0) activemodel activesupport dry-struct diff --git a/app/views/themes/cultural_repository/catalog/_search_form.html.erb b/app/views/themes/cultural_repository/catalog/_search_form.html.erb index 28f70fd84..e92c9b231 100644 --- a/app/views/themes/cultural_repository/catalog/_search_form.html.erb +++ b/app/views/themes/cultural_repository/catalog/_search_form.html.erb @@ -1,4 +1,4 @@ -<% # OVERRIDE: Hyrax v5.0.0rc2 template to change the size of the column on line 8 from col-sm-3 to col-sm-4 %> +<% # OVERRIDE: Hyrax v5.0.0rc2 template to change the size of the column on line 8 from col-sm-3 to col-sm-4 %> <%= form_tag search_form_action, method: :get, class: "cultural-repository form-horizontal search-form", id: "search-form-header", role: "search" do %> <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %> @@ -26,20 +26,14 @@ - + <% end %> diff --git a/app/views/themes/institutional_repository/catalog/_search_form.html.erb b/app/views/themes/institutional_repository/catalog/_search_form.html.erb index c8958573a..d0fd1da1f 100644 --- a/app/views/themes/institutional_repository/catalog/_search_form.html.erb +++ b/app/views/themes/institutional_repository/catalog/_search_form.html.erb @@ -1,4 +1,4 @@ -<% # OVERRIDE: Hyrax v5.0.0rc2 template to change the size of the column on line 8 from col-sm-3 to col-sm-6 %> +<% # OVERRIDE: Hyrax v5.0.0rc2 template to change the size of the column on line 8 from col-sm-3 to col-sm-6 %> <%= form_tag search_form_action, method: :get, class: "institutional-repository form-horizontal search-form", id: "search-form-header", role: "search" do %> <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %> @@ -26,20 +26,14 @@ - + <% end %> From 0f29ec67af92316280219b50249f6bb9fee56cdc Mon Sep 17 00:00:00 2001 From: Sarah Proctor Date: Tue, 14 Jan 2025 11:36:22 -0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=84=20Updated=20version=20number?= =?UTF-8?q?=20on=20the=20override=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref: - https://github.com/notch8/palni_palci_knapsack/issues/156 --- .../themes/cultural_repository/catalog/_search_form.html.erb | 2 +- .../institutional_repository/catalog/_search_form.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/themes/cultural_repository/catalog/_search_form.html.erb b/app/views/themes/cultural_repository/catalog/_search_form.html.erb index e92c9b231..7e774160d 100644 --- a/app/views/themes/cultural_repository/catalog/_search_form.html.erb +++ b/app/views/themes/cultural_repository/catalog/_search_form.html.erb @@ -1,4 +1,4 @@ -<% # OVERRIDE: Hyrax v5.0.0rc2 template to change the size of the column on line 8 from col-sm-3 to col-sm-4 %> +<% # OVERRIDE: Hyrax v5.0.1 template to change the size of the column on line 8 from col-sm-3 to col-sm-4 %> <%= form_tag search_form_action, method: :get, class: "cultural-repository form-horizontal search-form", id: "search-form-header", role: "search" do %> <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %> diff --git a/app/views/themes/institutional_repository/catalog/_search_form.html.erb b/app/views/themes/institutional_repository/catalog/_search_form.html.erb index d0fd1da1f..e33cc0b86 100644 --- a/app/views/themes/institutional_repository/catalog/_search_form.html.erb +++ b/app/views/themes/institutional_repository/catalog/_search_form.html.erb @@ -1,4 +1,4 @@ -<% # OVERRIDE: Hyrax v5.0.0rc2 template to change the size of the column on line 8 from col-sm-3 to col-sm-6 %> +<% # OVERRIDE: Hyrax v5.0.1 template to change the size of the column on line 8 from col-sm-3 to col-sm-6 %> <%= form_tag search_form_action, method: :get, class: "institutional-repository form-horizontal search-form", id: "search-form-header", role: "search" do %> <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %>