[Koha-bugs] [Bug 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||19921 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19921 [Bug 19921] Error when updating child to adult patron on system with only one adult patron category -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Mason Jameschanged: What|Removed |Added Status|Pushed to Stable|Pushed to Master -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Mason Jameschanged: What|Removed |Added CC||m...@kohaaloha.com Status|Pushed to Master|Pushed to Stable --- Comment #84 from Mason James --- enhancement, passing for 16.05 -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Bug 15407 depends on bug 15629, which changed state. Bug 15629 Summary: Move the C4::Branch related code to Koha::Libraries - part 3 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15629 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||17640 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17640 [Bug 17640] t/db_dependent/Template/Plugin/Categories.t is failing -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||17548 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17548 [Bug 17548] Step 1 of memberentry explodes -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||17495 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17495 [Bug 17495] reports/issues_stats.pl is broken -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||17384 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17384 [Bug 17384] Categories do not display in patron editing form if they have only one category assigned -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #83 from Kyle M Hall--- (In reply to Jonathan Druart from comment #82) > Created attachment 55517 [details] [review] > Bug 15407: Remove 'No method selected!' warnings > > From reserves_stats.pl, there is no library pre-selected. Followup pushed to master, thanks Jonathan! -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #82 from Jonathan Druart--- Created attachment 55517 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=55517=edit Bug 15407: Remove 'No method selected!' warnings >From reserves_stats.pl, there is no library pre-selected. -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #81 from Jonathan Druart--- (In reply to Frédéric Demians from comment #80) > Bugs 14836 and 15629 being in 16.05 branch, is there any insensitive to > backport this one? It adds a lot of changes, so I would wait a couple of months (at least 1) before backporting it and see if it does not produce to many side effects. If there is no special need (hard conflicts), don't do 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Frédéric Demianschanged: What|Removed |Added CC||frede...@tamil.fr --- Comment #80 from Frédéric Demians --- Bugs 14836 and 15629 being in 16.05 branch, is there any insensitive to backport this one? -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Kyle M Hallchanged: What|Removed |Added Status|Passed QA |Pushed to Master --- Comment #79 from Kyle M Hall --- Pushed to master for 16.11, 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #78 from Jonathan Druart--- (In reply to Marcel de Rooy from comment #76) > Patch 3 > It will probably work most of the time, but we assume often here that the > find returned a record and access its columns rightaway without checking. Yes, and it was almost the same before. Except that now the app will explode :) At least we able to catch if something is wrong elsewhere. But you are right, we need to focus on these calls. > Patch 4 > admin/patron-attr-types.pl: Why collecting first in scalar context and later > in list context ? Seeing no difference, just slightly inconsistent.. Fixed in last follow-up. > Passed QA Thanks! -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #77 from Jonathan Druart--- Created attachment 54371 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54371=edit Bug 15407: Uniformise calls in patron-attr-types Does not make sense to call first in list context and later in scalar context. Signed-off-by: Jonathan Druart -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added QA Contact|testo...@bugs.koha-communit |m.de.r...@rijksmuseum.nl |y.org | Patch complexity|--- |Medium patch Status|Signed Off |Passed QA --- Comment #76 from Marcel de Rooy --- QA Comment: Code looks good to me. Tested selectively. Especially checked the code carefully; hard to test everything in limited time. With a quick push we will have some time before release to fix one or two things if needed. The number of follow-ups here shows that we already found some. Bonus points for the rest. Patch 3 It will probably work most of the time, but we assume often here that the find returned a record and access its columns rightaway without checking. Patch 4 admin/patron-attr-types.pl: Why collecting first in scalar context and later in list context ? Seeing no difference, just slightly inconsistent.. Passed 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54352|0 |1 is obsolete|| --- Comment #72 from Marcel de Rooy --- Created attachment 54366 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54366=edit Bug 15407: [QA Follow-up] Fix POD in reserves_stats.pl 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #75 from Marcel de Rooy--- Created attachment 54369 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54369=edit Bug 15407: [QA Follow-up] Confusing cathash removed One of the patches removed %cathash. Some kind of silly remainder was left in a string. Just used as a text field to explain the filters used on borrowers_stats.pl. The filter name cathash is not really easy and also was confusing in relation to the variable. So just a string patch, replacing it with Patron category. NOTE: The output of borrowers_stats.pl with the filters listed, is not one of the most beautiful Koha screens. Furthermore, translatibility of these filters is still an issue to be handled on another report. 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54353|0 |1 is obsolete|| --- Comment #73 from Marcel de Rooy --- Created attachment 54367 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54367=edit Bug 15407: [QA Follow-up] Joubu, add your tests Trivial fix (yes again). 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54346|0 |1 is obsolete|| --- Comment #71 from Marcel de Rooy --- Created attachment 54365 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54365=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). Signed-off-by: Chris Cormack 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54355|0 |1 is obsolete|| --- Comment #74 from Marcel de Rooy --- Created attachment 54368 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54368=edit Bug 15407: (follow-up) Koha::Patron::Categories - replace C4::Category->al Categories.GetName should not have been removed in the previous patch (merge conflict issue). 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54344|0 |1 is obsolete|| --- Comment #69 from Marcel de Rooy --- Created attachment 54363 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54363=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous patch. Signed-off-by: Chris Cormack 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54345|0 |1 is obsolete|| --- Comment #70 from Marcel de Rooy --- Created attachment 54364 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54364=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. Signed-off-by: Chris Cormack 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54343|0 |1 is obsolete|| --- Comment #68 from Marcel de Rooy --- Created attachment 54362 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54362=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) Signed-off-by: Chris Cormack 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Attachment #54342|0 |1 is obsolete|| --- Comment #67 from Marcel de Rooy --- Created attachment 54361 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54361=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). Signed-off-by: Chris Cormack 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added See Also||https://bugs.koha-community ||.org/bugzilla3/show_bug.cgi ||?id=17115 --- Comment #66 from Jonathan Druart --- (In reply to Marcel de Rooy from comment #65) > Another thing :) > > perl t/db_dependent/Reserves.t > 1..74 > ok 1 - use C4::Reserves; > Subroutine C4::Context::userenv redefined at t/db_dependent/Reserves.t line > 45. > ok 2 - CheckReserves Test 1 > ok 3 - CheckReserves() include reserve_id in its response > ok 4 - CheckReserves Test 2 > ok 5 - CheckReserves Test 3 > ok 6 - GetReservesControlBranch returns item home branch when set to > ItemHomeLibrary > ok 7 - GetReservesControlBranch returns patron home branch when set to > PatronLibrary > DBIx::Class::ResultSet::next(): [SQL::Abstract::__ANON__] Fatal: unexpected > operator 'cancellationdate' with undef operand at > /usr/share/koha/masterclone/Koha/Objects.pm line 168 > # Looks like you planned 74 tests but ran 7. > # Looks like your test exited with 255 just after 7. Exsts on master, see bug 17115. -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #65 from Marcel de Rooy--- Another thing :) perl t/db_dependent/Reserves.t 1..74 ok 1 - use C4::Reserves; Subroutine C4::Context::userenv redefined at t/db_dependent/Reserves.t line 45. ok 2 - CheckReserves Test 1 ok 3 - CheckReserves() include reserve_id in its response ok 4 - CheckReserves Test 2 ok 5 - CheckReserves Test 3 ok 6 - GetReservesControlBranch returns item home branch when set to ItemHomeLibrary ok 7 - GetReservesControlBranch returns patron home branch when set to PatronLibrary DBIx::Class::ResultSet::next(): [SQL::Abstract::__ANON__] Fatal: unexpected operator 'cancellationdate' with undef operand at /usr/share/koha/masterclone/Koha/Objects.pm line 168 # Looks like you planned 74 tests but ran 7. # Looks like your test exited with 255 just after 7. -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #64 from Jonathan Druart--- Created attachment 54355 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54355=edit Bug 15407: (follow-up) Koha::Patron::Categories - replace C4::Category->al Categories.GetName should not have been removed in the previous patch (merge conflict issue). -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #63 from Marcel de Rooy--- Please git grep on Categories.GetName Koha/Template/Plugin/Categories.pm:[% Categories.GetName( categorycode ) %]. koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc: koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt: Remove the pod and replace the three remaining calls please.. -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #62 from Marcel de Rooy--- Created attachment 54353 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54353=edit Bug 15407: [QA Follow-up] Joubu, add your tests Trivial fix (yes again). 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #61 from Marcel de Rooy--- - my %cathash = ($line eq 'categorycode' or $column eq 'categorycode') ? _hash : (); - push @loopfilter, {debug=>1, crit=>"\%cathash", filter=>join(", ", map {$cathash{$_}} sort keys %cathash)}; +my $patron_categories = Koha::Patron::Categories->search({}, {order_by => ['categorycode']}); +push @loopfilter, {debug=>1, crit=>"\%cathash", filter=>join(", ", map { $_->categorycode . ' (' . ( $_->description || 'NO_DESCRIPTION' ) . ')'} $patron_categories->as_list )}; You removed cathash, but left it in the push -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #60 from Marcel de Rooy--- Created attachment 54352 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54352=edit Bug 15407: [QA Follow-up] Fix POD in reserves_stats.pl 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #59 from Marcel de Rooy--- QA: OK Having another look -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #53422|0 |1 is obsolete|| --- Comment #57 from Jonathan Druart --- Created attachment 54345 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54345=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #53892|0 |1 is obsolete|| --- Comment #58 from Jonathan Druart --- Created attachment 54346 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54346=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #53420|0 |1 is obsolete|| --- Comment #55 from Jonathan Druart --- Created attachment 54343 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54343=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #53421|0 |1 is obsolete|| --- Comment #56 from Jonathan Druart --- Created attachment 54344 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54344=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous patch. Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #53419|0 |1 is obsolete|| --- Comment #54 from Jonathan Druart --- Created attachment 54342 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54342=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Signed Off -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marcel de Rooychanged: What|Removed |Added Status|Signed Off |Patch doesn't apply CC||m.de.r...@rijksmuseum.nl -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #53423|0 |1 is obsolete|| --- Comment #53 from Jonathan Druart --- Created attachment 53892 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53892=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |Signed Off -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Owen Leonardchanged: What|Removed |Added Status|Signed Off |Patch doesn't apply -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #52 from Jonathan Druart--- (In reply to Kyle M Hall from comment #46) > perl -c reports/issues_stats.pl > Global symbol "@patron_categories" requires explicit package name at > reports/issues_stats.pl line 155. > Global symbol "@patron_categories" requires explicit package name at > reports/issues_stats.pl line 326. > Global symbol "@patron_categories" requires explicit package name at > reports/issues_stats.pl line 400. > Bareword "GetBorrowercategoryList" not allowed while "strict subs" in use at > reports/issues_stats.pl line 79 Hi Kyle, I do not recreate it, but I got a conflict on issues_stats.pl when applying the patches. I have rebased them against master. -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #52036|0 |1 is obsolete|| --- Comment #51 from Jonathan Druart --- Created attachment 53423 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53423=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #52033|0 |1 is obsolete|| --- Comment #48 from Jonathan Druart --- Created attachment 53420 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53420=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #52034|0 |1 is obsolete|| --- Comment #49 from Jonathan Druart --- Created attachment 53421 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53421=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous patch. Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #52035|0 |1 is obsolete|| --- Comment #50 from Jonathan Druart --- Created attachment 53422 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53422=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Status|Failed QA |Signed Off -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #52032|0 |1 is obsolete|| --- Comment #47 from Jonathan Druart --- Created attachment 53419 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=53419=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Kyle M Hallchanged: What|Removed |Added Status|Signed Off |Failed QA CC||k...@bywatersolutions.com --- Comment #46 from Kyle M Hall --- perl -c reports/issues_stats.pl Global symbol "@patron_categories" requires explicit package name at reports/issues_stats.pl line 155. Global symbol "@patron_categories" requires explicit package name at reports/issues_stats.pl line 326. Global symbol "@patron_categories" requires explicit package name at reports/issues_stats.pl line 400. Bareword "GetBorrowercategoryList" not allowed while "strict subs" in use at reports/issues_stats.pl line 79 -- 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 15407] Move the patron categories related code to Koha::Patron:: Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Katrin Fischerchanged: What|Removed |Added CC||srd...@catalyst.net.nz --- Comment #45 from Katrin Fischer --- *** Bug 16877 has been marked as a duplicate of this bug. *** -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||16852 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16852 [Bug 16852] Remove C4::Members::GetBorrowerCategorycode -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added Attachment #52015|0 |1 is obsolete|| --- Comment #44 from Chris Cormack --- Created attachment 52036 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52036=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added Attachment #52014|0 |1 is obsolete|| --- Comment #43 from Chris Cormack --- Created attachment 52035 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52035=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added Attachment #52013|0 |1 is obsolete|| --- Comment #42 from Chris Cormack --- Created attachment 52034 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52034=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous patch. Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added Attachment #50171|0 |1 is obsolete|| --- Comment #41 from Chris Cormack --- Created attachment 52033 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52033=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added Attachment #50170|0 |1 is obsolete|| --- Comment #40 from Chris Cormack --- Created attachment 52032 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52032=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). Signed-off-by: Chris Cormack -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #50173|0 |1 is obsolete|| --- Comment #38 from Jonathan Druart --- Created attachment 52014 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52014=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #50172|0 |1 is obsolete|| --- Comment #37 from Jonathan Druart --- Created attachment 52013 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52013=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #50174|0 |1 is obsolete|| --- Comment #39 from Jonathan Druart --- Created attachment 52015 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52015=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Chris Cormackchanged: What|Removed |Added CC||ch...@bigballofwax.co.nz Status|Needs Signoff |Patch doesn't apply --- Comment #36 from Chris Cormack --- I have applied and tested the first 2 patches, they work well but when I get to the third I'm hitting Applying: Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory fatal: sha1 information is lacking or useless (tools/overduerules.pl). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #32 from Jonathan Druart--- Created attachment 50171 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50171=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #33 from Jonathan Druart--- Created attachment 50172 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50172=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #35 from Jonathan Druart--- Created attachment 50174 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50174=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #34 from Jonathan Druart--- Created attachment 50173 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50173=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Status|Patch doesn't apply |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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #47754|0 |1 is obsolete|| Attachment #47755|0 |1 is obsolete|| Attachment #47756|0 |1 is obsolete|| Attachment #47757|0 |1 is obsolete|| Attachment #47758|0 |1 is obsolete|| --- Comment #31 from Jonathan Druart --- Created attachment 50170 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50170=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Owen Leonardchanged: What|Removed |Added Status|Needs Signoff |Patch doesn't apply -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Depends on||15629 --- Comment #30 from Jonathan Druart --- Patches rebased on top of bug 15629. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15629 [Bug 15629] Move the C4::Branch related code to Koha::Libraries - part 3 -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #26 from Jonathan Druart--- Created attachment 47755 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47755=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #47646|0 |1 is obsolete|| Attachment #47647|0 |1 is obsolete|| Attachment #47648|0 |1 is obsolete|| Attachment #47649|0 |1 is obsolete|| Attachment #47650|0 |1 is obsolete|| --- Comment #25 from Jonathan Druart --- Created attachment 47754 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47754=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #28 from Jonathan Druart--- Created attachment 47757 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47757=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #29 from Jonathan Druart--- Created attachment 47758 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47758=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #27 from Jonathan Druart--- Created attachment 47756 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47756=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||15758 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15758 [Bug 15758] Move the C4::Branch related code to Koha::Libraries - part 4 -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #24 from Marc Véron--- Just a note: Testing, went through test plans from comment #1 and #2, both OK. #3 points 1-3 are OK Will later try to find time for more 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #21 from Jonathan Druart--- Created attachment 47649 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47649=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #23 from Jonathan Druart--- Just a rebase against master. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #19 from Jonathan Druart--- Created attachment 47647 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47647=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #20 from Jonathan Druart--- Created attachment 47648 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47648=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #22 from Jonathan Druart--- Created attachment 47650 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47650=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #47098|0 |1 is obsolete|| Attachment #47099|0 |1 is obsolete|| Attachment #47100|0 |1 is obsolete|| Attachment #47101|0 |1 is obsolete|| Attachment #47102|0 |1 is obsolete|| --- Comment #18 from Jonathan Druart --- Created attachment 47646 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47646=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Blocks||15449 Depends on|15449 | Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15449 [Bug 15449] Move stuffs to the Koha namespace -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Depends on||15449 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15449 [Bug 15449] Move stuffs to the Koha namespace -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #14 from Jonathan Druart--- Created attachment 47100 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47100=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategory The purpose of C4::Members::GetBorrowercategory was to return the patron category for a given categorycode. This can be done easily with the Koha::Patron::Categories->find method. Test plan: - Same prerequisite as before - Edit a guarantor and confirm the information will be updated for his/her guarantee(s). - Update a child to adult patron (Note: Should not we hide the patron categories limited to others libraries? If yes, it must be done on another bug report). There is a special behavior if there is only 1 adult category, the user does not need to select a category. So the same as before with only 1 adult patron category. - Import a patron with a category_code which does not exist. You should be warned. - Modify some patron using the batch patron modification tool. The patron category descriptions should correctly be displayed. Note that the overduerules page has already been tested in a previous 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #13 from Jonathan Druart--- Created attachment 47099 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47099=edit Bug 15407: Koha::Patron::Categories - replace C4::Category->all The C4::Category module contained only 1 method to return the patron categories available for the logged in user. The new method Koha::Patron::Categories->search_limited does exactly the same thing (see tests) and must be used in place of it. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. - On the 'Item circulation alerts' admin page (admin/item_circulation_alerts.pl), modify the settings for check-in and checkout (NOTE: Should not we display all patron categories on this page? If yes, it must be done in another bug report to ease backporting it). - Search for patrons in the admin (budget) and acquisition (order) module. - On the patron home page (search form in the header) -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #45906|0 |1 is obsolete|| Attachment #45907|0 |1 is obsolete|| Attachment #45908|0 |1 is obsolete|| Attachment #45913|0 |1 is obsolete|| Attachment #45914|0 |1 is obsolete|| --- Comment #12 from Jonathan Druart --- Created attachment 47098 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47098=edit Bug 15407: Koha::Patron::Categories - remove sql queries in some pl and pm This patch replaces sql queries done in some pl script and in C4::Reports::Guided. Since we have now a Koha::Patron::Categories module, we should use it where it is possible. Test plan: - Prerequisite: Be sure you have several patron categories created, with different option enabled, and limit some to certain libraries. - On the 'Circulation and fine rules' admin page (admin/smart-rules.pl), all the patron categories should be displayed (even the ones limited to another library), ordered by description. Try to add/update existing rules. - On the overdue rules page (tools/overduerules.pl), all the patron categories with overduenoticerequired set should be displayed. Try to add/update existing rules. - On the following reports: reports/borrowers_stats.pl reports/issues_avg_stats.pl The patron categories should be displayed. Note that there is an inconsistency with these 2 reports: the patron categories limited to other libraries are displayed on them, when they are not on the other reports. This should certainly be fixed (on another bug report). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #15 from Jonathan Druart--- Created attachment 47101 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47101=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #16 from Jonathan Druart--- Created attachment 47102 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=47102=edit Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #17 from Jonathan Druart--- patches rebased. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Marc Véronchanged: What|Removed |Added CC||ve...@veron.ch --- Comment #7 from Marc Véron --- I went through all tests with all patches applied, no problems found. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #8 from Marc Véron--- Sorry, I missed one: In Batch patron deletion / anonymization I see a branch restricted category in the dropdown. Category restricted to Midway Staff meber's library is set to Centerville. With patches the category is visible in dropdown (should not) Removed patches - now the category is no longer visible (as expected) -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #45909|0 |1 is obsolete|| --- Comment #9 from Jonathan Druart --- Created attachment 45913 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45913=edit Bug 15407: Koha::Patron::Categories - replace GetBorrowercategoryList C4::Members::GetBorrowercategoryList returned all the patron categories, ordered by description. This can be done using the search method of the Koha::Patron::Categories module. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by description. - On the "patron attribute types" admin page (admin/patron-attr-types.pl). - On the "Batch patron deletion/anonymization" (tools/cleanborrowers.pl), the dropdown list should be filled correctly. - On the import patron tool - On the following report: reports/reserves_stats.pl Confirm that the patron categories are displayed and that the report still works as before. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 Jonathan Druartchanged: What|Removed |Added Attachment #45910|0 |1 is obsolete|| --- Comment #10 from Jonathan Druart --- Created attachment 45914 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45914=edit :x Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType This unnecessary complicated subroutine returned an arrayref and an hashref of the patron categories available for the logged in user, for a given category_type, ordered by categorycode. This can now be done with the search_limited method. Test plan: - Same prerequisite as before For the following pages, you should not see patron categories limited to other libraries. They should be ordered as before this patch, by categorycode. - Add/edit a patron, change his/her patron category value. - On the 3 following reports: reports/bor_issues_top.pl reports/borrowers_out.pl reports/cat_issues_top.pl The display for these 3 reports are different than the 2 from the first patch (borrowers_stats.pl issues_avg_stats.pl): they are ordered by categorycode and the ones limited to other libraries are not displayed (should certainly be fixed). Note that the big part of this patch has already been tested before (update child related: CATCODE_MULTI). -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #11 from Jonathan Druart--- (In reply to Marc Véron from comment #8) > Sorry, I missed one: > > In Batch patron deletion / anonymization I see a branch restricted category > in the dropdown. > > Category restricted to Midway > Staff meber's library is set to Centerville. > > With patches the category is visible in dropdown (should not) > > Removed patches - now the category is no longer visible (as expected) Ho yes, the entire patch (replace GetBorrowercategoryList) was wrong actually. I have updated it, to use the search_limited instead of search method. Thanks for the catch! -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 --- Comment #6 from Jonathan Druart--- QA note: A false positive is raised by the qa script *** ERROR: Spurious =cut command at line 1021 in file C4/Members.pm It already exists before this patch set. -- 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 15407] Move the patron categories related code to Koha::Patron::Categories - part 2
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15407 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/