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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-3 / +3 lines)
Lines 2156-2162 li { Link Here
2156
    }
2156
    }
2157
}
2157
}
2158
2158
2159
#searchresults {
2159
#searchresults,
2160
#table_borrowers {
2160
    .address {
2161
    .address {
2161
        ul {
2162
        ul {
2162
            margin: 0;
2163
            margin: 0;
Lines 4025-4032 input.renew { Link Here
4025
}
4026
}
4026
4027
4027
#pat_member {
4028
#pat_member {
4028
    #patron_list_dialog,
4029
    #patron_list_dialog {
4029
    #searchresults {
4030
        display: none;
4030
        display: none;
4031
    }
4031
    }
4032
}
4032
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (+25 lines)
Lines 415-420 Link Here
415
                                    return r;
415
                                    return r;
416
                                }
416
                                }
417
                            }
417
                            }
418
                            [% CASE 'name-address' %]
419
                            {
420
                                "data": "me.firstname:me.surname:me.othernames:me.street_number:me.address:me.address2:me.city:me.state:me.postal_code:me.country",
421
                                "searchable": true,
422
                                "orderable": true,
423
                                "render": function( data, type, row, meta ) {
424
                                    let patron_id = encodeURIComponent(row.patron_id);
425
                                    let r = '';
426
                                    [% IF ! open_on_row_click %]
427
                                    r += "<a href=\"/cgi-bin/koha/members/moremember.pl?borrowernumber=" + patron_id + "\" class=\"patron_name\" data-borrowernumber=\"" + patron_id + "\" style=\"white-space:nowrap\">" + $patron_to_html(row, { invert_name: 1 }) + "</a>";
428
                                    [% ELSE %]
429
                                    r += $patron_to_html(row, { invert_name: 1 });
430
                                    [% END %]
431
                                    r += '<br/>';
432
                                    r += '<div class="address"><ul>';
433
                                    r += $format_address(row, { no_line_break: 1 });
434
435
                                    if ( row.email ) {
436
                                        r += "<li>" + _("Email: ") + "<a href='mailto:" + encodeURIComponent(row.email) + "'>" + escape_str(row.email) + "</a></li>";
437
                                    }
438
                                    r += '</ul></div>'
439
440
                                    return r;
441
                                }
442
                            }
418
                            [% CASE 'name' %]
443
                            [% CASE 'name' %]
419
                            {
444
                            {
420
                                "data": "me.firstname:me.surname:me.othernames",
445
                                "data": "me.firstname:me.surname:me.othernames",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-3 / +3 lines)
Lines 8-14 Link Here
8
[% PROCESS 'patronfields.inc' %]
8
[% PROCESS 'patronfields.inc' %]
9
[% SET libraries = Branches.all %]
9
[% SET libraries = Branches.all %]
10
[% SET categories = Categories.all.unblessed %]
10
[% SET categories = Categories.all.unblessed %]
11
[% SET columns = ['cardnumber', 'name', 'dateofbirth', 'branch', 'category', 'dateexpiry', 'checkouts', 'account_balance', 'borrowernotes', 'action'] %]
11
[% SET columns = ['cardnumber', 'name-address', 'dateofbirth', 'branch', 'category', 'dateexpiry', 'checkouts', 'account_balance', 'borrowernotes', 'action'] %]
12
[% PROCESS 'patron-search.inc' %]
12
[% PROCESS 'patron-search.inc' %]
13
[% INCLUDE 'doc-head-open.inc' %]
13
[% INCLUDE 'doc-head-open.inc' %]
14
<title>Patrons[% IF ( searching ) %] &rsaquo; Search results[% END %] &rsaquo; Koha</title>
14
<title>Patrons[% IF ( searching ) %] &rsaquo; Search results[% END %] &rsaquo; Koha</title>
Lines 64-70 Link Here
64
            </div>
64
            </div>
65
          [% END %]
65
          [% END %]
66
66
67
          <div id="patron_search_results">
67
          <div id="searchresults">
68
            [% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
68
            [% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
69
              <div class="searchheader fh-fixedHeader" id="searchheader" style="display:none;">
69
              <div class="searchheader fh-fixedHeader" id="searchheader" style="display:none;">
70
                  <div>
70
                  <div>
Lines 310-316 Link Here
310
        redirect_if_one_result => 1,
310
        redirect_if_one_result => 1,
311
        redirect_url           => redirect_url,
311
        redirect_url           => redirect_url,
312
        sticky_header => "searchheader",
312
        sticky_header => "searchheader",
313
        sticky_to     => "patron_search_results",
313
        sticky_to     => "searchresults",
314
    %]
314
    %]
315
315
316
316
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-2 / +1 lines)
Lines 197-203 $(document).ready(function(){ Link Here
197
197
198
    $('body').on('click', '#guarantor_search', function(e) {
198
    $('body').on('click', '#guarantor_search', function(e) {
199
        e.preventDefault();
199
        e.preventDefault();
200
        var newin = window.open('/cgi-bin/koha/members/search.pl?columns=cardnumber,name,category,branch,dateofbirth,address,action','popup','width=800,height=600,resizable=no,toolbar=false,scrollbars=yes,top');
200
        var newin = window.open('/cgi-bin/koha/members/search.pl?columns=cardnumber,name,category,branch,dateofbirth,address-library,action','popup','width=800,height=600,resizable=no,toolbar=false,scrollbars=yes,top');
201
    });
201
    });
202
202
203
    $('#guarantor_relationships').on('click', '.guarantor_cancel', function(e) {
203
    $('#guarantor_relationships').on('click', '.guarantor_cancel', function(e) {
204
- 

Return to bug 30063