[Bug 25676] New: Staff client catalog search shows incorrect item status under location
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 Bug ID: 25676 Summary: Staff client catalog search shows incorrect item status under location Change sponsored?: --- Product: Koha Version: 19.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: joe@flo.org QA Contact: testopia@bugs.koha-community.org Created attachment 105553 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105553&action=edit Incorrect search result example If you have an item that has a Lost status of "Lost" it will appear as "long overdue" in staff client search results. See attached screenshots for an example. This should display the current Lost status instead. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 --- Comment #1 from Joe Sikowitz <joe@flo.org> --- Created attachment 105554 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105554&action=edit Correct item record example -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com --- Comment #2 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Looking at Joe's site, this seems to be particular to items that are set to itemlost=1 (which should show "Lost") but are also still checked out. select biblionumber from items where onloan is not null and itemlost=1 Bibs listed in this report display "long overdue" as Joe has described. select biblionumber from items where onloan is null and itemlost=1 Bibs listed in this report show "Lost" as they should -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I believe the issue is here: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt: ([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %] And that leads us to Search.pm making wrong assumptions: # if something's checked out and lost, mark it as 'long overdue' if ( $item->{itemlost} ) { $onloan_items->{$key}->{longoverdue}++; $longoverdue_count++; } And now we have an issue: we can't guarantee which value is the long overdue value lost value. If a library isn't using the long overdue prefs but using command line parameters. So maybe we need to change this to just show the lost description as is. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|19.11 |master Severity|enhancement |normal -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 105684 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105684&action=edit Bug 25676: Display the correct Lost value in the result search -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 --- Comment #5 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I had a try to fix this, but it's confusing. About "(1, 1 Lost)", I never managed to display more that 1 on the same line. For onloan items, I can only see 1 line per line (they are not grouped if same code, location, cn, etc.) The idea here was to display: (2, 1 Lost, 1 Long overdue), depending on the description in the LOST av category. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> ---
The idea here was to display: (2, 1 Lost, 1 Long overdue), depending on the description in the LOST av category.
I think maybe we should just give up on the grouping and say: 1 Lost, 1 Long overdue -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25676 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Staff client catalog search |Staff interface catalog |shows incorrect item status |search shows incorrect item |under location |status under location -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org