@@ -157,54 +157,69 @@ end
157157 <% end %>
158158
159159 < details id ="advanced-search-panel " <%= "open" if params [ :advanced ] == "true" %> >
160- < summary class ="btn button-secondary " id ="advanced-summary "> < span id ="advanced-search-label " class ="<%= advanced_label_class %> "> <%= advanced_label %> </ span > </ summary >
160+ < summary class ="btn button-secondary " id ="advanced-summary ">
161+ < span id ="advanced-search-label "class ="<%= advanced_label_class %> "> <%= advanced_label %> </ span >
162+ </ summary >
161163 < input id ="advanced-search-field " type ="hidden " name ="advanced " value ="<%= params [ :advanced ] %> ">
162164 < div class ="field-container ">
163165 < div class ="field-wrap ">
164- < label for ="advanced-citation " class ="field-label "> Citation</ label >
165- < input type ="text " class ="field field-text wide " id ="advanced-citation " name ="citation " placeholder ="Citation " value ="<%= params [ :citation ] %> ">
166+ < label for ="advanced-title " class ="field-label "> Title</ label >
167+ < input type ="text " class ="field field-text wide " id ="advanced-title " name ="title "
168+ value ="<%= params [ :title ] %> ">
166169 </ div >
167170
168171 < div class ="field-wrap ">
169- < label for ="advanced-contributors " class ="field-label "> Contributors</ label >
170- < input type ="text " class ="field field-text wide " id ="advanced-contributors " name ="contributors " placeholder ="Contributors " value ="<%= params [ :contributors ] %> ">
172+ < label for ="advanced-contributors " class ="field-label ">
173+ <%= Flipflop . enabled? ( :gdt ) ? "Authors" : "Contributors" %>
174+ </ label >
175+ < input type ="text " class ="field field-text wide " id ="advanced-contributors " name ="contributors "
176+ value ="<%= params [ :contributors ] %> ">
171177 </ div >
172178
173- < div class ="field-wrap ">
174- < label for ="advanced-fundingInformation " class ="field-label "> Funding information</ label >
175- < input type ="text " class ="field field-text wide " id ="advanced-fundingInformation " name ="fundingInformation " placeholder ="Funding information " value ="<%= params [ :fundingInformation ] %> ">
176- </ div >
179+ <% unless Flipflop . enabled? ( :gdt ) %>
180+ < div class ="field-wrap ">
181+ < label for ="advanced-citation " class ="field-label "> Citation</ label >
182+ < input type ="text " class ="field field-text wide " id ="advanced-citation " name ="citation "
183+ value ="<%= params [ :citation ] %> ">
184+ </ div >
177185
178- < div class ="field-wrap ">
179- < label for ="advanced-identifiers " class ="field-label "> Identifiers</ label >
180- < input type ="text " class ="field field-text wide " id ="advanced-identifiers " name ="identifiers " placeholder ="Identifiers " value ="<%= params [ :identifiers ] %> ">
181- </ div >
186+ < div class ="field-wrap ">
187+ < label for ="advanced-fundingInformation " class ="field-label "> Funding information</ label >
188+ < input type ="text " class ="field field-text wide " id ="advanced-fundingInformation " name ="fundingInformation "
189+ value ="<%= params [ :fundingInformation ] %> ">
190+ </ div >
182191
183- < div class ="field-wrap ">
184- < label for ="advanced-locations " class ="field-label "> Locations</ label >
185- < input type ="text " class ="field field-text wide " id ="advanced-locations " name ="locations " placeholder ="Locations " value ="<%= params [ :locations ] %> ">
186- </ div >
192+ < div class ="field-wrap ">
193+ < label for ="advanced-identifiers " class ="field-label "> Identifiers</ label >
194+ < input type ="text " class ="field field-text wide " id ="advanced-identifiers " name ="identifiers "
195+ value ="<%= params [ :identifiers ] %> ">
196+ </ div >
197+ <% end %>
187198
188199 < div class ="field-wrap ">
189200 < label for ="advanced-subjects " class ="field-label "> Subjects</ label >
190- < input type ="text " class ="field field-text wide " id ="advanced-subjects " name ="subjects " placeholder ="Subjects " value ="<%= params [ :subjects ] %> ">
201+ < input type ="text " class ="field field-text wide " id ="advanced-subjects " name ="subjects "
202+ value ="<%= params [ :subjects ] %> ">
191203 </ div >
192204
193205 < div class ="field-wrap ">
194- < label for ="advanced-title " class ="field-label "> Title</ label >
195- < input type ="text " class ="field field-text wide " id ="advanced-title " name ="title " placeholder ="Title " value ="<%= params [ :title ] %> ">
206+ < label for ="advanced-locations " class ="field-label "> Locations</ label >
207+ < input type ="text " class ="field field-text wide " id ="advanced-locations " name ="locations "
208+ value ="<%= params [ :locations ] %> ">
196209 </ div >
197210
198- < div class ="field-wrap list-checkboxes ">
199- <%# https://www.w3.org/WAI/tutorials/forms/grouping/ %>
200- < fieldset >
201- < legend > Limit search to checked sources.</ legend >
211+ <% unless Flipflop . enabled? ( :gdt ) %>
212+ < div class ="field-wrap list-checkboxes ">
213+ <%# https://www.w3.org/WAI/tutorials/forms/grouping/ %>
214+ < fieldset >
215+ < legend > Limit search to checked sources.</ legend >
202216
203- <% timdex_sources . each do |source | %>
204- <%= source_checkbox ( source , params ) %>
205- <% end %>
206- </ fieldset >
207- </ div >
217+ <% timdex_sources . each do |source | %>
218+ <%= source_checkbox ( source , params ) %>
219+ <% end %>
220+ </ fieldset >
221+ </ div >
222+ <% end %>
208223 </ div >
209224 </ details >
210225 </ div >
0 commit comments