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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-3 / +9 lines)
Lines 5-10 Link Here
5
[% USE Asset %]
5
[% USE Asset %]
6
[% USE To %]
6
[% USE To %]
7
7
8
[% USE AuthorisedValues %]
8
[%# Display a simple form %]
9
[%# Display a simple form %]
9
[% BLOCK patron_search_filters_simple  %]
10
[% BLOCK patron_search_filters_simple  %]
10
    <form id="patron_search_form">
11
    <form id="patron_search_form">
Lines 282-287 Link Here
282
        [% CASE %]
283
        [% CASE %]
283
            let patron_search_url = '/api/v1/patrons';
284
            let patron_search_url = '/api/v1/patrons';
284
        [% END %]
285
        [% END %]
286
287
        const av_bsort1= new Map([% To.json(AuthorisedValues.Get('Bsort1')) | $raw %].map( av => [av.authorised_value, av.lib]));
288
        const av_bsort2= new Map([% To.json(AuthorisedValues.Get('Bsort2')) | $raw %].map( av => [av.authorised_value, av.lib]));
289
285
        $(document).ready(function(){
290
        $(document).ready(function(){
286
291
287
            $("#info").hide();
292
            $("#info").hide();
Lines 619-625 Link Here
619
                                "searchable": true,
624
                                "searchable": true,
620
                                "orderable": true,
625
                                "orderable": true,
621
                                "render": function( data, type, row, meta ) {
626
                                "render": function( data, type, row, meta ) {
622
                                    return escape_str(data);
627
                                    let bsort1_lib = av_bsort1.get( data.toString() ) || data;
628
                                    return escape_str( bsort1_lib );
623
                                }
629
                                }
624
                            }
630
                            }
625
631
Lines 629-635 Link Here
629
                                "searchable": true,
635
                                "searchable": true,
630
                                "orderable": true,
636
                                "orderable": true,
631
                                "render": function( data, type, row, meta ) {
637
                                "render": function( data, type, row, meta ) {
632
                                    return escape_str(data);
638
                                    let bsort2_lib = av_bsort2.get( data.toString() ) || data;
639
                                    return escape_str( bsort2_lib );
633
                                }
640
                                }
634
                            }
641
                            }
635
642
636
- 

Return to bug 34608