[Koha-bugs] [Bug 7621] New: Circulation: Match age restriction of title with borrower's age without using categories

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 29 15:55:59 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7621

             Bug #: 7621
           Summary: Circulation: Match age restriction of title with
                    borrower's age without using categories
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Circulation
        AssignedTo: kyle.m.hall at gmail.com
        ReportedBy: veron at veron.ch
         QAContact: koha.sekjal at gmail.com
                CC: gmcharlt at gmail.com


The problem
-----------
Public libraries and school libraries often have to deal with a lot of age
restrictions, e.g. wit FSK (see www.fsk.de) or PEGI (Pan European Game
Information, see www.pegi.info) and/or with regional rules regarding movies
(virtually every canton in Switzerland has it's own rules). 

The classic way to implement age restrictions is to make use of a lot of
categories. This gets soon very complicated, and is not easily maintainable.
The librarians need an easy way to maintain age restrictions per title,
otherwise they will not accept Koha.

I tried to find a robust ad easily configurable way to match age restriction
against the borrower's age. I implemented it on my test server.

The concept
-----------
1) 
Have information about age restriction in field 521 a (Target audience)
The entry can be anywhere in the field. It reads like
PEGI 3 or FSK 12 (or any other 'tag' + age).

2)
Have a preference like 'AgeRestrictionTags' where such tags are defined. It is
a text field with a list like
PEGI,FSK,Age...
(Make things robust by accepting ,;: and space as delimiters...)

3)
In circulation.pm, sub CanBookBeIssued, fetch the value from 521 a using the
tags above. If the text after such tag is numeric, take this value as
$restrictionyear. Add the years to the borrower's birth date. If the resulting
date is in the future ( >today) , issuing is blocked by setting
$issuingimpossible{AGE_RESTRICTION} =  $restrictionyear;

4)
In circulation.tt, part , add:

[% IF ( AGE_RESTRICTION ) %]
   <li>Age restriction [% AGE_RESTRICTION %]</li>
[% END %]    

Result
-------
If a borrower tries to check out a restricted book and does not have the
appropriate age, the circulation module will block the check out and issue a
message like
"Age restriction 12"

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list