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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/request.tt (-11 / +15 lines)
Lines 2-19 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE TablesSettings %]
6
[% USE Branches %]
5
[% USE Branches %]
7
[% USE Categories %]
6
[% USE Categories %]
8
[% USE AuthorisedValues %]
7
[% USE AuthorisedValues %]
9
[% USE ItemTypes %]
8
[% USE ItemTypes %]
9
[% PROCESS 'i18n.inc' %]
10
[% SET footerjs = 1 %]
11
[% INCLUDE 'doc-head-open.inc' %]
10
[% SET libraries = Branches.all %]
12
[% SET libraries = Branches.all %]
11
[% SET categories = Categories.all.unblessed %]
13
[% SET categories = Categories.all.unblessed %]
12
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %]
14
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %]
13
[% PROCESS "patron-search.inc" %]
15
[% PROCESS "patron-search.inc" %]
14
[% PROCESS 'i18n.inc' %]
15
[% SET footerjs = 1 %]
16
[% INCLUDE 'doc-head-open.inc' %]
17
<title>[% FILTER collapse %]
16
<title>[% FILTER collapse %]
18
    [% t("Place a recall") | html %] &rsaquo;
17
    [% t("Place a recall") | html %] &rsaquo;
19
    [% t("Recalls") | html %] &rsaquo;
18
    [% t("Recalls") | html %] &rsaquo;
Lines 268-288 Link Here
268
    [% INCLUDE 'calendar.inc' %]
267
    [% INCLUDE 'calendar.inc' %]
269
    [% INCLUDE 'select2.inc' %]
268
    [% INCLUDE 'select2.inc' %]
270
    [% SET url_biblio_params = "biblionumber=" _ biblio.biblionumber %]
269
    [% SET url_biblio_params = "biblionumber=" _ biblio.biblionumber %]
271
    [% 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/recalls/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
270
    [% UNLESS patron %]
271
        [% SET search_results_block_id = 'recalls_patronsearch_pane_panel' %] [%# adjusting variable for patron-search.inc %]
272
        [% PROCESS patron_search_js table_id => 'table_borrowers', categories => categories, libraries => libraries, columns => columns, open_on_row_click => 1, on_click_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/recalls/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
273
        <script>
274
            $(document).ready(function(){
275
                $("#recalls_patronsearch").on("submit", filter);
276
            });
277
        </script>
278
    [% END %]
272
    <script>
279
    <script>
273
        table_settings = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
274
        $.fn.select2.defaults.set("width", "100%" );
280
        $.fn.select2.defaults.set("width", "100%" );
275
        $.fn.select2.defaults.set("dropdownAutoWidth", true );
281
        $.fn.select2.defaults.set("dropdownAutoWidth", true );
276
        $(document).ready(function(){
282
        $(document).ready(function(){
277
            $("#recalls_patronsearch").on("submit", filter);
278
            [% UNLESS patron %]
283
            [% UNLESS patron %]
279
                [% IF ( PatronAutoComplete ) %]
284
                [% IF ( PatronAutoComplete ) %]
280
                    patron_autocomplete($("#search_patron_filter"), { 'link-to': 'recall', 'url-params': '[% url_biblio_params | url %]' });
285
                    patron_autocomplete($(".search_patron_filter"), { 'link-to': 'recall', 'url-params': '[% url_biblio_params | url %]' });
281
                [% END %]
286
                [% END %]
282
            [% END %]
287
            [% END %]
283
            $("#items").dataTable($.extend(true, {}, dataTablesDefaults, {
288
            $("#items").dataTable($.extend(true, {}, dataTablesDefaults, {
284
                'bPaginate': false,
289
                'paginate': false,
285
                "sDom": '<"top pager"ilf>t',
290
                "dom": '<"top pager"ilf>t',
286
            }));
291
            }));
287
292
288
            //Override fieldset styling for dataTables search box
293
            //Override fieldset styling for dataTables search box
289
- 

Return to bug 31391