Bug 41982

Summary: Linked items resulting from EasyAnalyticalRecords are not shown on OPAC results page
Product: Koha Reporter: Janusz Kaczmarek <januszop>
Component: OPACAssignee: Janusz Kaczmarek <januszop>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: Sponsored Comma delimited list of Sponsors: Pontificia Università di San Tommaso d'Aquino (Angelicum)
Crowdfunding goal: 0 Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41982: Linked items resulting from EasyAnalyticalRecords are not shown on OPAC results page
Bug 41982: Unit tests

Description Janusz Kaczmarek 2026-03-03 19:05:41 UTC
When using EasyAnalyticalRecords, "virtual" items originating from host records are shown in: 1) staff detail, 2) staff results, 3) OPAC detail, but not on OPAC results page.

To reproduce (in ktd):
1) Turn EasyAnalyticalRecords on.
2) Link the item 3999900000001 (originating from biblio #1) to biblio #2 (with New > Link to host record).
3) Check that you are able to see the linked item in staff detail and OPAC detail (biblio record #2) and also on the staff results page (make a search with the word 'behind'). Verify that on the OPAC results page (with the same search) you get: "Availability: No items available."

This is confusing and inconsistent.
Comment 1 Janusz Kaczmarek 2026-03-03 20:26:23 UTC
Created attachment 194411 [details] [review]
Bug 41982: Linked items resulting from EasyAnalyticalRecords are not shown on OPAC results page

When using EasyAnalyticalRecords, "virtual" items originating from
host records are shown in: 1) staff detail, 2) staff results, 3) OPAC
detail, but not on OPAC results page. This is confusing and
inconsistent.

To reproduce (in ktd):
1. Turn EasyAnalyticalRecords on.
2. Link the item 3999900000001 (originating from biblio #1) to biblio
   #2 (with New > Link to host record).
3. Check that you are able to see the linked item in staff detail and
   OPAC detail (biblio record #2) and also on the staff results page
   (make a search with the word 'behind'). Verify that on the OPAC
   results page (with the same search) you get: "Availability: No items
   available."
4. Apply the patch ; restart_all
5. Repeat p. 3. You should now be able to see information from the
   linked item on OPAC results page.

Sponsored-by: Pontificia Università di San Tommaso d'Aquino (Angelicum)
Comment 2 Janusz Kaczmarek 2026-03-03 20:26:25 UTC
Created attachment 194412 [details] [review]
Bug 41982: Unit tests

Caveat, errors from QA script about 'http://' are misleading.