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

(-)a/admin/columns_settings.yml (+2 lines)
Lines 95-100 modules: Link Here
95
        -
95
        -
96
          columnname: name
96
          columnname: name
97
        -
97
        -
98
          columnname: dateofbirth
99
        -
98
          columnname: category
100
          columnname: category
99
        -
101
        -
100
          columnname: library
102
          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 74-79 while ( my $b = $borrowers_rs->next ) { Link Here
74
        surname        => $b->surname    // '',
75
        surname        => $b->surname    // '',
75
        firstname      => $b->firstname  // '',
76
        firstname      => $b->firstname  // '',
76
        cardnumber     => $b->cardnumber // '',
77
        cardnumber     => $b->cardnumber // '',
78
	dateofbirth    => format_sqldatetime($b->dateofbirth, undef, undef, 1) // '',
77
        address        => $b->address    // '',
79
        address        => $b->address    // '',
78
        city           => $b->city       // '',
80
        city           => $b->city       // '',
79
        zipcode        => $b->zipcode    // '',
81
        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 (+4 lines)
Lines 162-167 $(document).ready(function() { Link Here
162
                'name': 'name_sorton',
162
                'name': 'name_sorton',
163
                'value': 'borrowers.surname borrowers.firstname'
163
                'value': 'borrowers.surname borrowers.firstname'
164
            },{
164
            },{
165
                'name': 'dateofbirth',
166
                'value': 'borrowers.dateofbirth',
167
            },{
165
                'name': 'category_sorton',
168
                'name': 'category_sorton',
166
                'value': 'categories.description',
169
                'value': 'categories.description',
167
            },{
170
            },{
Lines 193-198 $(document).ready(function() { Link Here
193
            [% END %]
196
            [% END %]
194
            { 'mDataProp': 'dt_cardnumber' },
197
            { 'mDataProp': 'dt_cardnumber' },
195
            { 'mDataProp': 'dt_name' },
198
            { 'mDataProp': 'dt_name' },
199
            { 'mDataProp': 'dt_dateofbirth' },
196
            { 'mDataProp': 'dt_category' },
200
            { 'mDataProp': 'dt_category' },
197
            { 'mDataProp': 'dt_branch' },
201
            { 'mDataProp': 'dt_branch' },
198
            { 'mDataProp': 'dt_dateexpiry' },
202
            { 'mDataProp': 'dt_dateexpiry' },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt (+3 lines)
Lines 1-4 Link Here
1
[% USE AuthorisedValues %]
1
[% USE AuthorisedValues %]
2
[% USE KohaDates %]
2
{
3
{
3
    "sEcho": [% sEcho %],
4
    "sEcho": [% sEcho %],
4
    "iTotalRecords": [% iTotalRecords %],
5
    "iTotalRecords": [% iTotalRecords %],
Lines 14-19 Link Here
14
                    "[% data.cardnumber %]",
15
                    "[% data.cardnumber %]",
15
                "dt_name":
16
                "dt_name":
16
                    "<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 />[% IF ( data.streetnumber ) %][% data.streetnumber %] [% END %][% IF ( data.streettype ) %][% AuthorisedValues.GetByCode( 'ROADTYPE', data.streettype ) %] [% END %][% data.address %][% IF ( data.address2 ) %]<br />[% data.address2 %][% END %][% IF ( data.city || data.state || data.zipcode || data.country) %]<br />[% END %][% IF ( data.city ) %][% data.city %][% IF ( data.state ) %],[% END %][% END %][% IF ( data.state ) %] [% data.state %][% END %] [% IF ( data.zipcode ) %] [% data.zipcode %][% END %][% IF ( data.country ) %], [% data.country %][% END %][% IF data.email %]<br/>Email&#58; <a href='mailto&#58;[% data.email %]'>[% data.email %]</a>[% END %]</span>",
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 />[% IF ( data.streetnumber ) %][% data.streetnumber %] [% END %][% IF ( data.streettype ) %][% AuthorisedValues.GetByCode( 'ROADTYPE', data.streettype ) %] [% END %][% data.address %][% IF ( data.address2 ) %]<br />[% data.address2 %][% END %][% IF ( data.city || data.state || data.zipcode || data.country) %]<br />[% END %][% IF ( data.city ) %][% data.city %][% IF ( data.state ) %],[% END %][% END %][% IF ( data.state ) %] [% data.state %][% END %] [% IF ( data.zipcode ) %] [% data.zipcode %][% END %][% IF ( data.country ) %], [% data.country %][% END %][% IF data.email %]<br/>Email&#58; <a href='mailto&#58;[% data.email %]'>[% data.email %]</a>[% END %]</span>",
18
		"dt_dateofbirth":
19
		    "[% data.dateofbirth | $KohaDates %]",
17
                "dt_category":
20
                "dt_category":
18
                    "[% data.category_description |html %] ([% data.category_type |html %])",
21
                    "[% data.category_description |html %] ([% data.category_type |html %])",
19
                "dt_branch":
22
                "dt_branch":
(-)a/members/member.pl (-1 / +1 lines)
Lines 117-122 $template->param( Link Here
117
    categories          => \@categories,
117
    categories          => \@categories,
118
    branchcode          => $patron->{branchcode},
118
    branchcode          => $patron->{branchcode},
119
    categorycode        => $patron->{categorycode},
119
    categorycode        => $patron->{categorycode},
120
    dateofbirth		=> $patron->{dateofbirth},
120
    searchtype          => $input->param('searchtype') || 'start_with',
121
    searchtype          => $input->param('searchtype') || 'start_with',
121
    searchfieldstype    => $searchfieldstype,
122
    searchfieldstype    => $searchfieldstype,
122
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
123
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
123
- 

Return to bug 13931