Bug 40690: Fix if/else/end logic for checkout

This change fixes the Checkout status on moredetail.pl so that it
actually shows "Not checked out" when it's not checked out.

Test plan:
0. Apply the patch
1. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29 on a fresh KTD
2. Note that the "Checkout status" is "Not checked out"
3. Check out the item to someone
4. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29
5. Note that it says "Checked out to <person> Due back on <date>"
6. Renew the item
7. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29
8. Note that it says "Checked out to <person> Last renewed <date>, Due back on <date>"

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 59d43e8d48)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit ad886b5869)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
David Cook 2025-08-22 06:23:59 +00:00 committed by Fridolin Somers
parent 8313da3aca
commit cf3446fce2
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 2 additions and 2 deletions

View File

@ -187,9 +187,9 @@
[% END %]
[% IF ( checkout.date_due ) %]
<span>Due back on [% checkout.date_due | $KohaDates as_due_date => 1 %]</span>
[% ELSE %]
<span>Not checked out</span>
[% END %]
[% ELSE %]
<span>Not checked out</span>
[% END %]
</li>
[% IF ITEM_DAT.object.checkout.renewals_count %]