@@ -31,118 +31,117 @@ keyword_placeholder = search_required ? "Enter your search" : "Keyword anywhere"
3131 <%= 'aria-describedby=site-desc' if Flipflop . enabled? ( :gdt ) %> >
3232
3333 <% if Flipflop . enabled? ( :gdt ) %>
34- < details id ="geobox-search-panel " class ="form-panel " <%= "open" if params [ :geobox ] == "true" %> >
35- < summary class ="btn button-secondary " id ="geobox-summary ">
36- < span id ="geobox-search-label "> <%= geobox_label %> </ span >
37- </ summary >
38- < input id ="geobox-search-field " class ="fieldset-toggle " type ="hidden " name ="geobox "
39- value ="<%= params [ :geobox ] %> ">
40- < fieldset >
41- < legend > Search within a geospatial bounding box</ legend >
42- < p > * All fields in this section are required</ p >
43- < div class ="gridband layout-2c ">
44- < div class ="field-wrap grid-item ">
45- < label class ="geo-label " for ="geobox-minLongitude "> Minimum longitude</ label >
46- < input type ="number " step ="0.000001 " min ="-180.0 " max ="180.0 "
47- class ="field field-text <%= "required" if geobox_required %> "
48- id ="geobox-minLongitude " name ="geoboxMinLongitude " value ="<%= params [ :geoboxMinLongitude ] %> "
49- <%= 'required' if geobox_required %>
50- aria-describedby ="minLong-desc ">
51- < span class ="geo-desc " id ="minLong-desc ">
52- A decimal between -180.0 and 180.0 (Ex: -73.507239)
34+ < details id ="geobox-search-panel " class ="form-panel " <%= "open" if params [ :geobox ] == "true" %> >
35+ < summary class ="btn button-secondary " id ="geobox-summary ">
36+ < span id ="geobox-search-label "> <%= geobox_label %> </ span >
37+ </ summary >
38+ < input id ="geobox-search-field " class ="fieldset-toggle " type ="hidden " name ="geobox "
39+ value ="<%= params [ :geobox ] %> ">
40+ < fieldset >
41+ < legend > Search within a geospatial bounding box</ legend >
42+ < p > * All fields in this section are required</ p >
43+ < div class ="gridband layout-2c ">
44+ < div class ="field-wrap grid-item ">
45+ < label class ="geo-label " for ="geobox-minLongitude "> Minimum longitude</ label >
46+ < input type ="number " step ="0.000001 " min ="-180.0 " max ="180.0 "
47+ class ="field field-text <%= "required" if geobox_required %> "
48+ id ="geobox-minLongitude " name ="geoboxMinLongitude " value ="<%= params [ :geoboxMinLongitude ] %> "
49+ <%= 'required' if geobox_required %>
50+ aria-describedby ="minLong-desc ">
51+ < span class ="geo-desc " id ="minLong-desc ">
52+ A decimal between -180.0 and 180.0 (Ex: -73.507239)
53+ < span class ="hint "> Western Hemisphere is negative</ span >
54+ </ span >
55+ </ div >
56+ < div class ="field-wrap grid-item ">
57+ < label class ="geo-label " for ="geobox-minLatitude "> Minimum latitude</ label >
58+ < input type ="number " step ="0.000001 " min ="-90.0 " max ="90.0 "
59+ class ="field field-text <%= "required" if geobox_required %> "
60+ id ="geobox-minLatitude " name ="geoboxMinLatitude " value ="<%= params [ :geoboxMinLatitude ] %> "
61+ <%= 'required' if geobox_required %>
62+ aria-describedby ="minLat-desc ">
63+ < span class ="geo-desc " id ="minLat-desc ">
64+ A decimal between -90.0 and 90.0 (Ex: 41.239083)
65+ < span class ="hint "> Southern Hemisphere is negative</ span >
66+ </ span >
67+ </ div >
68+ < div class ="field-wrap grid-item ">
69+ < label class ="geo-label " for ="geobox-maxLongitude "> Maximum longitude</ label >
70+ < input type ="number " step ="0.000001 " min ="-180.0 " max ="180.0 "
71+ class ="field field-text <%= "required" if geobox_required %> "
72+ id ="geobox-maxLongitude " name ="geoboxMaxLongitude " value ="<%= params [ :geoboxMaxLongitude ] %> "
73+ <%= 'required' if geobox_required %>
74+ aria-describedby ="maxLong-desc ">
75+ < span class ="geo-desc " id ="maxLong-desc ">
76+ A decimal between -180.0 and 180.0 (Ex: -69.928713)
5377 < span class ="hint "> Western Hemisphere is negative</ span >
5478 </ span >
55- </ div >
56- < div class ="field-wrap grid-item ">
57- < label class ="geo-label " for ="geobox-minLatitude "> Minimum latitude</ label >
58- < input type ="number " step ="0.000001 " min ="-90.0 " max ="90.0 "
59- class ="field field-text <%= "required" if geobox_required %> "
60- id ="geobox-minLatitude " name ="geoboxMinLatitude " value ="<%= params [ :geoboxMinLatitude ] %> "
61- <%= 'required' if geobox_required %>
62- aria-describedby ="minLat-desc ">
63- < span class ="geo-desc " id ="minLat-desc ">
64- A decimal between -90.0 and 90.0 (Ex: 41.239083)
65- < span class ="hint "> Southern Hemisphere is negative</ span >
66- </ span >
67- </ div >
68- < div class ="field-wrap grid-item ">
69- < label class ="geo-label " for ="geobox-maxLongitude "> Maximum longitude</ label >
79+ </ div >
80+ < div class ="field-wrap grid-item ">
81+ < label class ="geo-label " for ="geobox-maxLatitude "> Maximum latitude</ label >
82+ < input type ="number " step ="0.000001 " min ="-90.0 " max ="90.0 "
83+ class ="field field-text <%= "required" if geobox_required %> "
84+ id ="geobox-maxLatitude " name ="geoboxMaxLatitude " value ="<%= params [ :geoboxMaxLatitude ] %> "
85+ <%= 'required' if geobox_required %>
86+ aria-describedby ="maxLat-desc ">
87+ < span class ="geo-desc " id ="maxLat-desc ">
88+ A decimal between -90.0 and 90.0 (Ex: 42.886759)
89+ < span class ="hint "> Southern Hemisphere is negative</ span >
90+ </ span >
91+ </ div >
92+ </ div >
93+ </ fieldset >
94+ </ details >
95+ < details id ="geodistance-search-panel " class ="form-panel " <%= "open" if params [ :geodistance ] == "true" %> >
96+ < summary class ="btn button-secondary " id ="geodistance-summary ">
97+ < span id ="geodistance-search-label "> <%= geodistance_label %> </ span >
98+ </ summary >
99+ < input id ="geodistance-search-field " class ="fieldset-toggle " type ="hidden " name ="geodistance "
100+ value ="<%= params [ :geodistance ] %> ">
101+ < fieldset >
102+ < legend > Search within a distance of a geographic point</ legend >
103+ < p > * All fields in this section are required</ p >
104+ < div class ="gridband layout-2c ">
105+ < div class ="field-wrap grid-item ">
106+ < label class ="geo-label " for ="geodistance-latitude "> Latitude</ label >
107+ < input type ="number " step ="0.000001 " min ="-90.0 " max ="90.0 "
108+ class ="field field-text <%= "required" if geodistance_required %> "
109+ id ="geodistance-latitude " name ="geodistanceLatitude "
110+ value ="<%= params [ :geodistanceLatitude ] %> " aria-describedby ="lat-desc "
111+ <%= 'required' if geodistance_required %>
112+ aria-describedby ="lat-desc ">
113+ < span class ="geo-desc " id ="lat-desc ">
114+ A decimal between -90.0 and 90.0 (Ex: 42.279594)
115+ < span class ="hint "> Southern Hemisphere is negative</ span >
116+ </ span >
117+ </ div >
118+ < div class ="field-wrap grid-item ">
119+ < label class ="geo-label " for ="geodistance-longitude "> Longitude</ label >
70120 < input type ="number " step ="0.000001 " min ="-180.0 " max ="180.0 "
71- class ="field field-text <%= "required" if geobox_required %> "
72- id ="geobox-maxLongitude " name ="geoboxMaxLongitude " value ="<%= params [ :geoboxMaxLongitude ] %> "
73- <%= 'required' if geobox_required %>
74- aria-describedby ="maxLong-desc ">
75- < span class ="geo-desc " id ="maxLong-desc ">
76- A decimal between -180.0 and 180.0 (Ex: -69.928713)
77- < span class ="hint "> Western Hemisphere is negative</ span >
78- </ span >
79- </ div >
80- < div class ="field-wrap grid-item ">
81- < label class ="geo-label " for ="geobox-maxLatitude "> Maximum latitude</ label >
82- < input type ="number " step ="0.000001 " min ="-90.0 " max ="90.0 "
83- class ="field field-text <%= "required" if geobox_required %> "
84- id ="geobox-maxLatitude " name ="geoboxMaxLatitude " value ="<%= params [ :geoboxMaxLatitude ] %> "
85- <%= 'required' if geobox_required %>
86- aria-describedby ="maxLat-desc ">
87- < span class ="geo-desc " id ="maxLat-desc ">
88- A decimal between -90.0 and 90.0 (Ex: 42.886759)
89- < span class ="hint "> Southern Hemisphere is negative</ span >
90- </ span >
91- </ div >
121+ class ="field field-text <%= "required" if geodistance_required %> "
122+ id ="geodistance-longitude " name ="geodistanceLongitude "
123+ value ="<%= params [ :geodistanceLongitude ] %> " aria-describedby ="long-desc "
124+ <%= 'required' if geodistance_required %>
125+ aria-describedby ="long-desc ">
126+ < span class ="geo-desc " id ="long-desc ">
127+ A decimal between -180.0 and 180.0 (Ex: -83.732124)
128+ < span class ="hint "> Western Hemisphere is negative</ span >
129+ </ span >
92130 </ div >
93- </ fieldset >
94- </ details >
95- < details id ="geodistance-search-panel " class ="form-panel " <%= "open" if params [ :geodistance ] == "true" %> >
96- < summary class ="btn button-secondary " id ="geodistance-summary ">
97- < span id ="geodistance-search-label "> <%= geodistance_label %> </ span >
98- </ summary >
99- < input id ="geodistance-search-field " class ="fieldset-toggle " type ="hidden " name ="geodistance "
100- value ="<%= params [ :geodistance ] %> ">
101- < fieldset >
102- < legend > Search within a distance of a geographic point</ legend >
103- < p > * All fields in this section are required</ p >
104- < div class ="gridband layout-2c ">
105- < div class ="field-wrap grid-item ">
106- < label class ="geo-label " for ="geodistance-latitude "> Latitude</ label >
107- < input type ="number " step ="0.000001 " min ="-90.0 " max ="90.0 "
108- class ="field field-text <%= "required" if geodistance_required %> "
109- id ="geodistance-latitude " name ="geodistanceLatitude "
110- value ="<%= params [ :geodistanceLatitude ] %> " aria-describedby ="lat-desc "
111- <%= 'required' if geodistance_required %>
112- aria-describedby ="lat-desc ">
113- < span class ="geo-desc " id ="lat-desc ">
114- A decimal between -90.0 and 90.0 (Ex: 42.279594)
115- < span class ="hint "> Southern Hemisphere is negative</ span >
116- </ span >
117- </ div >
118- < div class ="field-wrap grid-item ">
119- < label class ="geo-label " for ="geodistance-longitude "> Longitude</ label >
120- < input type ="number " step ="0.000001 " min ="-180.0 " max ="180.0 "
121- class ="field field-text <%= "required" if geodistance_required %> "
122- id ="geodistance-longitude " name ="geodistanceLongitude "
123- value ="<%= params [ :geodistanceLongitude ] %> " aria-describedby ="long-desc "
124- <%= 'required' if geodistance_required %>
125- aria-describedby ="long-desc ">
126- < span class ="geo-desc " id ="long-desc ">
127- A decimal between -180.0 and 180.0 (Ex: -83.732124)
128- < span class ="hint "> Western Hemisphere is negative</ span >
129- </ span >
130- </ div >
131- < div class ="field-wrap grid-item ">
132- < label class ="geo-label " for ="geodistance-distance "> Distance from the location</ label >
133- < input type ="text " class ="field field-text <%= "required" if geodistance_required %> "
134- id ="geodistance-distance " name ="geodistanceDistance "
135- value ="<%= params [ :geodistanceDistance ] %> " aria-describedby ="distance-desc "
136- <%= 'required' if geodistance_required %>
137- aria-describedby ="distance-desc ">
138- < span class ="geo-desc " id ="distance-desc ">
139- Distance is in meters by default; add other units if preferred (Ex: '100km' or '50mi')
140- </ span >
141- </ div >
131+ < div class ="field-wrap grid-item ">
132+ < label class ="geo-label " for ="geodistance-distance "> Distance from the location</ label >
133+ < input type ="text " class ="field field-text <%= "required" if geodistance_required %> "
134+ id ="geodistance-distance " name ="geodistanceDistance "
135+ value ="<%= params [ :geodistanceDistance ] %> " aria-describedby ="distance-desc "
136+ <%= 'required' if geodistance_required %>
137+ aria-describedby ="distance-desc ">
138+ < span class ="geo-desc " id ="distance-desc ">
139+ Distance is in meters by default; add other units if preferred (Ex: '100km' or '50mi')
140+ </ span >
142141 </ div >
143- </ fieldset >
144- </ details >
145- <% end % >
142+ </ div >
143+ </ fieldset >
144+ </ details >
146145
147146 < details id ="advanced-search-panel " class ="form-panel " <%= "open" if params [ :advanced ] == "true" %> >
148147 < summary class ="btn button-secondary " id ="advanced-summary ">
@@ -158,33 +157,11 @@ keyword_placeholder = search_required ? "Enter your search" : "Keyword anywhere"
158157 </ div >
159158
160159 < div class ="field-wrap ">
161- < label for ="advanced-contributors " class ="field-label ">
162- <%= Flipflop . enabled? ( :gdt ) ? "Authors" : "Contributors" %>
163- </ label >
160+ < label for ="advanced-contributors " class ="field-label "> Authors</ label >
164161 < input type ="text " class ="field field-text wide " id ="advanced-contributors " name ="contributors "
165162 value ="<%= params [ :contributors ] %> ">
166163 </ div >
167164
168- <% unless Flipflop . enabled? ( :gdt ) %>
169- < div class ="field-wrap ">
170- < label for ="advanced-citation " class ="field-label "> Citation</ label >
171- < input type ="text " class ="field field-text wide " id ="advanced-citation " name ="citation "
172- value ="<%= params [ :citation ] %> ">
173- </ div >
174-
175- < div class ="field-wrap ">
176- < label for ="advanced-fundingInformation " class ="field-label "> Funding information</ label >
177- < input type ="text " class ="field field-text wide " id ="advanced-fundingInformation " name ="fundingInformation "
178- value ="<%= params [ :fundingInformation ] %> ">
179- </ div >
180-
181- < div class ="field-wrap ">
182- < label for ="advanced-identifiers " class ="field-label "> Identifiers</ label >
183- < input type ="text " class ="field field-text wide " id ="advanced-identifiers " name ="identifiers "
184- value ="<%= params [ :identifiers ] %> ">
185- </ div >
186- <% end %>
187-
188165 < div class ="field-wrap ">
189166 < label for ="advanced-subjects " class ="field-label "> Subjects</ label >
190167 < input type ="text " class ="field field-text wide " id ="advanced-subjects " name ="subjects "
@@ -196,21 +173,9 @@ keyword_placeholder = search_required ? "Enter your search" : "Keyword anywhere"
196173 < input type ="text " class ="field field-text wide " id ="advanced-locations " name ="locations "
197174 value ="<%= params [ :locations ] %> ">
198175 </ div >
199-
200- <% unless Flipflop . enabled? ( :gdt ) %>
201- < div class ="field-wrap list-checkboxes ">
202- <%# https://www.w3.org/WAI/tutorials/forms/grouping/ %>
203- < fieldset >
204- < legend > Limit search to checked sources.</ legend >
205-
206- <% timdex_sources . each do |source | %>
207- <%= source_checkbox ( source , params ) %>
208- <% end %>
209- </ fieldset >
210- </ div >
211- <% end %>
212176 </ div >
213177 </ details >
178+ <% end %>
214179 </ div >
215180
216181 < div class ="basic-search-submit ">
0 commit comments