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 100-108 Link Here
100
                            // Display card number in parentheses if it exists
100
                            // Display card number in parentheses if it exists
101
                            cardnumber = " (" + item.cardnumber + ") ";
101
                            cardnumber = " (" + item.cardnumber + ") ";
102
                        }
102
                        }
103
                        var itemString = "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>";
104
                        if( item.dateofbirth ) {
105
                            itemString += item.dateofbirth + " (" + item.age + " " +  _("years") + "), ";
106
                        }
107
                        itemString += item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>";
103
                        return $( "<li></li>" )
108
                        return $( "<li></li>" )
104
                        .data( "ui-autocomplete-item", item )
109
                        .data( "ui-autocomplete-item", item )
105
                        .append( "<a href=\"" + item.link + "\">" + item.surname + ", " + item.firstname + cardnumber + " <small>" + item.dateofbirth + " (" + item.age + ") " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
110
                        .append( itemString )
106
                        .appendTo( ul );
111
                        .appendTo( ul );
107
                    };
112
                    };
108
                }
113
                }
(-)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