Bug 35545 - UNIMARC: if $9 is set and EasyAnalytics is off, the item will still show on the record
Summary: UNIMARC: if $9 is set and EasyAnalytics is off, the item will still show on t...
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-12 08:34 UTC by Igor A. Sychev
Modified: 2025-04-18 07:35 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
staff (108.27 KB, image/png)
2024-01-09 05:31 UTC, Igor A. Sychev
Details
MARC preview (82.07 KB, image/png)
2024-01-09 05:34 UTC, Igor A. Sychev
Details
OPAC (139.07 KB, image/png)
2024-01-09 05:37 UTC, Igor A. Sychev
Details
item number 669653 (82.58 KB, image/png)
2024-01-10 08:30 UTC, Igor A. Sychev
Details
Bug 35545: Unexpected items in PRO (UNIMARC-only) (1.12 KB, patch)
2025-02-25 11:46 UTC, Frédéric Demians
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Igor A. Sychev 2023-12-12 08:34:12 UTC
An "additional" item appears in the staff interface if item = biblionumber. This effect is not observed in OPAC.
Comment 1 Katrin Fischer 2023-12-18 18:00:06 UTC
Can you give some more information or maybe a screenshot?

Do you have EasyAnalytics activated?
Comment 2 Caroline Cyr La Rose 2023-12-18 18:01:54 UTC
I cannot recreate this situation. I have a lot of records where the biblionumber is the same as the itemnumber and there is no extra item.

Can you provide a test plan?
Comment 3 Igor A. Sychev 2024-01-09 05:31:03 UTC
Created attachment 160680 [details]
staff
Comment 4 Igor A. Sychev 2024-01-09 05:34:14 UTC
Created attachment 160681 [details]
MARC preview
Comment 6 Igor A. Sychev 2024-01-09 05:37:27 UTC
Created attachment 160682 [details]
OPAC
Comment 7 Caroline Cyr La Rose 2024-01-09 14:22:55 UTC
I looked at the screenshots and noticed that the item that appears in staff but not in the OPAC is withdrawn. Is it possible OPACHiddenItems hides withdrawn items from the OPAC?

In the staff screenshot, the biblionumber seems to be 151173 and the itemnumber is 669653.
Comment 8 Igor A. Sychev 2024-01-10 08:30:15 UTC
Created attachment 160731 [details]
item number 669653

Item is withdrawn.
Item number - 669653.
biblionumber - 151173.
Comment 9 Igor A. Sychev 2024-01-10 08:43:20 UTC
In the second screenshot, the biblionumber is 669655.
461$9 - link to biblionumber 669653. 
Perhaps it does not work correctly.

Why itemnumber 669653 from biblionumber 151173 "appear" in biblionumber 669655?
Comment 10 Katrin Fischer 2024-01-12 08:27:25 UTC
Are you using EasyAnalytics?
Comment 11 Katrin Fischer 2024-01-12 08:29:22 UTC
I don't know the correct UNIMARC field, but if 461 is the field for linking analytics and $9 is a valid biblionumber... it all behaves like it should. Easyanalytics is used to show items from one record on another.
Comment 12 Igor A. Sychev 2024-01-15 03:21:44 UTC
EasyAnalyticalRecords - Don’t show (Default)

UNIMARC
461 Set
464 Piece-analytic
Comment 13 Katrin Fischer 2024-01-22 20:12:54 UTC
My guess is for this to be a side effect of EasyAnalytics - maybe something where the pref is not checked properly?
If you remove the $9, the item goes away? What is the meaning of $9 in your 461?
Comment 14 Igor A. Sychev 2024-01-23 05:36:19 UTC
How do I check EasyAnalytics?
If delete $9, the item "disappears".
$9 is created automatically when using /cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl
Comment 15 Katrin Fischer 2024-01-23 08:55:19 UTC
If you could confirm that EasyAnalytics system preference is turned off than I'd say it's a bug on the check for the pref.

But also: Would the item showing up make sense otherwise? The idea is that you can show the same item on multiple records with Analytics, so patrons can see if it's checked out on the host record and on the analytical (articles, etc.) records. I don't know UNIMARC well enough to answer that.
Comment 16 Frédéric Demians 2025-02-25 11:36:29 UTC
I confirm this bug, and that it is a bug. This is an UNIMARC-only bug.

Even if EasyAnalytics isn't enabled, Koha will get related items from 773$9 (MARC21) or 461$9 for UNIMARC. I suppose that it make sense to always show related items to the librarians...

But for UNIMARC, there is a big issue, 461$9 isn't at all supposed to contain the itemnumber of an item. It contains the biblionumber of a related biblio record. So the biblionumber is used to retrieve an item. You can image the confusion, and the unpredictability.

My understanding is that analyticals aren't implemented at all for UNIMARC. So we should just stop trying to mimic something that has no purpose for UNIMARC installations.
Comment 17 Frédéric Demians 2025-02-25 11:46:30 UTC
Created attachment 178642 [details] [review]
Bug 35545: Unexpected items in PRO (UNIMARC-only)

In PRO, for UNIMARC installation, analytical related items are retrieved
based on 461$9 content. But it can't work (like with MARC21 773$9 field)
because 461$9 contains the biblionumber of a related biblio record. This
must be completly disabled for UNIMARC.
Comment 18 Fridolin Somers 2025-02-25 16:13:51 UTC
See Bug 37964 related.

We have several UNIMARC Koha that use this feature with 461$9.
Looks like 461$0 contains biblionumber.
The searchengine configuration must be adapted for this usage.

But I think value builder unimarc_field_4XX.pl should not be used with EasyAnalyticalRecords system preference.

As long as turning off EasyAnalyticalRecords works, I'd say we should not remove this feature for UNIMARC.

I set to discussion.
Comment 19 Frédéric Demians 2025-02-25 17:13:06 UTC
Thanks Fridolin. I wasn't aware analytical feature was working with UNIMARC. For me Bug 37964 is the solution. But it means that linking biblio records together with unimarc_field_4xx plugin, and using analytical feature is not possible. It's unfortunate. But I suppose this issue could be fixed elsewhere and differently.

This bug could be closed. No?
Comment 20 Fridolin Somers 2025-02-26 09:15:18 UTC
I'd say close ;)
Comment 21 Igor A. Sychev 2025-04-18 07:35:20 UTC
After updating to 24.11.03, the error "disappeared". Thanks!