Skip to content

Commit c1a1634

Browse files
committed
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.
1 parent 17e522b commit c1a1634

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/views/record/view.html.erb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
<%= render(partial: 'shared/error', collection: @errors) %>
88

99
<%= render(partial: 'shared/site_title') %>
10-
<%= render(partial: 'search/form')%>
10+
11+
<% if Feature.enabled?(:geodata) %>
12+
<%= render(partial: 'search/form_geo')%>
13+
<% else %>
14+
<%= render(partial: 'search/form') %>
15+
<% end %>
16+
1117
<%= render(partial: 'back_button') %>
1218

1319
<% if @record.nil? %>

0 commit comments

Comments
 (0)