Bug 40976

Summary: Child record displays incorrect availability in OPAC
Product: Koha Reporter: Esther Melander <esther.melander>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: 25.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Incorrect availability in search

Description Esther Melander 2025-10-08 18:31:36 UTC
Created attachment 187595 [details]
Incorrect availability in search

A child record displays no availability in OPAC search results despite having available items.

To Replicate:
1. Enable EasyAnalyticalRecords, set UseControlNumber to don't use
2. Catalog a parent record and add two item records. (name the record "Title")
3. Catalog a child record.(name the record "Title" Article)
4. From child record, click on Edit, Link to Host Record. Enter a barcode from an item on the parent record.
5. Repeat, and  Edit, Link to Host Record. Enter barcode from second item on the parent record.

The items should successfully link and should display on the holdings table of the child record with a link to the host or parent record.

6. Checkout one of the item records to a patron.
7. Search for the "Title" in the OPAC. See the parent record correctly shows the availability with one item checked out and one available. See that the child record shows no availability even though their is still one item available.

Attached screenshot example.

The holdings table on the detail page correctly display availability in the status column.