Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Kyle M Hall 27a6b8c591 Bug 12197: enforce the maxreserves preference when staff members place hold requests
This patch ensures that the global maxreserves preference is enforced
when staff members place hold requests.

For example:

Create 3 items to place holds on. Set the circulation rule to allow 50
holds for all items. Set maxreserves to 2. Place a hold on 3 different
items. On the third item, it will give a warning, but you can still
place the hold. Despite what the circulation rule is set for (which is
only a specific case rule), maxreserves is a global rule and
should stop this from happening, not just give a warning.

Test Plan:
1) Reproduce the bug by following the steps above
2) Verify the bug exists
3) Apply this patch
4) Verify the librarian cannot place the hold now
5) Enable AllowHoldPolicyOverride
6) Verify the librarian can forcefully place the hold

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Bug 12197: (follow-up) rename variable for greater clarity

"maxreserves" was referring both to the system preference and to the
condition of having exceeded the number of hold requests allowed.

This patch renames a variable to remove the ambguity.

Test plan:

* Same as the main patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-10-22 09:38:53 -03:00
..
acqui Bug 8417: Make the order receive date editable 2015-10-19 14:51:50 -03:00
admin Bug 14045: Add missing th in tfoot 2015-10-21 08:47:11 -03:00
authorities Bug 8399: Display tab number on the mandatory field alert (authority) 2015-05-18 12:11:23 -03:00
basket Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
batch Bug 9210: wrap long lines in printed hold notices 2014-01-15 15:51:44 +00:00
catalogue Bug 14966: Table header broken at detail.tt 2015-10-13 12:20:33 -03:00
cataloguing Bug 14201: We can do without plugin marc21_leader_computerfile 2015-09-28 12:19:52 -03:00
circ Bug 14900: Add ability to pay all fees at once from circulation screen 2015-10-21 13:45:53 -03:00
common Bug 14676: UI/UX improvements to patron card creator 2015-10-20 14:22:00 -03:00
course_reserves Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
errors Bug 14574: Fixing error messages on staff client so they make more sense 2015-08-18 13:18:22 -03:00
help Bug 14929: Fix missing display of help page in contract management 2015-10-02 11:08:20 -03:00
installer Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
labels Bug 14667: (QA followup) remove useless labels-menu.inc file 2015-10-06 12:43:44 -03:00
members Bug 14990: Format the date template-side for moremember 2015-10-19 10:13:02 -03:00
offline_circ Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
patron_lists Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
patroncards Bug 14676: (QA followup) Fix case problems carried from the past 2015-10-20 15:18:53 -03:00
plugins Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
reports Bug 14029: Provide 'clear' link to empty reports search filters 2015-06-11 13:08:53 -03:00
reserve Bug 12197: enforce the maxreserves preference when staff members place hold requests 2015-10-22 09:38:53 -03:00
reviews
rotating_collections Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
serials Bug 10855: (follow-up) Search subscriptions by additional fields 2015-10-02 15:10:31 -03:00
services Bug 12673: Remove CGI::scrolling_list from C4::Items.pm 2014-08-03 17:21:08 -03:00
sms
suggestion Bug 14423: Multiple XSS bugs in suggestion.pl 2015-06-23 10:12:33 -03:00
tags Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
test Bug 14321: Final cleanup, removing obsolete files 2015-09-25 12:02:52 -03:00
tools Bug 14141: Fix copy action 2015-10-02 14:25:05 -03:00
virtualshelves Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
about.tt Bug 14298: Add warning to the about page if the sco user does not have correct permissions 2015-09-25 11:15:48 -03:00
auth.tt Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
intranet-main.tt Bug 8007: Discharge - Glue 2015-04-30 12:33:53 -03:00