[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Jonathan Druartchanged: What|Removed |Added Blocks||19367 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19367 [Bug 19367] $biblio variable redefined in same scope in ISBDdetail -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Katrin Fischerchanged: What|Removed |Added Status|Pushed to Master|RESOLVED Resolution|--- |FIXED CC||katrin.fisc...@bsz-bw.de --- Comment #62 from Katrin Fischer --- This won't get ported back to 16.11.x as it is an enhancement. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Kyle M Hallchanged: What|Removed |Added CC||k...@bywatersolutions.com Status|Passed QA |Pushed to Master --- Comment #61 from Kyle M Hall --- Pushed to master for 17.05, thanks Jonathan, Marcel! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Status|Signed Off |Passed QA --- Comment #60 from Martin Renvoize --- Tested pretty thoroughly and is looking solid to me. Thanks for the efforys Jonathan and for the thorough testing Marcel. Passing QA! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59860|0 |1 is obsolete|| --- Comment #59 from Martin Renvoize --- Created attachment 61416 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61416=edit Bug 17736: Fix typo ->new vs ->next while ->new is terrible, let's call that a typo... Signed-off-by: Marcel de Rooy opac-detail works again ! Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59855|0 |1 is obsolete|| --- Comment #58 from Martin Renvoize --- Created attachment 61415 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61415=edit Bug 17736: [QA Follow-up] Script basket.pl is not Plack compliant Several warnings like: Variable "$confirm_pref" is not available at /usr/share/koha/masterclone/acqui/basket.pl line 507. Primarily caused by sub edi_close_and_order. Easy fix. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59854|0 |1 is obsolete|| --- Comment #57 from Martin Renvoize --- Created attachment 61414 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61414=edit Bug 17736: [QA Follow-up] We do not need GetItemHolds in acqui The solution of Jonathan can be applied in two other cases, effectively making GetItemHolds obsolete. Test plan: [1] Git grep on GetItemHolds [2] Add an order, place a hold, delete order. [3] Add an order, receive, place hold, delete order. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59852|0 |1 is obsolete|| --- Comment #55 from Martin Renvoize --- Created attachment 61412 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61412=edit Bug 17736: [QA Follow-up] Wrong biblionumber in acqui/parcel Trivial fix. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59851|0 |1 is obsolete|| --- Comment #54 from Martin Renvoize --- Created attachment 61411 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61411=edit Bug 17736: [QA Follow-up] Solve warning from qa tools on Holds.t FAIL t/db_dependent/Holds.t "my" variable $hold masks earlier declaration in same scope Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59853|0 |1 is obsolete|| --- Comment #56 from Martin Renvoize --- Created attachment 61413 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61413=edit Bug 17736: [QA Follow-up] Crashes in basket.pl and parcel.pl Crash in basket.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/basket.pl line 466. Comes from a biblionumber == NULL in aqorders where I cancelled the order and deleted the biblio. Crash in parcel.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/parcel.pl line 246. Similar fix. Trivial fixes indeed. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59850|0 |1 is obsolete|| --- Comment #53 from Martin Renvoize --- Created attachment 61410 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61410=edit Bug 17736: [Follow-up] Resolve inherited AUTOLOAD for non-method errors Like: Use of inherited AUTOLOAD for non-method Koha::Biblio::GetMarcBiblio() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Use of inherited AUTOLOAD for non-method Koha::Biblio::GetRecordValue() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Resolved by not importing them but fully qualifying them. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59849|0 |1 is obsolete|| --- Comment #52 from Martin Renvoize --- Created attachment 61409 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61409=edit Bug 17736: [Follow-up] Rename to current_holds It is not about when the hold was 'placed' but if the hold pertains to the future or not. Test plan: [1] Git grep on holds_placed_before_today. [2] Run t/db_dependent/Koha/Biblios.t [3] Run t/db_dependent/Reserves.t Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59848|0 |1 is obsolete|| --- Comment #51 from Martin Renvoize --- Created attachment 61408 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61408=edit Bug 17736: Remove C4::Reserves::GetReservesFromBiblionumber At this point, there should not be any occurrences of GetReservesFromBiblionumber left in the codebase Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59846|0 |1 is obsolete|| --- Comment #49 from Martin Renvoize --- Created attachment 61406 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61406=edit Bug 17736: Add the Koha::Biblio->holds_placed_before_today method Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added Attachment #59847|0 |1 is obsolete|| --- Comment #50 from Martin Renvoize --- Created attachment 61407 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61407=edit 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 Signed-off-by: Martin Renvoize -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Martin Renvoizechanged: What|Removed |Added QA Contact|testo...@bugs.koha-communit |martin.renvoize@ptfs-europe |y.org |.com CC||martin.renvoize@ptfs-europe ||.com -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #59859|0 |1 is obsolete|| --- Comment #48 from Marcel de Rooy --- Created attachment 59860 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59860=edit Bug 17736: Fix typo ->new vs ->next while ->new is terrible, let's call that a typo... Signed-off-by: Marcel de Rooy opac-detail works again ! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #47 from Jonathan Druart--- Created attachment 59859 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59859=edit Bug 17736: Fix typo ->new vs ->next while ->new is terrible, let's call that a typo... -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #46 from Marcel de Rooy--- trivial rebase on c4/biblio; giving 17737 a try -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58645|0 |1 is obsolete|| --- Comment #45 from Marcel de Rooy --- Created attachment 59855 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59855=edit Bug 17736: [QA Follow-up] Script basket.pl is not Plack compliant Several warnings like: Variable "$confirm_pref" is not available at /usr/share/koha/masterclone/acqui/basket.pl line 507. Primarily caused by sub edi_close_and_order. Easy fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58641|0 |1 is obsolete|| --- Comment #42 from Marcel de Rooy --- Created attachment 59852 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59852=edit Bug 17736: [QA Follow-up] Wrong biblionumber in acqui/parcel Trivial fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58642|0 |1 is obsolete|| --- Comment #43 from Marcel de Rooy --- Created attachment 59853 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59853=edit Bug 17736: [QA Follow-up] Crashes in basket.pl and parcel.pl Crash in basket.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/basket.pl line 466. Comes from a biblionumber == NULL in aqorders where I cancelled the order and deleted the biblio. Crash in parcel.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/parcel.pl line 246. Similar fix. Trivial fixes indeed. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58643|0 |1 is obsolete|| --- Comment #44 from Marcel de Rooy --- Created attachment 59854 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59854=edit Bug 17736: [QA Follow-up] We do not need GetItemHolds in acqui The solution of Jonathan can be applied in two other cases, effectively making GetItemHolds obsolete. Test plan: [1] Git grep on GetItemHolds [2] Add an order, place a hold, delete order. [3] Add an order, receive, place hold, delete order. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58639|0 |1 is obsolete|| --- Comment #40 from Marcel de Rooy --- Created attachment 59850 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59850=edit Bug 17736: [Follow-up] Resolve inherited AUTOLOAD for non-method errors Like: Use of inherited AUTOLOAD for non-method Koha::Biblio::GetMarcBiblio() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Use of inherited AUTOLOAD for non-method Koha::Biblio::GetRecordValue() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Resolved by not importing them but fully qualifying them. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58640|0 |1 is obsolete|| --- Comment #41 from Marcel de Rooy --- Created attachment 59851 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59851=edit Bug 17736: [QA Follow-up] Solve warning from qa tools on Holds.t FAIL t/db_dependent/Holds.t "my" variable $hold masks earlier declaration in same scope Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58636|0 |1 is obsolete|| --- Comment #37 from Marcel de Rooy --- Created attachment 59847 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59847=edit 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 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58638|0 |1 is obsolete|| --- Comment #39 from Marcel de Rooy --- Created attachment 59849 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59849=edit Bug 17736: [Follow-up] Rename to current_holds It is not about when the hold was 'placed' but if the hold pertains to the future or not. Test plan: [1] Git grep on holds_placed_before_today. [2] Run t/db_dependent/Koha/Biblios.t [3] Run t/db_dependent/Reserves.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58637|0 |1 is obsolete|| --- Comment #38 from Marcel de Rooy --- Created attachment 59848 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59848=edit Bug 17736: Remove C4::Reserves::GetReservesFromBiblionumber At this point, there should not be any occurrences of GetReservesFromBiblionumber left in the codebase Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58635|0 |1 is obsolete|| --- Comment #36 from Marcel de Rooy --- Created attachment 59846 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59846=edit Bug 17736: Add the Koha::Biblio->holds_placed_before_today method Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #35 from Marcel de Rooy--- Removed a debug warn. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58644|0 |1 is obsolete|| --- Comment #34 from Marcel de Rooy --- Created attachment 58645 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58645=edit Bug 17736: [QA Follow-up] Script basket.pl is not Plack compliant Several warnings like: Variable "$confirm_pref" is not available at /usr/share/koha/masterclone/acqui/basket.pl line 507. Primarily caused by sub edi_close_and_order. Easy fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Status|Needs Signoff |Signed Off --- Comment #33 from Marcel de Rooy --- This got out of hand somewhere in the process ;) But it works now (imo). The logic in basket.tt about showing hold numbers is still not working as it should. But should be further dealt with on another report. In parcel I used holds now instead of current_holds. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Version|unspecified |master Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #28 from Marcel de Rooy--- Created attachment 58640 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58640=edit Bug 17736: [QA Follow-up] Solve warning from qa tools on Holds.t FAIL t/db_dependent/Holds.t "my" variable $hold masks earlier declaration in same scope Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #32 from Marcel de Rooy--- Created attachment 58644 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58644=edit Bug 17736: [QA Follow-up] Script basket.pl is not Plack compliant Several warnings like: Variable "$confirm_pref" is not available at /usr/share/koha/masterclone/acqui/basket.pl line 507. Primarily caused by sub edi_close_and_order. Easy fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #31 from Marcel de Rooy--- Created attachment 58643 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58643=edit Bug 17736: [QA Follow-up] We do not need GetItemHolds in acqui The solution of Jonathan can be applied in two other cases, effectively making GetItemHolds obsolete. Test plan: [1] Git grep on GetItemHolds [2] Add an order, place a hold, delete order. [3] Add an order, receive, place hold, delete order. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #29 from Marcel de Rooy--- Created attachment 58641 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58641=edit Bug 17736: [QA Follow-up] Wrong biblionumber in acqui/parcel Trivial fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #30 from Marcel de Rooy--- Created attachment 58642 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58642=edit Bug 17736: [QA Follow-up] Crashes in basket.pl and parcel.pl Crash in basket.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/basket.pl line 466. Comes from a biblionumber == NULL in aqorders where I cancelled the order and deleted the biblio. Crash in parcel.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/parcel.pl line 246. Similar fix. Trivial fixes indeed. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #27 from Marcel de Rooy--- Created attachment 58639 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58639=edit Bug 17736: [Follow-up] Resolve inherited AUTOLOAD for non-method errors Like: Use of inherited AUTOLOAD for non-method Koha::Biblio::GetMarcBiblio() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Use of inherited AUTOLOAD for non-method Koha::Biblio::GetRecordValue() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Resolved by not importing them but fully qualifying them. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #25 from Marcel de Rooy--- Created attachment 58637 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58637=edit Bug 17736: Remove C4::Reserves::GetReservesFromBiblionumber At this point, there should not be any occurrences of GetReservesFromBiblionumber left in the codebase Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #26 from Marcel de Rooy--- Created attachment 58638 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58638=edit Bug 17736: [Follow-up] Rename to current_holds It is not about when the hold was 'placed' but if the hold pertains to the future or not. Test plan: [1] Git grep on holds_placed_before_today. [2] Run t/db_dependent/Koha/Biblios.t [3] Run t/db_dependent/Reserves.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #24 from Marcel de Rooy--- Created attachment 58636 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58636=edit 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 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added Attachment #58106|0 |1 is obsolete|| Attachment #58107|0 |1 is obsolete|| Attachment #58108|0 |1 is obsolete|| Attachment #58628|0 |1 is obsolete|| Attachment #58629|0 |1 is obsolete|| Attachment #58630|0 |1 is obsolete|| Attachment #58631|0 |1 is obsolete|| Attachment #58632|0 |1 is obsolete|| Attachment #58633|0 |1 is obsolete|| Attachment #58634|0 |1 is obsolete|| --- Comment #23 from Marcel de Rooy --- Created attachment 58635 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58635=edit Bug 17736: Add the Koha::Biblio->holds_placed_before_today method Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #22 from Marcel de Rooy--- Created attachment 58634 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58634=edit Bug 17736: [QA Follow-up] Script basket.pl is not Plack compliant Several warnings like: Variable "$confirm_pref" is not available at /usr/share/koha/masterclone/acqui/basket.pl line 507. Primarily caused by sub edi_close_and_order. Easy fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #21 from Marcel de Rooy--- Created attachment 58633 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58633=edit Bug 17736: [QA Follow-up] We do not need GetItemHolds in acqui The solution of Jonathan can be applied in two other cases, effectively making GetItemHolds obsolete. Test plan: [1] Git grep on GetItemHolds [2] Add an order, place a hold, delete order. [3] Add an order, receive, place hold, delete order. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #20 from Marcel de Rooy--- Created attachment 58632 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58632=edit Bug 17736: [QA Follow-up] Crashes in basket.pl and parcel.pl Crash in basket.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/basket.pl line 466. Comes from a biblionumber == NULL in aqorders where I cancelled the order and deleted the biblio. Crash in parcel.pl: Can't call method "holds" on an undefined value at /usr/share/koha/masterclone/acqui/parcel.pl line 246. Similar fix. Trivial fixes indeed. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #19 from Marcel de Rooy--- Bug party! Do not assume that find gives you a Koha Object. Just see the following examples :) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #18 from Marcel de Rooy--- Created attachment 58631 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58631=edit Bug 17736: [QA Follow-up] Wrong biblionumber in acqui/parcel Trivial fix. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #17 from Marcel de Rooy--- Ha: my $biblio = Koha::Biblios->find( $order->{ordernumber} ); -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #16 from Marcel de Rooy--- Created attachment 58630 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58630=edit Bug 17736: [QA Follow-up] Solve warning from qa tools on Holds.t FAIL t/db_dependent/Holds.t "my" variable $hold masks earlier declaration in same scope Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #15 from Marcel de Rooy--- Created attachment 58629 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58629=edit Bug 17736: [Follow-up] Resolve inherited AUTOLOAD for non-method errors Like: Use of inherited AUTOLOAD for non-method Koha::Biblio::GetMarcBiblio() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Use of inherited AUTOLOAD for non-method Koha::Biblio::GetRecordValue() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Resolved by not importing them but fully qualifying them. Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #14 from Marcel de Rooy--- Resolving a few errors like this too: Use of inherited AUTOLOAD for non-method Koha::Biblio::GetMarcBiblio() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Use of inherited AUTOLOAD for non-method Koha::Biblio::GetRecordValue() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. This happens because perl is looking first in Koha::Object (with AUTOLOAD) before it checks C4/Biblio. Rearranging the module order did not help either (moving C4/Biblio). -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #13 from Marcel de Rooy--- (In reply to Marcel de Rooy from comment #11) > I would rather rename the sub. It is not about when the hold was 'placed' > but if the hold pertains to the future or not. > So my suggestion would be: Koha::Biblio->current_holds. And also note that before today is not correct: should include today too. Added a proposal patch. Still testing. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #12 from Marcel de Rooy--- Created attachment 58628 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58628=edit Bug 17736: [Follow-up] Rename to current_holds It is not about when the hold was 'placed' but if the hold pertains to the future or not. Test plan: [1] Git grep on holds_placed_before_today. [2] Run t/db_dependent/Koha/Biblios.t [3] Run t/db_dependent/Reserves.t Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #11 from Marcel de Rooy--- I would rather rename the sub. It is not about when the hold was 'placed' but if the hold pertains to the future or not. So my suggestion would be: Koha::Biblio->current_holds. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Marcel de Rooychanged: What|Removed |Added CC||m.de.r...@rijksmuseum.nl --- Comment #10 from Marcel de Rooy --- Testing this now -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Bug 17736 depends on bug 17630, which changed state. Bug 17630 Summary: Add the Koha::Biblio->holds method https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17630 What|Removed |Added Status|Pushed to Master|RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #9 from Jonathan Druart--- (In reply to Josef Moravec from comment #4) > Also, when returned reserved document has to be transfered, after the > checking in on target library, everything looks ok. But the hold is not set > to waiting status, see attached screenshot. It was title level hold. Could you give me more information on this please, I don't think I recreate it. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #8 from Jonathan Druart--- Created attachment 58108 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58108=edit Bug 17736: Remove C4::Reserves::GetReservesFromBiblionumber At this point, there should not be any occurrences of GetReservesFromBiblionumber left in the codebase -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Jonathan Druartchanged: What|Removed |Added Attachment #58015|0 |1 is obsolete|| Attachment #58016|0 |1 is obsolete|| Attachment #58017|0 |1 is obsolete|| --- Comment #6 from Jonathan Druart --- Created attachment 58106 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58106=edit Bug 17736: Add the Koha::Biblio->holds_placed_before_today method -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #7 from Jonathan Druart--- Created attachment 58107 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58107=edit 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. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #5 from Josef Moravec--- Created attachment 58057 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58057=edit Hold Detail Maybe the transit was not finished correctly? -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Josef Moravecchanged: What|Removed |Added CC||josef.mora...@gmail.com --- Comment #4 from Josef Moravec --- Created attachment 58056 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58056=edit Holds Trying to delete record with hold (title, or item level) through batch delete records tool: Bibliographic record 1 was not deleted. An error occurred. (The error was: Can't use string ("Koha::Biblio") as a HASH ref while "strict refs" in use at /home/vagrant/kohaclone/Koha/Object.pm line 219. , see the Koha log file for more information). Also, when returned reserved document has to be transfered, after the checking in on target library, everything looks ok. But the hold is not set to waiting status, see attached screenshot. It was title level hold. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Jonathan Druartchanged: What|Removed |Added Depends on|17729 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17729 [Bug 17729] Move IsItemOnHoldAndFound to Koha::Holds -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #2 from Jonathan Druart--- Created attachment 58016 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58016=edit 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. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Jonathan Druartchanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #3 from Jonathan Druart--- Created attachment 58017 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58017=edit Bug 17736: Remove C4::Reserves::GetReservesFromBiblionumber At this point, there should not be any occurrences of GetReservesFromBiblionumber left in the codebase -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 --- Comment #1 from Jonathan Druart--- Created attachment 58015 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58015=edit Bug 17736: Add the Koha::Biblio->holds_placed_before_today method -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Jonathan Druartchanged: What|Removed |Added Depends on||17630 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17630 [Bug 17630] Add the Koha::Biblio->holds method -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17736] Move GetReservesFromBiblionumber to Koha::Biblio->holds
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17736 Jonathan Druartchanged: What|Removed |Added Summary|Move|Move |GetReservesFromBiblionumber |GetReservesFromBiblionumber |to Koha::Biblio->get_holds |to Koha::Biblio->holds -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/