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

(-)a/circ/ysearch.pl (-1 / +1 lines)
Lines 85-91 while ( my $b = $borrowers_rs->next ) { Link Here
85
        firstname      => $b->firstname  // '',
85
        firstname      => $b->firstname  // '',
86
        cardnumber     => $b->cardnumber // '',
86
        cardnumber     => $b->cardnumber // '',
87
        dateofbirth    => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '',
87
        dateofbirth    => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '',
88
        age            => $b->get_age    // 'Age unknown',
88
        age            => $b->get_age    // '',
89
        address        => $b->address    // '',
89
        address        => $b->address    // '',
90
        city           => $b->city       // '',
90
        city           => $b->city       // '',
91
        zipcode        => $b->zipcode    // '',
91
        zipcode        => $b->zipcode    // '',
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-1 / +6 lines)
Lines 95-103 Link Here
95
                }).data( "ui-autocomplete" );
95
                }).data( "ui-autocomplete" );
96
                if( obj ) {
96
                if( obj ) {
97
                    obj._renderItem = function( ul, item ) {
97
                    obj._renderItem = function( ul, item ) {
98
                        var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
99
                        if( item.dateofbirth ) {
100
                            itemString += item.dateofbirth + " (" + item.age + " " +  _("years") + "), ";
101
                        }
102
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
98
                        return $( "<li></li>" )
103
                        return $( "<li></li>" )
99
                        .data( "ui-autocomplete-item", item )
104
                        .data( "ui-autocomplete-item", item )
100
                        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " (" + item.age + ") " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
105
                        .append( itemString )
101
                        .appendTo( ul );
106
                        .appendTo( ul );
102
                    };
107
                    };
103
                }
108
                }
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-age.inc (-4 / +4 lines)
Lines 1-8 Link Here
1
[%- USE KohaDates -%]
1
[%- USE KohaDates -%]
2
[%- USE I18N -%]
2
[%- IF ( patron ) -%]
3
[%- IF ( patron ) -%]
3
    [%- IF ( patron.dateofbirth ) -%]
4
    [%- IF ( patron.dateofbirth ) -%]
4
        [% patron.dateofbirth | $KohaDates -%]
5
        [%- patron.dateofbirth | $KohaDates %]
5
        [%- IF ( patron.get_age ) %] ([% patron.get_age | html %])
6
        [%- SET age = (patron.get_age != undef) ? patron.get_age : patron.age -%]
6
        [%- ELSIF ( patron.age ) %] ([% patron.age | html %])[% END -%]
7
        [% I18N.tnx('({age} year)', '({age} years)', age, { age => age }) | html %]
7
   [%- END -%]
8
   [%- END -%]
8
[%- END -%]
9
[%- END -%]
9
- 

Return to bug 15400