Bug 31391: Add "Place recall" button in detail page toolbar

Adds a new entry "Place recall" to the detail page's toolbar, visible when:

- UseRecalls is set to allow recalls in staff
- User has recalls permission

This matches the behavior for holds and bookings, so seems to increase
consistency.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Katrin Fischer 2026-07-06 17:52:31 +02:00 committed by Pedro Amorim
parent 98c8add185
commit 65b8a6129d
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 4 additions and 0 deletions

View File

@ -290,6 +290,10 @@
[% END %]
[% END %]
[%- IF ( Koha.Preference('UseRecalls').match('staff') && CAN_user_recalls ) -%]
<a id="placerecall" class="btn btn-default" href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% biblionumber | html %]" role="button"> <i class="fa-solid fa-book-bookmark"></i> Place recall</a>
[%- END -%]
<div class="btn-group">
<a id="audit_record" class="btn btn-default" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber | html %]&audit=1" role="button"> <i class="fa-solid fa-stethoscope"></i> Audit</a>
</div>