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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-9 / +12 lines)
Lines 1998-2013 Link Here
1998
        table_settings = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1998
        table_settings = [% TablesSettings.GetTableSettings( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1999
    </script>
1999
    </script>
2000
2000
2001
    [% SET search_results_block_id = 'holds_patronsearch_pane_panel' %] [%# adjusting variable for patron-search.inc %]
2001
    [% UNLESS patron %]
2002
    [% 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/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
2002
        [% SET search_results_block_id = 'holds_patronsearch_pane_panel' %] [%# adjusting variable for patron-search.inc %]
2003
        [% 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/reserve/request.pl?' _ url_biblio_params, redirect_if_one_result => 1, redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params, redirect_if_attribute_equal => 'cardnumber' %]
2004
        <script>
2005
            $(document).ready(function() {
2006
                $("#holds_patronsearch").on("submit", filter);
2007
            });
2008
        </script>
2009
    [% END %]
2003
    <script>
2010
    <script>
2004
        $(document).ready(function() {
2005
            $("#holds_patronsearch").on("submit", filter);
2006
        });
2007
        $('.printholdslip').click(function(){
2011
        $('.printholdslip').click(function(){
2008
                var reserve_id = $(this).attr('data-reserve_id');
2012
            var reserve_id = $(this).attr('data-reserve_id');
2009
                window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
2013
            window.open("/cgi-bin/koha/circ/hold-transfer-slip.pl?reserve_id=" + reserve_id);
2010
                return false;
2014
            return false;
2011
        })
2015
        })
2012
    </script>
2016
    </script>
2013
[% END %]
2017
[% END %]
2014
- 

Return to bug 33484