Bug 41778

Summary: Broken display of not for loan status on item detail page
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41778: Fix broken display of not for loan status on item detail page
Bug 41778: Fix broken display of not for loan status on item detail page

Description Owen Leonard 2026-02-05 17:26:32 UTC
On the item details page the section heading, which shows the barcode or item number, is supposed to also show the not for loan status if there is one. The way the template variables are defined the status cannot be shown.
Comment 1 Owen Leonard 2026-02-05 17:35:32 UTC
Created attachment 192538 [details] [review]
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
Comment 2 Roman Dolny 2026-02-05 19:32:15 UTC
Created attachment 192543 [details] [review]
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>