To reproduce: 1. Go to Serials and Add a new subscription 2. Search for a record 3. There is only one search field (keyword), and you have to click into it to use it. It should be focussed as the window opens so the cursor starts in there.
Created attachment 134929 [details] [review] 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.
Created attachment 134939 [details] [review] 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>
Works, qa script happy, code looks good, passing QA :)
Created attachment 135010 [details] [review] 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>
Pushed to master for 22.11. Nice work everyone, thanks!
Backported to 22.05.x for 22.05.04
backported to 21.11.x for 21.11.11
Not backported to oldoldstable (21.05.x). Feel free to ask if it's needed. Nothing to document, marking resolved.