Bug 19703 - Some items have the incorrect item type displayed in the 'Most popular' section in OPAC
Summary: Some items have the incorrect item type displayed in the 'Most popular' secti...
Status: RESOLVED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-27 21:23 UTC by Alex Buckley
Modified: 2023-10-01 14:16 UTC (History)
0 users

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


Attachments
All the item types of fiction in this screenshot should be Express fiction & Non-fiction (73.43 KB, image/png)
2017-11-27 21:48 UTC, Alex Buckley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buckley 2017-11-27 21:23:42 UTC
Where there are several bibliographic records with associated items of different itemtypes then Most popular displays the incorrect itemtype.
Comment 1 Alex Buckley 2017-11-27 21:48:43 UTC
Created attachment 69403 [details]
All the item types of fiction in this screenshot should be Express fiction & Non-fiction

In this Koha instance the item type 'Express fiction & Non-fiction' are set to be hidden by the opachiddenitems syspref.

All items in the screenshot of the Most popular section of OPAC except for Fifty fifty are giving a 404 error. That is because Most popular feature is incorrectly displaying hidden items (see bug 19704).

All of these items have multiple bibliographic records with associated items with differing itemtypes. 

For example 'the store' item has 3 bibliographic records with 1 item with the itemtype 'talking book', another item with the item type 'fiction' and another 4 item records with the item type 'Express fiction and non-fiction'. Now the itemtype 'express fiction and non-fiction' is set to be hidden in opachiddenitems syspref. 

The itemtype for 'The store' in the screenshot is incorrect because it is giving a 404 error when selected (this means it is item type 'express fiction and non-fiction'), however the Most popular feature is displaying an item type of 'fiction'.
Comment 2 Owen Leonard 2018-01-12 13:53:09 UTC
The query in Circulation.pm is pulling itemtype from biblioitems, so it looks like the information being displayed is accurate if unexpected. I'm not sure how one reconciles the notion of item-level item types with a limit on item type which groups by biblionumber.
Comment 3 Katrin Fischer 2023-10-01 14:16:28 UTC
I believe this is the intended behavior right now - showing the itemtype from biblio level. Please re-open if you disagree.