Bug 40976 - Child record displays incorrect availability in OPAC
Summary: Child record displays incorrect availability in OPAC
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 25.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-08 18:31 UTC by Esther Melander
Modified: 2025-10-08 18:31 UTC (History)
1 user (show)

See Also:
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 (30.92 KB, image/jpeg)
2025-10-08 18:31 UTC, Esther Melander
Details

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