Bug 41778 - Broken display of not for loan status on item detail page
Summary: Broken display of not for loan status on item detail page
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-05 17:26 UTC by Owen Leonard
Modified: 2026-02-05 19:32 UTC (History)
0 users

See Also:
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 (3.02 KB, patch)
2026-02-05 17:35 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 41778: Fix broken display of not for loan status on item detail page (3.07 KB, patch)
2026-02-05 19:32 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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>