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 103-111 Link Here
103
                }).data( "ui-autocomplete" );
103
                }).data( "ui-autocomplete" );
104
                if( obj ) {
104
                if( obj ) {
105
                    obj._renderItem = function( ul, item ) {
105
                    obj._renderItem = function( ul, item ) {
106
                        var itemString = "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>";
107
                        if( item.dateofbirth ) {
108
                            itemString += item.dateofbirth + " (" + item.age + " " +  _("years") + "), ";
109
                        }
110
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
106
                        return $( "<li></li>" )
111
                        return $( "<li></li>" )
107
                        .data( "ui-autocomplete-item", item )
112
                        .data( "ui-autocomplete-item", item )
108
                        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " (" + item.age + ") " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
113
                        .append( itemString )
109
                        .appendTo( ul );
114
                        .appendTo( ul );
110
                    };
115
                    };
111
                }
116
                }
(-)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