Koha/admin
Kyle M Hall 7e956e85b1 Bug 15524: Set limit on maximum possible holds per patron by category
It's possible to set a limit on the maximum number of holds for a particular branch/category/itemtype, but not on the total number of holds for a given patron (by branch/category).
This new rule works in conjunction with the existing branch/borrower/item rules in that Koha will use the lower of the two limits. This new rule counts all holds of all types, which prevents bib-level holds from not being counted for the purpose of these limits. This makes the most sense and was also requested by the sponsor.

Test Plan:
1) Apply this patch
2) Run updatedatabase.pl
3) Go to the circ rules editor, note the new max holds rules
   by patron category in the "Checkout limit by patron category".
   ( Should we rename this section? )
4) Create find a patron that is allowed to place a hold, count the
   number of holds that patron has. Lets make that number 'X'.
5) Set the new max holds rule to X for "All libraries"
6) Note the patron can no longer place another hold
7) Set the new max holds rule to X + 1 for the patron's home library
8) Note the patron can again place another hold
9) Set the new max holds rule to X for the patron's home library
10) Note the patron can no longer place another hold

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-08-24 16:23:27 +00:00
..
searchengine/elasticsearch Bug 20248: (QA follow-up) Remove unnecessary stuff 2018-08-22 14:47:51 +00:00
add_user_search.pl
admin-home.pl Bug 20383: Hide link to plugin management if plugins are not enabled 2018-03-19 13:55:53 -03:00
aqbudgetperiods.pl
aqbudgets.pl Bug 21137: Replace USER_INFO with logged_in_user 2018-08-14 12:43:10 +00:00
aqcontract.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
aqplan.pl Bug 21137: Replace USER_INFO with logged_in_user 2018-08-14 12:43:10 +00:00
audio_alerts.pl
auth_subfields_structure.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
auth_tag_structure.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
authorised_values.pl
authtypes.pl
biblio_framework.pl Bug 19096: Make Default authoritative in core modules 2017-12-07 14:44:15 -03:00
branch_transfer_limits.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
branches.pl Bug 16735: Migrate library search groups into the new hierarchical groups 2018-02-12 15:41:25 -03:00
categories.pl
check_budget_parent.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
check_parent_total.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
checkmarc.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
cities.pl
classsources.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
clone-rules.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
columns_settings.pl
columns_settings.yml Bug 19719: (follow-up) Show description instead of code 2018-08-22 13:22:18 +00:00
currency.pl Bug 7651: Add a new permission for managing currencies and exchange rates 2018-07-18 17:45:21 +00:00
didyoumean.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
edi_accounts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
edi_ean_accounts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
fieldmapping.pl
import_export_framework.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
item_circulation_alerts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
items_search_field.pl
items_search_fields.pl
itemtypes.pl
koha2marclinks.pl Bug 10306: (QA follow-up) More feedback for admins in koha2marclinks 2017-12-07 14:44:15 -03:00
library_groups.pl Bug 20157: Save the features that have been checked 2018-02-12 15:42:21 -03:00
localization.pl
marc_subfields_structure.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
marctagstructure.pl Bug 9701: Configure default indicator 2018-04-12 10:50:34 -03:00
matching-rules.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
oai_set_mappings.pl
oai_sets.pl
patron-attr-types.pl
preferences.pl Bug 20504: Fix lang attribute in html tag on systempreferences page 2018-08-22 12:12:59 +00:00
printers.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
smart-rules.pl Bug 15524: Set limit on maximum possible holds per patron by category 2018-08-24 16:23:27 +00:00
sms_providers.pl
sru_modmapping.pl Bug 19436: Add SRU support for authorities 2018-08-08 20:31:34 +00:00
systempreferences.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
transport-cost-matrix.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
usage_statistics.pl
z3950servers.pl