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: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-12 08:34 UTC by Igor A. Sychev
Modified: 2024-01-23 08:55 UTC (History)
3 users (show)

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


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

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.