Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-bib-search.tt
Owen Leonard 712ced4612
Bug 29055: Focus on keyword field when subscription biblio search window opens
This patch adds the "autofocus" attribute to the keyword field in the
popup window used to find a bibliographic record to use in a
subscription.

The same is also done for the vendor search popup.

To test, apply the patch and go to Serials -> New subscription.

- Click the "Search for vendor" link. When the "Serial subscription:
  search for vendor" window opens the cursor should automatically be in
  the vendor search field.
- Click the "Search for record" link. When the "Catalog search" window
  opens the cursor focus should automatically be in the keyword field.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-25 10:54:37 -03:00

53 lines
1.8 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Catalog search &rsaquo; Serials &rsaquo; Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="ser_subscription-bib-search" class="ser">
<div class="main container-fluid">
<h1>Catalog search</h1>
[% IF ( no_query ) %]
<div class="warning">You must enter a term to search on </div>
[% END %]
<form name="f" action="/cgi-bin/koha/serials/subscription-bib-search.pl" method="get">
<input type="hidden" name="op" value="do_search" />
<input type="hidden" name="type" value="intranet" />
<fieldset class="brief">
<ol>
<li>
<label for="q">Keyword: </label>
<input type="text" id="q" name="q" autofocus="autofocus" />
</li>
<li>
<label for="itemtypelimit">Limit item type to: </label>
<select name="itemtypelimit" id="itemtypelimit">
<option value="">All</option>
[%- FOREACH itemtypeloo IN itemtypeloop %]
<option value="[% itemtypeloo.code | html %]">
[% itemtypeloo.description | html %]
</option>
[%- END %]
</select>
</li>
[%- IF ccodeloop %]
<li>
<label for="ccodelimit">Limit collection code to: </label>
<select name="ccodelimit" id="ccodelimit">
<option value="">All</option>
[%- FOREACH ccodeloo IN ccodeloop %]
<option value="[% ccodeloo.code | html %]">
[% ccodeloo.description | html %]
</option>
[%- END %]
</select>
</li>
[%- END %]
</ol>
</fieldset>
<fieldset class="action">
<input type="submit" value="Search" />
</fieldset>
</form>
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]