]> git.koha-community.org Git - koha.git/commit
Bug 11630: improve parsing of age restriction markers
authorPasi Kallinen <pasi.kallinen@pttk.fi>
Wed, 29 Jan 2014 07:37:18 +0000 (09:37 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 16 Apr 2014 14:43:30 +0000 (14:43 +0000)
commit19badb2db47b4f142e76be39d09b5afa95a0c85a
treef5a53b4f1304ee70cf0b2f8fc390a0e81ccac98a
parente28dbbf76c25437ca43afe154619e89c775034d0
Bug 11630: improve parsing of age restriction markers

This patch makes the parsing of AgeRestrictionMarker values consider
the case where the marker is immediately followed by the age, e.g.
"K16" in Finland.

How I tested:

[1] Configure Age Restricition (see Syspref AgeRestrictionMarker) and
have a biblio record with e.g. PEGI 99 in age restriction field.
[2] Try to check out to a patron with age < 99
[3] Check out should be blocked
[4] Change entry in age restriction field to PEGI99
[5] Checkout should be possible
[6] Apply patch
[7] Checkout schould now be blocked

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm