From c1a1634f1b69fdfe19eb7ec5a015b1d4b7fa51b3 Mon Sep 17 00:00:00 2001 From: jazairi <16103405+jazairi@users.noreply.github.com> Date: Mon, 3 Nov 2025 12:34:44 -0500 Subject: [PATCH] Show correct search form in GeoData full records Why these changes are being introduced: USE UI uses a different search form partial than GeoData. When this change was made, we did not update the form partial loaded in the full record view. Relevant ticket(s): * [USE-157](https://mitlibraries.atlassian.net/browse/USE-157) How this addresses that need: This updates the `record_geo` partial to load the `form_geo` partial when the GeoData feature is enabled. Side effects of this change: None. --- app/views/record/view.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/record/view.html.erb b/app/views/record/view.html.erb index 511a3558..1c9726d5 100644 --- a/app/views/record/view.html.erb +++ b/app/views/record/view.html.erb @@ -7,7 +7,13 @@ <%= render(partial: 'shared/error', collection: @errors) %> <%= render(partial: 'shared/site_title') %> -<%= render(partial: 'search/form')%> + +<% if Feature.enabled?(:geodata) %> + <%= render(partial: 'search/form_geo')%> +<% else %> + <%= render(partial: 'search/form') %> +<% end %> + <%= render(partial: 'back_button') %> <% if @record.nil? %>