|
Lines 17-22
Link Here
|
| 17 |
[% SET CookieConsentBar = AdditionalContents.get( location => "CookieConsentBar", lang => lang, library => branchcode || default_branch ) %] |
17 |
[% SET CookieConsentBar = AdditionalContents.get( location => "CookieConsentBar", lang => lang, library => branchcode || default_branch ) %] |
| 18 |
[% SET CookieConsentPopup = AdditionalContents.get( location => "CookieConsentPopup", lang => lang, library => branchcode || default_branch ) %] |
18 |
[% SET CookieConsentPopup = AdditionalContents.get( location => "CookieConsentPopup", lang => lang, library => branchcode || default_branch ) %] |
| 19 |
[% SET AllPublicBranches = Branches.all( search_params => { public => 1 }, selected => opac_name ) %] |
19 |
[% SET AllPublicBranches = Branches.all( search_params => { public => 1 }, selected => opac_name ) %] |
|
|
20 |
[% SET ShowLabelsForSearchInputs = Koha.Preference('OPACShowLabelsForSearchInputs') %] |
| 20 |
|
21 |
|
| 21 |
<button id="scrolltocontent">Skip to main content</button> |
22 |
<button id="scrolltocontent">Skip to main content</button> |
| 22 |
<!-- prettier-ignore-start --> |
23 |
<!-- prettier-ignore-start --> |
|
Lines 235-288
Link Here
|
| 235 |
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform"> |
236 |
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform"> |
| 236 |
<div class="row gx-2"> |
237 |
<div class="row gx-2"> |
| 237 |
<div class="col-sm-auto order-2 order-sm-2"> |
238 |
<div class="col-sm-auto order-2 order-sm-2"> |
| 238 |
<label for="masthead_search" class="visually-hidden">Search the catalog by:</label> |
239 |
[% IF ( ShowLabelsForSearchInputs ) %] |
|
|
240 |
<label for="masthead_search">Search catalog by:</label> |
| 241 |
[% ELSE %] |
| 242 |
<label for="masthead_search" class="visually-hidden">Search catalog by:</label> |
| 243 |
[% END %] |
| 239 |
<select name="idx" id="masthead_search" class="form-select"> |
244 |
<select name="idx" id="masthead_search" class="form-select"> |
| 240 |
[% IF ( ms_kw ) %] |
245 |
[% IF ( ms_kw ) %] |
| 241 |
<option selected="selected" value="" data-placeholder="[% t("Search the catalog by keyword") | html %]">Library catalog</option> |
246 |
<option selected="selected" value="" data-placeholder="[% t("Search catalog by keyword") | html %]">Library catalog</option> |
| 242 |
[% ELSE %] |
247 |
[% ELSE %] |
| 243 |
<option value="" data-placeholder="[% t("Search the catalog by keyword") | html %]">Library catalog</option> |
248 |
<option value="" data-placeholder="[% t("Search catalog by keyword") | html %]">Library catalog</option> |
| 244 |
[% END # /ms_kw %] |
249 |
[% END # /ms_kw %] |
| 245 |
[% IF ( ms_ti ) %] |
250 |
[% IF ( ms_ti ) %] |
| 246 |
<option selected="selected" value="ti" data-placeholder="[% t("Search the catalog by title") | html %]">Title</option> |
251 |
<option selected="selected" value="ti" data-placeholder="[% t("Search catalog by title") | html %]">Title</option> |
| 247 |
[% ELSE %] |
252 |
[% ELSE %] |
| 248 |
<option value="ti" data-placeholder="[% t("Search the catalog by title") | html %]">Title</option> |
253 |
<option value="ti" data-placeholder="[% t("Search catalog by title") | html %]">Title</option> |
| 249 |
[% END # /ms_ti %] |
254 |
[% END # /ms_ti %] |
| 250 |
[% IF ( ms_au ) %] |
255 |
[% IF ( ms_au ) %] |
| 251 |
<option selected="selected" value="au" data-placeholder="[% t("Search the catalog by author") | html %]">Author</option> |
256 |
<option selected="selected" value="au" data-placeholder="[% t("Search catalog by author") | html %]">Author</option> |
| 252 |
[% ELSE %] |
257 |
[% ELSE %] |
| 253 |
<option value="au" data-placeholder="[% t("Search the catalog by author") | html %]">Author</option> |
258 |
<option value="au" data-placeholder="[% t("Search catalog by author") | html %]">Author</option> |
| 254 |
[% END # /ms_au %] |
259 |
[% END # /ms_au %] |
| 255 |
[% IF ( ms_su ) %] |
260 |
[% IF ( ms_su ) %] |
| 256 |
<option selected="selected" value="su" data-placeholder="[% t("Search the catalog by subject") | html %]">Subject</option> |
261 |
<option selected="selected" value="su" data-placeholder="[% t("Search catalog by subject") | html %]">Subject</option> |
| 257 |
[% ELSE %] |
262 |
[% ELSE %] |
| 258 |
<option value="su" data-placeholder="[% t("Search the catalog by subject") | html %]">Subject</option> |
263 |
<option value="su" data-placeholder="[% t("Search catalog by subject") | html %]">Subject</option> |
| 259 |
[% END # /ms_su %] |
264 |
[% END # /ms_su %] |
| 260 |
[% IF ( ms_nb ) %] |
265 |
[% IF ( ms_nb ) %] |
| 261 |
<option selected="selected" value="nb" data-placeholder="[% t("Search the catalog by ISBN") | html %]">ISBN</option> |
266 |
<option selected="selected" value="nb" data-placeholder="[% t("Search catalog by ISBN") | html %]">ISBN</option> |
| 262 |
[% ELSE %] |
267 |
[% ELSE %] |
| 263 |
<option value="nb" data-placeholder="[% t("Search the catalog by ISBN") | html %]">ISBN</option> |
268 |
<option value="nb" data-placeholder="[% t("Search catalog by ISBN") | html %]">ISBN</option> |
| 264 |
[% END # /ms_nb %] |
269 |
[% END # /ms_nb %] |
| 265 |
[% IF ( ms_ns ) %] |
270 |
[% IF ( ms_ns ) %] |
| 266 |
<option selected="selected" value="ns" data-placeholder="[% t("Search the catalog by ISSN") | html %]">ISSN</option> |
271 |
<option selected="selected" value="ns" data-placeholder="[% t("Search catalog by ISSN") | html %]">ISSN</option> |
| 267 |
[% ELSE %] |
272 |
[% ELSE %] |
| 268 |
<option value="ns" data-placeholder="[% t("Search the catalog by ISSN") | html %]">ISSN</option> |
273 |
<option value="ns" data-placeholder="[% t("Search catalog by ISSN") | html %]">ISSN</option> |
| 269 |
[% END # /ms_ns %] |
274 |
[% END # /ms_ns %] |
| 270 |
[% IF ( ms_se ) %] |
275 |
[% IF ( ms_se ) %] |
| 271 |
<option selected="selected" value="se" data-placeholder="[% t("Search the catalog by series") | html %]">Series</option> |
276 |
<option selected="selected" value="se" data-placeholder="[% t("Search catalog by series") | html %]">Series</option> |
| 272 |
[% ELSE %] |
277 |
[% ELSE %] |
| 273 |
<option value="se" data-placeholder="[% t("Search the catalog by series") | html %]">Series</option> |
278 |
<option value="se" data-placeholder="[% t("Search catalog by series") | html %]">Series</option> |
| 274 |
[% END # /ms_se %] |
279 |
[% END # /ms_se %] |
| 275 |
[% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] |
280 |
[% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] |
| 276 |
[% IF ( ms_callnumcommaphr ) %] |
281 |
[% IF ( ms_callnumcommaphr ) %] |
| 277 |
<option selected="selected" value="callnum,phr" data-placeholder="[% t("Search the catalog by call number") | html %]">Call number</option> |
282 |
<option selected="selected" value="callnum,phr" data-placeholder="[% t("Search catalog by call number") | html %]">Call number</option> |
| 278 |
[% ELSE %] |
283 |
[% ELSE %] |
| 279 |
<option value="callnum,phr" data-placeholder="[% t("Search the catalog by call number") | html %]">Call number</option> |
284 |
<option value="callnum,phr" data-placeholder="[% t("Search catalog by call number") | html %]">Call number</option> |
| 280 |
[% END #/ms_callnumcommaphr %] |
285 |
[% END #/ms_callnumcommaphr %] |
| 281 |
[% ELSE %] |
286 |
[% ELSE %] |
| 282 |
[% IF ( ms_callnum ) %] |
287 |
[% IF ( ms_callnum ) %] |
| 283 |
<option selected="selected" value="callnum" data-placeholder="[% t("Search the catalog by call number") | html %]">Call number</option> |
288 |
<option selected="selected" value="callnum" data-placeholder="[% t("Search catalog by call number") | html %]">Call number</option> |
| 284 |
[% ELSE %] |
289 |
[% ELSE %] |
| 285 |
<option value="callnum" data-placeholder="[% t("Search the catalog by call number") | html %]">Call number</option> |
290 |
<option value="callnum" data-placeholder="[% t("Search catalog by call number") | html %]">Call number</option> |
| 286 |
[% END # /ms_callnum %] |
291 |
[% END # /ms_callnum %] |
| 287 |
[% END # /IF OPACNumbersPreferPhrase %] |
292 |
[% END # /IF OPACNumbersPreferPhrase %] |
| 288 |
</select> |
293 |
</select> |
|
Lines 291-297
Link Here
|
| 291 |
|
296 |
|
| 292 |
<div class="col order-4 order-sm-3"> |
297 |
<div class="col order-4 order-sm-3"> |
| 293 |
[% IF ( !Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && mylibraryfirst ) %] |
298 |
[% IF ( !Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && mylibraryfirst ) %] |
| 294 |
<label for="translControl1" class="visually-hidden">Search the catalog by keyword in [% Branches.GetName( mylibraryfirst ) | html %]</label> |
299 |
[% IF ( ShowLabelsForSearchInputs ) %] |
|
|
300 |
<label for="translControl1" class="visually-hidden">Search catalog by keyword in [% Branches.GetName( mylibraryfirst ) | html %]:</label> |
| 301 |
[% ELSE %] |
| 302 |
<label for="translControl1" class="visually-hidden">Search catalog by keyword in [% Branches.GetName( mylibraryfirst ) | html %]:</label> |
| 303 |
[% END %] |
| 295 |
<input |
304 |
<input |
| 296 |
type="text" |
305 |
type="text" |
| 297 |
class="transl1 form-control form-control-filtered" |
306 |
class="transl1 form-control form-control-filtered" |
|
Lines 301-318
Link Here
|
| 301 |
data-bs-toggle="tooltip" |
310 |
data-bs-toggle="tooltip" |
| 302 |
data-bs-placement="top" |
311 |
data-bs-placement="top" |
| 303 |
title="Searching in [% Branches.GetName( mylibraryfirst ) | html %] only" |
312 |
title="Searching in [% Branches.GetName( mylibraryfirst ) | html %] only" |
| 304 |
placeholder="Search the catalog by keyword" |
313 |
placeholder="Search catalog by keyword" |
| 305 |
/><span id="translControl"></span> |
314 |
/><span id="translControl"></span> |
| 306 |
[% ELSE %] |
315 |
[% ELSE %] |
| 307 |
<label for="translControl1" class="visually-hidden">Search the catalog by keyword</label> |
316 |
[% IF ( ShowLabelsForSearchInputs ) %] |
| 308 |
<input type="text" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" placeholder="Search the catalog by keyword" /><span id="translControl"></span> |
317 |
<label for="translControl1">Search catalog by term:</label> |
|
|
318 |
[% ELSE %] |
| 319 |
<label for="translControl1" class="visually-hidden">Search catalog by term:</label> |
| 320 |
[% END %] |
| 321 |
<input type="text" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" placeholder="Search catalog by keyword" /> |
| 322 |
<span id="translControl"></span> |
| 309 |
[% END # /ms_value %] |
323 |
[% END # /ms_value %] |
| 310 |
</div> |
324 |
</div> |
| 311 |
<!-- /.col --> |
325 |
<!-- /.col --> |
| 312 |
|
326 |
|
| 313 |
[% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && AllPublicBranches.size > 1 ) %] |
327 |
[% IF ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && AllPublicBranches.size > 1 ) %] |
| 314 |
<div class="col-sm col-md-3 col-lg-2 order-3 order-sm-4"> |
328 |
<div class="col-sm col-md-3 col-lg-2 order-3 order-sm-4"> |
| 315 |
<label for="select_library" class="visually-hidden">Search the catalog in:</label> |
329 |
[% IF ( ShowLabelsForSearchInputs ) %] |
|
|
330 |
<label for="select_library">Search catalog in:</label> |
| 331 |
[% ELSE %] |
| 332 |
<label for="select_library" class="visually-hidden">Search catalog in:</label> |
| 333 |
[% END %] |
| 316 |
<select name="limit" id="select_library" class="form-select"> |
334 |
<select name="limit" id="select_library" class="form-select"> |
| 317 |
<option value="">All libraries</option> |
335 |
<option value="">All libraries</option> |
| 318 |
|
336 |
|
|
Lines 364-370
Link Here
|
| 364 |
[% END # / opac_limit_override %] |
382 |
[% END # / opac_limit_override %] |
| 365 |
[% END # / OpacAddMastheadLibraryPulldown %] |
383 |
[% END # / OpacAddMastheadLibraryPulldown %] |
| 366 |
|
384 |
|
| 367 |
<div class="order-5 col-sm-auto"> |
385 |
<div class="order-5 col-sm-auto align-content-end"> |
| 368 |
<button type="submit" id="searchsubmit" class="btn btn-primary" title="Search" aria-label="Search"> |
386 |
<button type="submit" id="searchsubmit" class="btn btn-primary" title="Search" aria-label="Search"> |
| 369 |
<i class="fa fa-search" aria-hidden="true"></i> |
387 |
<i class="fa fa-search" aria-hidden="true"></i> |
| 370 |
</button> |
388 |
</button> |