View | Details | Raw Unified | Return to bug 17492
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/category-out-of-age-limit.inc (-3 / +3 lines)
Lines 1-6 Link Here
1
[% IF age_limitations %]
1
[% IF age_limitations %]
2
    <li>
2
    <li>
3
	<span class="circ-hlt">Patron's age is incorrect for their category.</span>
3
    <span class="circ-hlt">Patron's age is incorrect for their category.</span>
4
	Ages allowed are [% age_low %]-[% age_high %].
4
    Ages allowed are [% age_low %]-[% age_high %].
5
	<a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3" class="btn btn-mini">Change category</a></li>
5
    <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;borrowernumber=[% borrowernumber %]&amp;step=3" class="btn btn-mini">Change category</a></li>
6
[% END %]
6
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-6 / +6 lines)
Lines 791-804 No patron matched <span class="ex">[% message | html %]</span> Link Here
791
            [% END %]
791
            [% END %]
792
792
793
            [% IF ( charges || age_limitations ) %]
793
            [% IF ( charges || age_limitations ) %]
794
		[% IF charges %]
794
                [% IF charges %]
795
            	    [% INCLUDE 'blocked-fines.inc'
795
                    [% INCLUDE 'blocked-fines.inc'
796
                        fines = chargesamount
796
                        fines = chargesamount
797
                    %]
797
                    %]
798
		[% END %]
798
                [% END %]
799
		[% IF age_limitations %]
799
                [% IF age_limitations %]
800
    		    [% INCLUDE 'category-out-of-age-limit.inc' %]
800
                    [% INCLUDE 'category-out-of-age-limit.inc' %]
801
		[% END %]
801
                [% END %]
802
            [% END %]
802
            [% END %]
803
803
804
            [% IF ( charges_guarantees ) %]
804
            [% IF ( charges_guarantees ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-5 / +5 lines)
Lines 181-192 function validate1(date) { Link Here
181
181
182
    [% IF fines || age_limitations %]
182
    [% IF fines || age_limitations %]
183
    <ul class="circmessage">
183
    <ul class="circmessage">
184
	[% IF fines %]
184
        [% IF fines %]
185
    	    [% INCLUDE 'blocked-fines.inc' %]
185
            [% INCLUDE 'blocked-fines.inc' %]
186
        [% END %]
187
        [% IF age_limitations %]
188
            [% INCLUDE 'category-out-of-age-limit.inc' %]
186
        [% END %]
189
        [% END %]
187
	[% IF age_limitations %]
188
    	    [% INCLUDE 'category-out-of-age-limit.inc' %]
189
	[% END %]
190
    </ul>
190
    </ul>
191
    [% END %]
191
    [% END %]
192
192
(-)a/members/moremember.pl (-2 / +1 lines)
Lines 243-249 $template->param( age => $age ); Link Here
243
my $borrowercategory = Koha::Patron::Categories->find($data->{ 'categorycode' });
243
my $borrowercategory = Koha::Patron::Categories->find($data->{ 'categorycode' });
244
my ($low,$high) = ($borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit);
244
my ($low,$high) = ($borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit);
245
if (($high && ($age > $high)) or ($age < $low)) {
245
if (($high && ($age > $high)) or ($age < $low)) {
246
    $template->param( age_limitations => 1 ); 
246
    $template->param( age_limitations => 1 );
247
    $template->param( age_low => $low );
247
    $template->param( age_low => $low );
248
    $template->param( age_high => $high );
248
    $template->param( age_high => $high );
249
}
249
}
250
- 

Return to bug 17492