This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 19.05.x has been updated
       via  1fe12aef4d4c676c4a291615e3d5248dd8501014 (commit)
      from  b4858cac96aa0dfad0450cbe72e6b60cbe583779 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1fe12aef4d4c676c4a291615e3d5248dd8501014
Author: Tomas Cohen Arazi <tomasco...@theke.io>
Date:   Mon Aug 12 10:43:35 2019 -0300

    Bug 11677: Use zebra not-onloan-count index for availability limit
    
    This uses the work from bug 18098 to use the count of not-onloan items to
    determine availability.
    
    It keeps the allrecords,AlwaysMatches='' portion of the query so it still 
catches
    records with the tested indexed missing.
    These shouldn't exist except in the case of missing data, but kept for 
future use as well as
    it has no negative impact and minimizes the change made.
    
    Note that availability in this sense means not check out and not lost. 
Transfers, holds, and not for loan statuses
    should probably have indexes built in the same way as bug 18098 (there are 
related FIXMEs in the code)
    
    This updates the export_records file used for testing - adding three 
records with a not-onloan-count (999$x) of 1,
    but marking the item on the third record lost to prevent its return
    
    To test:
       1 - make sure SearchEngine pref is set to 'Zebra'
       2 - Do a search on the OPAC that returns some records
       3 - Find a record in those results with more than one 1 item, and 
checkout 1 leaving 1 (or more) available
       4 - Find another record with only 1 item, check that item out
       5 - Limit opac search to available items - both records disappear
       6 - Apply patch
       7 - Restart all the things
       8 - Repeat search
       9 - First record should show, but no second
      10 - Mark other items of first record as lost, return items on second 
record
      11 - Repeat search, first record should not be in results, second should
      12 - prove -v t/db_dependent/Search.t
    
    Signed-off-by: Hayley Mapley <hayleymap...@catalyst.net.nz>
    Signed-off-by: Tomas Cohen Arazi <tomasco...@theke.io>
    Signed-off-by: Martin Renvoize <martin.renvo...@ptfs-europe.com>
    (cherry picked from commit d4468c5f33f03cbd616527a558c1b67670089642)
    Signed-off-by: Fridolin Somers <fridolin.som...@biblibre.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/Search.pm                                                   |    6 +++---
 t/db_dependent/Search.t                                        |    6 ++----
 t/db_dependent/data/marc21/zebraexport/biblio/exported_records |    2 +-
 3 files changed, 6 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
main Koha release repository
_______________________________________________
koha-commits mailing list
koha-commits@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-commits

Reply via email to