Bug 37063

Summary: Show Analytics link not displaying with Analytics enhanced workflow
Product: Koha Reporter: Esther Melander <esther.melander>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: 23.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Esther Melander 2024-06-10 17:30:19 UTC
To replicate:

1. Ensure the 773 tag is available in the framework.
2. Ensure the system preference EasyAnalyticalRecords is set to don't show
3. Ensure UseControlNumber is set to use.
4. Add a serial record, ensure the Leader space 7 is a serial.
5. From the new serial record, Edit - Add new child record.
6. Add the child record and ensure the 773 $w has the 001 control number from the host/parent record. Also ensure the Leader space 7 is a serial component part.
7. Save the record.

The child record should have an "In: Serial Title" link in the bibliographic record detail view. Click on this link to return to the parent record.

Notice the parent record is missing the "Analytics: Show Analytics" Link.
Comment 1 Katrin Fischer 2024-06-17 08:36:37 UTC
Hi Esther, some additional questions that might help resolve this:

* Are you using Elasticsearch or Zebra?
* Has this worked before or did it break after an update?
* When using Elasticsearch: do you have a cni index defined for 003 in your search mappings?
Comment 2 Esther Melander 2024-06-17 16:01:44 UTC
The problem appeared in 23.11, which is using ElasticSearch.

It works in 23.05, which is using Zebra.

I will update when I know more about the ElasticSearch mapping.
Comment 3 Katrin Fischer 2024-06-17 16:16:09 UTC
I think since 22.11 we do a background search that makes the link only appear, if there are results to the search. If it is an updated system the control-number-identifier (cni) index might not be there or filled. But that's just a first idea.
Comment 4 Esther Melander 2024-06-18 16:39:19 UTC
It looks like the 23.11 test site had an older ES index. Updating it appears to have solved the problem. I will go ahead and mark this bug as resolved.