Bug 35944: Add link to 'booked' biblio in checkouts table

This patch updates the checkouts table so handle 'booked' items
including linking to the biblio booking details page.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2cbf174897)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2024-02-26 09:27:27 +00:00 committed by Fridolin Somers
parent 5fefed88ed
commit 2f4be16206

View file

@ -529,6 +529,13 @@ $(document).ready(function() {
span_style = "display: none";
span_class = "renewals-allowed-recalled";
} else if ( oObj.can_renew_error == "booked" ) {
msg += "<span>"
+ "<a href='/cgi-bin/koha/bookings/list.pl?biblionumber=" + oObj.biblionumber + "'>" + __("Booked") + "</a>"
+ "</span>";
span_style = "display: none";
span_class = "renewals-allowed-booked";
} else if ( oObj.can_renew_error == "on_reserve" ) {
msg += "<span>"
+"<a href='/cgi-bin/koha/reserve/request.pl?biblionumber=" + oObj.biblionumber + "'>" + __("On hold") + "</a>"