Bug 41055: add missing accesskey attribute for print button

This commit adds the missing accesskey attribute to the print button in the circulation template.

Test plan:
1. Try to checkout an item that is waiting for pickup.
2. Try to print the checkout receipt using the alt+shift+p keyboard shortcut.
3. Verify that nothing happens when using the shortcut.
4. After applying this commit, try the same steps again.
5. Verify that the print button now works with the alt+shift+p keyboard shortcut.

Sponsored-by: Koha-Suomi Oy

Signed-off-by: Slava Shishkin <slavashishkin@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Slava Shishkin 2025-10-30 18:10:01 +02:00 committed by Laura Escamilla
parent 92353e5294
commit 3183fd17d8
No known key found for this signature in database
GPG Key ID: 6B1D9CA1AF817BC3
1 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@
<input type="hidden" name="hold_borrower" value="[% resborrowernumber | html %]" />
<input type="hidden" name="hold_itemnumber" value="[% item.itemnumber | html %]" />
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
<button class="btn btn-default print" type="submit" onclick="Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]&itemnumber=[% item.id | html %]');this.form.submit();"
<button class="btn btn-default print" type="submit" accesskey="p" onclick="Dopop('hold-transfer-slip.pl?reserve_id=[% reserve_id | uri %]&itemnumber=[% item.id | html %]');this.form.submit();"
><i class="fa fa-print"></i> Don't check out, confirm hold, and print slip (P)</button
>
</form>
@ -502,7 +502,7 @@
[% IF ( RECALLED ) %]
<form method="get" action="/cgi-bin/koha/circ/circulation.pl">
<button class="btn btn-default print" type="submit" onclick="Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% RECALLED.id | html %]');this.form.submit();"
<button class="btn btn-default print" type="submit" accesskey="p" onclick="Dopop('/cgi-bin/koha/recalls/recall_pickup_slip.pl?recall_id=[% RECALLED.id | html %]');this.form.submit();"
><i class="fa fa-print"></i> Don't check out and print slip (P)</button
>
</form>