Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Jonathan Druart 87afa5142b Bug 17736: Replace GetReservesFromBiblionumber with Koha::Biblio->holds
The C4::Reserve::GetReservesFromBiblionumber took 3 parameters, the
biblionumber, an optional itemnumber and a "all_dates" flag.
If set, the subroutine returned all the holds placed on a given bibliographic
record, even the ones placed in the future. Almost all of the calls had this
flag set, they will be replaced with a call to Koha::Biblio->holds.

But 5 did not have it:
- C4::Biblio::DelBiblio
-tools/batch_delete_records.pl
=> These 2 were wrong, we want to retrieve the holds to cancel them
before deleting the record. We need to get all the holds, even the ones
placed in the future /!\ CHANGE IN THE BEHAVIOR

- acqui/parcel.pl
=> 1 call per item were made to this subroutine. They have been replaced
with only 1 call to the new method Koha::Biblios->holds_placed_before_today
Then we filter on the itemnumbers.
I think this is wrong: we need the number of holds to know if the record
can be deleted, so even if future holds exist, the deletion should not
be possible.

- serials/routing-preview.pl
- C4::ILSDI::Services::GetRecords
- C4::SIP::ILS::Item->new
=> Seems ok, we just one to display holds placed before today

Test plan:
I would suggest to test this patch with patches from bug 17737 and bug 17738,
to place different kind of holds (biblio and item level, future and
past).
Then do a whole workflow to detect bug, view a record, delete record,
order, place a hold on an item which has been ordered, etc.
The hold's informations should always be the same without or without
these patches.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-03-31 12:02:14 +00:00
..
automatic_item_modification_by_age.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batch_delete_records.tt Bug 17736: Replace GetReservesFromBiblionumber with Koha::Biblio->holds 2017-03-31 12:02:14 +00:00
batch_record_modification.tt Bug 16239 [CSS Follow-up] Upgrade Bootstrap in the staff client 2017-01-13 14:41:23 +00:00
batchMod-del.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batchMod-edit.tt Bug 18095: Batch item modification: Better message if no item is modified 2017-02-14 14:31:44 +00:00
batchMod.tt
cleanborrowers.tt Bug 16966: [QA Follow-up] Check count, not size in template 2017-03-03 17:20:05 +00:00
csv-profiles.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
export.tt Bug 18087: Handle invalid filetypes 2017-03-03 17:07:39 +00:00
holidays.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
import_borrowers.tt Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
inventory.tt Bug 18099 - Put call number in its own column on inventory screen 2017-02-17 17:09:22 +00:00
koha-news.tt Bug 17960: Rename opac_news.new with opac_news.content 2017-02-06 17:42:12 +00:00
letter.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
manage-marc-import.tt Bug 18063: Remove dead code from tools/manage-marc-import.tt 2017-02-17 15:47:31 +00:00
marc_modification_templates.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
modborrowers.tt Bug 11932: Move delete checkbox on patron modification to right 2017-02-17 17:11:59 +00:00
overduerules.tt Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
picture-upload.tt Bug 17146: Fix CSRF in picture-upload.pl 2016-09-15 13:33:58 +00:00
quotes-upload.tt Bug 16513 - Improvements and fixes for quote upload process 2016-06-24 13:47:34 +00:00
quotes.tt Bug 16513 - Improvements and fixes for quote upload process 2016-06-24 13:47:34 +00:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
tools-home.tt Revert "Bug 12461 - Add patron clubs feature" 2017-02-26 20:41:27 -05:00
upload-images.tt Bug 18040: Updating buttons in Tools -> Upload local cover image 2017-02-17 15:46:39 +00:00
upload.tt Bug 14854: Add DataTables on upload results table 2017-02-17 11:36:06 +00:00
viewlog.tt Bug 15758: Koha::Libraries - Remove GetBranchName 2016-09-08 14:36:01 +00:00