Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Nick Clemens 6754e92c1c Bug 25760: (bug 15422 follow-up) Display record with hold ratio greater than or equal to the value entered
On bug 15422 we made it so that only holds with copies to buy to acheive the holds ratio
showed

Users have reported that they want to see record where there are 0 copies to buy i.e.
the holds ration matches the value entered

This patch changes the criteria for returning holds to be if the ratio for a given title
is equal to or greater then the ratio specified in the form

I also renamed 'ratiocalc' to 'copies_to_buy' since that is what is contains

Test plan:
1. Create bibliographic records with 1, 2 and 3 items
2. Place 1 hold on each of them
3. Go to the Hold ratios report and search with ratio = 1, 2 then 3
4. You expect to see:
   the title with 1 item with ratio 1
   nothing otherwise
5. Place another hold on each of the record
6. Repeat 3 you expect to see:
   titles with 1 or 2 items with ratio 1
   title with 1 item for ratio 2
   nothing with ratio 3
7. Place another hold on each of the record
8. Repeat 3 you expect to see:
   titles with 1 or 2 or 3 items with ratio 1
   title with 1 item or 2 items for ratio 2
   nothing with ratio 3
9. Make sure there is no regression in the test plan of bug 15422

Comments from Frank Hansen:

Some comments.
When I adding the third hold on each record in step 7, It will result in
the following result:

titles with 1 or 2 or 3 items with ratio 1
title with 1 items with ratio 2 because the title with 2 items will get
a ratio of 1.50 and not 2.
title with 1 items with with ratio 3

Signed-off-by: Frank Hansen <frank.hansen@ub.lu.se>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-10 15:46:55 +02:00
..
article-requests.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
bookcount.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
branchoverdues.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
branchtransfers.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
checkout-notes.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
circulation-home.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
circulation.tt Bug 27924: Display number of holds awaiting pickup on check out screens 2021-04-23 10:31:39 +02:00
circulation_batch_checkouts.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
offline-mf.tt
offline.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
on-site_checkouts.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
overdue.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
pendingreserves.tt Bug 27790: (QA follow-up) Fix offsets due to new columns 2021-04-27 16:23:49 +02:00
printslip.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
renew.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
request-article.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
reserveratios.tt Bug 25760: (bug 15422 follow-up) Display record with hold ratio greater than or equal to the value entered 2021-05-10 15:46:55 +02:00
returns.tt Bug 28148: Remove 'print' class from 'Print transfer slip' when transfer exists 2021-04-28 11:16:14 +02:00
set-library.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
transfers_to_send.tt Bug 26703: (follow-up) fixed some page titles in files 2021-04-22 09:09:28 +02:00
transferstoreceive.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
view_holdsqueue.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00
waitingreserves.tt Bug 26703: circ folder 2021-04-21 11:16:34 +02:00