Bug 10247: show warning if hold blocked due to maxreserves syspre
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Wed, 15 May 2013 09:52:57 +0000 (11:52 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 12 Aug 2013 15:02:57 +0000 (15:02 +0000)
commit4f263b3a909b420e31b5c43a17331d0231260003
treec50dc1ce0fe4d7c02ff149d5dfe18e520476e424
parent7d6edc6f182009726e9675ae832385f37e16c4e0
Bug 10247: show warning if hold blocked due to maxreserves syspre

On intranet, when placing a hold requst:
If borrower has reached the request limit, a warning should appear :
  Cannot place hold
  * Too Many Holds: TEST has too many holds.

This works when quota defined in circulation rules is reached but not
when limit specified in syspref maxreserves is reached, in case this
limit is lower than the one defined is circulation rules.

This is because template param maxreserves is set twice, this patch
corrects this bug.

Also moves warnings and messages conditional variable from Perl to
template because it cause the same bug as for maxreserves.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
reserve/request.pl