Koha-clms/Koha/Exceptions
Agustin Moyano 1ccfaa0d03 Bug 27945: Add limit article request feature
This patch makes it possible to limit article requests per patron per day.

To test:
1. Apply patches
2. updatedatabase
3. Enable ArticleRequests preference
4. Edit a patron category and set an article request limit to 1
CHECK => if you set the limit to anything else but a positive number or empty string, a warning appears
5. In staff search biblios and request an article for a patron of the modified category
6. Repeat step 5
SUCCESS => if limit is reached, when you select the user to request an article a warning appears saying that the limit was reached
7. Repeat steps 5 and 6 but this time in opac
SUCCESS => Patron is not allowed to request another article if limit is reached
8. prove t/db_dependent/ArticleRequests.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Edit: This patchset originally changed the 'categories' table structure
and relied on that for limit calculation. I removed all that code and
squashed into this one, as we moved everything to the circulation_rules
table.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-05 11:45:20 +02:00
..
Acquisition Bug 26582: Add Koha::Acquisition::Basket->close 2020-11-05 15:24:20 +01:00
Checkouts Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Item Bug 26618: Improve Exception Class Names 2021-03-03 15:36:13 +01:00
Patron Bug 27858: (follow-up) Consistency in stringified exception 2021-04-09 15:43:26 +02:00
Account.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
ArticleRequest.pm Bug 27945: Add limit article request feature 2021-10-05 11:45:20 +02:00
Authentication.pm Bug 18137: Add useful Koha::Exceptions 2017-09-21 11:27:04 -03:00
Authorization.pm Bug 18137: Add useful Koha::Exceptions 2017-09-21 11:27:04 -03:00
Checkout.pm Bug 26457: Throw exception if update of issues table fails 2021-03-01 10:51:15 +01:00
ClubHold.pm Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
Config.pm Bug 19542: Add a check for ES configuration health 2017-12-11 14:30:42 -03:00
Elasticsearch.pm Bug 26312: (follow-up) Fix passing of exception messages 2021-04-16 11:48:31 +02:00
Exception.pm Bug 21022: (follow-up) Move overloaded full_message method to subclass 2018-07-13 13:25:15 +00:00
Hold.pm Bug 27209: Add Koha::Hold->set_pickup_location 2020-12-21 10:07:45 +01:00
Ill.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Library.pm Bug 18072: Add Koha::Item->can_be_transferred 2018-07-18 17:29:04 +00:00
Metadata.pm Bug 26171: (QA follow-up) Add table name and object type to message 2021-01-04 13:29:50 +01:00
Object.pm Bug 25423: Add Koha::Exceptions::Object::NotInstantiated 2020-05-08 15:42:37 +02:00
Password.pm Bug 23816: (follow-up) Fix many things 2020-09-09 15:39:52 +02:00
Patron.pm Bug 28056: Add Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute 2021-04-09 15:43:29 +02:00
Plugin.pm Bug 29121: Add new plugin exceptions 2021-10-01 16:28:55 +02:00
Token.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
TransferLimit.pm Bug 26633: POD for the exceptions file 2021-03-16 16:08:30 +01:00