Bugzilla – Attachment 192543 Details for
Bug 41778
Broken display of not for loan status on item detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41778: Fix broken display of not for loan status on item detail page
Bug-41778-Fix-broken-display-of-not-for-loan-statu.patch (text/plain), 3.07 KB, created by
Roman Dolny
on 2026-02-05 19:32:15 UTC
(
hide
)
Description:
Bug 41778: Fix broken display of not for loan status on item detail page
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2026-02-05 19:32:15 UTC
Size:
3.07 KB
patch
obsolete
>From dd65306014882cde451034c9243b840ec8a4ba3f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 5 Feb 2026 12:27:26 -0500 >Subject: [PATCH] Bug 41778: Fix broken display of not for loan status on item > detail page > >This patch makes some corrections to the way the item detail page >template defines and display an item's not for loan status. > >To test you must have at least one not-for-loan item attached to a >bibliographic record. > >- If necessary, edit an item to set a "Not for loan" status. >- View the bibliographic detail page for that item's record. >- Click the "Items" tab from the bibliographic detail page. >- Find the section on the page showing the item you edited. > - You should see "Barcode XXXX" (or "Item number XXXX") along with the > not for loan status you defined. > >Sponsored-by: Athens County Public Libraries >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../prog/en/modules/catalogue/moredetail.tt | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index f9313d0dd2..f9ed41dee8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -137,6 +137,11 @@ > > [% FOREACH ITEM_DAT IN ITEM_DATA %] > <div id="container[% ITEM_DAT.itemnumber | html %]"> >+ [% SET not_for_loan = 0 %] >+ [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] >+ [% SET not_for_loan = 1 %] >+ [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => ITEM_DAT.notforloan ) %] >+ [% END %] > <h3 id="item[% ITEM_DAT.itemnumber | html %]" class="expanded"> > <i class="fa fa-caret-down" title="Collapse this section"></i> > [% IF ITEM_DAT.barcode -%] >@@ -144,14 +149,9 @@ > [% ELSE -%] > Item number [% ITEM_DAT.itemnumber | html %] > [% END %] >- [% IF not_for_loan %][% not_for_loan_description | html %][% END %] >+ [% IF not_for_loan %]([% not_for_loan_description | html %])[% END %] > </h3> > <div id="collapse_item[% ITEM_DAT.itemnumber | html %]" class="page-section clearfix"> >- [% SET not_for_loan = 0 %] >- [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] >- [% SET not_for_loan = 1 %] >- [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] >- [% END %] > [% IF withdraw_error %] > <div class="alert alert-warning"> > [% IF withdraw_error == 'intransit_cannot_withdraw' %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41778
:
192538
| 192543