Main Koha release repository https://koha-community.org
Find a file
Kyle M Hall fcaa6f35c0 Bug 13636 - Staff search results item status incorrect for holds
Imagine this scenario: we have one record with four items. Two of those
items are checked out, one of those items is a waiting hold, and one of
those items is available. We would expect to see this on the search
results page. Instead, we will see both non-checked out items as
unavailable due to waiting holds.

This is due to a semantic issue GetReserveStatus.
C4::Search::searchResults uses GetReserveStatus to get the reserve
status of each item, but unlike all other calls to the sub, this one
passes in not only itemnumber, but biblionumber.

When no reserve is found for the available item, the subroutine uses the
biblionumber to grab what is essentially an arbitrary reserve to use for
the status. This makes no sense and this functionality should be
entirely removed from the subroutine so regressions like this will be
prevented in the future.

Test Plan:
1) Create one record with 4 items
   a) check two of the items out to patrons
   b) set one of the items as a waiting hold
   c) leave the fourth item as available
2) Run a search where this record will be in the results list
3) Note that the results list 2 items on loan, two unavailable
4) Apply this patch, reload the search results
5) Note that the results list 1 available, 2 on loan, 1 unavailable

Signed-off-by: John Andrews <jandrews@washoecounty.us>
Signed-off-by: Sheila Kearns <sheila.kearns@state.vt.us>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Note: This is for the staff search result list!

Works as expected.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-02-11 10:20:35 -03:00
acqui Bug 12323 [SIGNED OFF] - Acquisitions search results fixed in order of biblionumber 2015-02-10 11:12:54 -03:00
admin Bug 13401 - sort branches alphabetically in admin/authorised_values.pl 2015-02-09 13:41:33 -03:00
authorities Bug 11961 - This patch fix the QA critical error, fix the capitalization and the UNIMARC support. 2015-01-24 18:19:10 -03:00
basket Bug 11944: Fix encoding on sending emails 2015-01-13 13:07:24 -03:00
C4 Bug 13636 - Staff search results item status incorrect for holds 2015-02-11 10:20:35 -03:00
catalogue
cataloguing Bug 13268: the size should not be emptied in pl script 2015-02-05 14:46:41 -03:00
circ Bug 13299 - Add home library column to the holds ratios report 2015-02-09 15:24:44 -03:00
course_reserves
debian Bug 7904 - remove unnecessary path from SIP script 2015-02-05 14:44:48 -03:00
docs Bug 7143: Adding releases to history file 2015-01-21 11:04:09 -03:00
errors
etc Bug 11927 - Add greek support to CHR (followup) 2015-01-22 18:22:04 -03:00
install_misc GRS-1 deprecation leftover used by jenkins 2015-01-13 15:30:31 -03:00
installer Bug 5511: DBRev 3.19.00.010 2015-02-09 17:00:20 -03:00
Koha Bug 13431 [QA Follow-up]: Shared FastMmap file causes issues 2015-02-11 10:18:56 -03:00
koha-tmpl Bug 13670 - Patron holds table not loading when holds tab anchor is used 2015-02-10 11:25:03 -03:00
labels
members Bug 13602: (QA followup) take advantage of the defined-or operator 2015-02-09 13:32:50 -03:00
misc Bug 13240 [QA Followup] 2015-02-10 14:08:02 -03:00
offline_circ
opac
OpenILS
patron_lists
patroncards
plugins
reports
reserve
reviews
rotating_collections
selenium
serials
services
skel
sms Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
suggestion
svc
t Bug 13319: Fix Koha::Acq::Order should set parent_ordernumber 2015-02-10 11:24:08 -03:00
tags
test Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
tmp/modified_authorities
tools Bug 12543 - Add userid as matchpoint for "Import patrons" tool 2015-02-09 13:45:06 -03:00
virtualshelves
xt
.editorconfig
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap
about.pl Bug 13404 [QA Followup] 2015-02-09 13:42:32 -03:00
changelanguage.pl
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl
INSTALL.debian
INSTALL.fedora7
INSTALL.opensuse
INSTALL.ubuntu
koha_perl_deps.pl
kohaversion.pl Bug 5511: DBRev 3.19.00.010 2015-02-09 17:00:20 -03:00
LICENSE
mainpage.pl
Makefile.PL Bug 11927 - Add gr install option 2015-01-21 10:58:58 -03:00
MANIFEST.SKIP
README
README.robots
rewrite-config.PL

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 3 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/