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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc (-1 / +1 lines)
Lines 101-107 Link Here
101
        window.$format_address = function(data, options) {
101
        window.$format_address = function(data, options) {
102
            let line_break = options && options.no_line_break ? ' ' : '<br/>';
102
            let line_break = options && options.no_line_break ? ' ' : '<br/>';
103
            [%~ IF Koha.Preference( 'AddressFormat' ) ~%]
103
            [%~ IF Koha.Preference( 'AddressFormat' ) ~%]
104
                return member_display_address_style_[% Koha.Preference( 'AddressFormat' ) %](data, line_break);
104
                return member_display_address_style_[% Koha.Preference( 'AddressFormat' ) | html %](data, line_break);
105
            [%~ ELSE ~%]
105
            [%~ ELSE ~%]
106
                return member_display_address_style_us(data, line_break);
106
                return member_display_address_style_us(data, line_break);
107
            [%~ END ~%]
107
            [%~ END ~%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-6 / +6 lines)
Lines 78-84 Link Here
78
        [% END %]
78
        [% END %]
79
    </div>
79
    </div>
80
80
81
    <div id="[% table_id %]_search_results" style="display:none;">
81
    <div id="[% table_id | html %]_search_results" style="display:none;">
82
82
83
        <div id="info" class="dialog message" style="display: none;"></div>
83
        <div id="info" class="dialog message" style="display: none;"></div>
84
        <div id="error" class="dialog alert" style="display: none;"></div>
84
        <div id="error" class="dialog alert" style="display: none;"></div>
Lines 86-94 Link Here
86
86
87
        <input type="hidden" id="firstletter_filter" value="" />
87
        <input type="hidden" id="firstletter_filter" value="" />
88
        [% IF open_on_row_click %]
88
        [% IF open_on_row_click %]
89
        <table id="[% table_id %]" class="selections-table">
89
        <table id="[% table_id | html %]" class="selections-table">
90
        [% ELSE %]
90
        [% ELSE %]
91
        <table id="[% table_id %]">
91
        <table id="[% table_id | html %]">
92
        [% END %]
92
        [% END %]
93
            <thead>
93
            <thead>
94
                <tr>
94
                <tr>
Lines 202-208 Link Here
202
                [% default_sort_column = "name" %]
202
                [% default_sort_column = "name" %]
203
            [% END %]
203
            [% END %]
204
            [% SET order_column_index = 0 %]
204
            [% SET order_column_index = 0 %]
205
            patrons_table = $("#[% table_id %]").kohaTable({
205
            patrons_table = $("#[% table_id | html %]").kohaTable({
206
                "ajax": {
206
                "ajax": {
207
                    [% SWITCH filter %]
207
                    [% SWITCH filter %]
208
                    [% CASE 'suggestions_managers' %]
208
                    [% CASE 'suggestions_managers' %]
Lines 433-439 Link Here
433
433
434
        function filter() {
434
        function filter() {
435
            $("#firstletter_filter").val('');
435
            $("#firstletter_filter").val('');
436
            $("#[% table_id %]_search_results").show();
436
            $("#[% table_id | html %]_search_results").show();
437
437
438
            let table_dt = patrons_table.DataTable();
438
            let table_dt = patrons_table.DataTable();
439
            [% FOR c IN columns %]
439
            [% FOR c IN columns %]
Lines 457-463 Link Here
457
        // User has clicked on a letter
457
        // User has clicked on a letter
458
        function filterByFirstLetterSurname(letter) {
458
        function filterByFirstLetterSurname(letter) {
459
            $("#firstletter_filter").val(letter);
459
            $("#firstletter_filter").val(letter);
460
            $("#[% table_id %]_search_results").show();
460
            $("#[% table_id | html %]_search_results").show();
461
            patrons_table.DataTable().draw();
461
            patrons_table.DataTable().draw();
462
        }
462
        }
463
463
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt (-10 / +1 lines)
Lines 28-43 Link Here
28
</div>
28
</div>
29
29
30
[% MACRO jsinclude BLOCK %]
30
[% MACRO jsinclude BLOCK %]
31
    [% PROCESS patron_search_js
31
    [% PROCESS patron_search_js table_id => 'memberresultst', categories => categories, libraries => libraries, extended_attribute_types => extended_attribute_types, columns => columns, filter => filter, selection_type => selection_type, callback => callback %]
32
        table_id    => 'memberresultst',
33
        categories  => categories,
34
        libraries   => libraries,
35
        extended_attribute_types => extended_attribute_types,
36
        columns     => columns,
37
        filter      => filter,
38
        selection_type => selection_type,
39
        callback    => callback
40
    %]
41
[% END %]
32
[% END %]
42
33
43
[% SET popup_window = 1 %]
34
[% SET popup_window = 1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-12 / +1 lines)
Lines 1600-1616 Link Here
1600
        table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1600
        table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1601
    </script>
1601
    </script>
1602
1602
1603
    [% PROCESS patron_search_js
1603
    [% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, extended_attribute_types => attribute_type_codes, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params %]
1604
        table_id    => 'table_borrowers',
1605
        categories  => categories,
1606
        libraries   => libraries,
1607
        extended_attribute_types => attribute_type_codes,
1608
        columns     => columns,
1609
        open_on_row_click => 1,
1610
        on_click_url      => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params,
1611
        redirect_if_one_result => 1,
1612
        redirect_url           => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params
1613
    %]
1614
    <script>
1604
    <script>
1615
        $(document).ready(function() {
1605
        $(document).ready(function() {
1616
            $("#holds_patronsearch").on("submit", filter);
1606
            $("#holds_patronsearch").on("submit", filter);
1617
- 

Return to bug 30093