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

(-)a/admin/columns_settings.yml (+2 lines)
Lines 166-171 modules: Link Here
166
        -
166
        -
167
          columnname: name
167
          columnname: name
168
        -
168
        -
169
          columnname: dateofbirth
170
        -
169
          columnname: category
171
          columnname: category
170
        -
172
        -
171
          columnname: library
173
          columnname: library
(-)a/circ/ysearch.pl (+2 lines)
Lines 29-34 use CGI qw ( -utf8 ); Link Here
29
use C4::Context;
29
use C4::Context;
30
use C4::Auth qw/check_cookie_auth/;
30
use C4::Auth qw/check_cookie_auth/;
31
use Koha::Borrowers;
31
use Koha::Borrowers;
32
use Koha::DateUtils qw/format_sqldatetime/;
32
33
33
use JSON qw( to_json );
34
use JSON qw( to_json );
34
35
Lines 83-88 while ( my $b = $borrowers_rs->next ) { Link Here
83
        surname        => $b->surname    // '',
84
        surname        => $b->surname    // '',
84
        firstname      => $b->firstname  // '',
85
        firstname      => $b->firstname  // '',
85
        cardnumber     => $b->cardnumber // '',
86
        cardnumber     => $b->cardnumber // '',
87
	dateofbirth    => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '',
86
        address        => $b->address    // '',
88
        address        => $b->address    // '',
87
        city           => $b->city       // '',
89
        city           => $b->city       // '',
88
        zipcode        => $b->zipcode    // '',
90
        zipcode        => $b->zipcode    // '',
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc (-1 / +1 lines)
Lines 14-20 $(document).ready(function(){ Link Here
14
    .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
14
    .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
15
        return $( "<li></li>" )
15
        return $( "<li></li>" )
16
        .data( "ui-autocomplete-item", item )
16
        .data( "ui-autocomplete-item", item )
17
        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
17
        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
18
        .appendTo( ul );
18
        .appendTo( ul );
19
    };
19
    };
20
20
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (+5 lines)
Lines 174-179 $(document).ready(function() { Link Here
174
                'name': 'name_sorton',
174
                'name': 'name_sorton',
175
                'value': 'borrowers.surname borrowers.firstname'
175
                'value': 'borrowers.surname borrowers.firstname'
176
            },{
176
            },{
177
                'name': 'dateofbirth',
178
                'value': 'borrowers.dateofbirth',
179
            },{
177
                'name': 'category_sorton',
180
                'name': 'category_sorton',
178
                'value': 'categories.description',
181
                'value': 'categories.description',
179
            },{
182
            },{
Lines 205-210 $(document).ready(function() { Link Here
205
            [% END %]
208
            [% END %]
206
            { 'mDataProp': 'dt_cardnumber' },
209
            { 'mDataProp': 'dt_cardnumber' },
207
            { 'mDataProp': 'dt_name' },
210
            { 'mDataProp': 'dt_name' },
211
            { 'mDataProp': 'dt_dateofbirth' },
208
            { 'mDataProp': 'dt_category' },
212
            { 'mDataProp': 'dt_category' },
209
            { 'mDataProp': 'dt_branch' },
213
            { 'mDataProp': 'dt_branch' },
210
            { 'mDataProp': 'dt_dateexpiry' },
214
            { 'mDataProp': 'dt_dateexpiry' },
Lines 381-386 function filterByFirstLetterSurname(letter) { Link Here
381
                [% END %]
385
                [% END %]
382
                  <th>Card</th>
386
                  <th>Card</th>
383
                  <th>Name</th>
387
                  <th>Name</th>
388
                  <th>Date of birth</>
384
                  <th>Category</th>
389
                  <th>Category</th>
385
                  <th>Library</th>
390
                  <th>Library</th>
386
                  <th>Expires on</th>
391
                  <th>Expires on</th>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt (-1 / +3 lines)
Lines 1-5 Link Here
1
[% USE To %]
1
[% USE To %]
2
[% USE AuthorisedValues %]
2
[% USE AuthorisedValues %]
3
[% USE KohaDates %]
3
{
4
{
4
    "sEcho": [% sEcho %],
5
    "sEcho": [% sEcho %],
5
    "iTotalRecords": [% iTotalRecords %],
6
    "iTotalRecords": [% iTotalRecords %],
Lines 15-20 Link Here
15
                    "[% data.cardnumber | html %]",
16
                    "[% data.cardnumber | html %]",
16
                "dt_name":
17
                "dt_name":
17
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %]</span>",
18
                    "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.borrowernumber %]'>[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames invert_name = 1 %]</a><br />[% INCLUDE escape_address data = data %]</span>",
19
		"dt_dateofbirth":
20
		    "[% data.dateofbirth | $KohaDates %]",
18
                "dt_category":
21
                "dt_category":
19
                    "[% data.category_description |html %] ([% data.category_type |html %])",
22
                    "[% data.category_description |html %] ([% data.category_type |html %])",
20
                "dt_branch":
23
                "dt_branch":
21
- 

Return to bug 13931