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

Return to bug 34608