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.h...@gmail.com
        ReportedBy: ve...@veron.ch
         QAContact: koha.sek...@gmail.com
                CC: gmcha...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to