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

(-)a/installer/data/mysql/atomicupdate/bug_37883.pl (-2 / +4 lines)
Lines 9-18 return { Link Here
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
10
11
        # Do you stuffs here
11
        # Do you stuffs here
12
        $dbh->do(q{
12
        $dbh->do(
13
            q{
13
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
14
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
14
            VALUES ('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo')
15
            VALUES ('FilterSearchResultsByLoggedInBranch','0','','Option to filter location column on staff search results by logged in branch','YesNo')
15
        });
16
        }
17
        );
16
18
17
        say $out "Added new system preference 'FilterSearchResultsByLoggedInBranch'";
19
        say $out "Added new system preference 'FilterSearchResultsByLoggedInBranch'";
18
    },
20
    },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-5 / +4 lines)
Lines 627-641 Link Here
627
                                                            [% IF status_count == "onloancount" %]
627
                                                            [% IF status_count == "onloancount" %]
628
                                                                [% IF SEARCH_RESULT.${status_count} > 0 %]
628
                                                                [% IF SEARCH_RESULT.${status_count} > 0 %]
629
                                                                    <div class="results_checkedout all">[% SEARCH_RESULT.${status_count} | html %] checked out:</div>
629
                                                                    <div class="results_checkedout all">[% SEARCH_RESULT.${status_count} | html %] checked out:</div>
630
                                                                    [% IF Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
630
                                                                    [% IF ( SEARCH_RESULT.branchonloancount > 0 ) && Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
631
                                                                        <div class="results_checkedout branch_specific">[% SEARCH_RESULT.branchonloancount | html %] checked out:</div>
631
                                                                        <div class="results_checkedout branch_specific">[% SEARCH_RESULT.branchonloancount | html %] checked out:</div>
632
                                                                    [% END %]
632
                                                                    [% END %]
633
                                                                [% END %]
633
                                                                [% END %]
634
                                                            [% ELSIF status_count == "othercount" %]
634
                                                            [% ELSIF status_count == "othercount" %]
635
                                                                [% IF SEARCH_RESULT.${status_count} > 0 %]
635
                                                                [% IF SEARCH_RESULT.${status_count} > 0 %]
636
                                                                    <div class="results_unavailablei all">[% SEARCH_RESULT.${status_count} | html %] unavailable:</div>
636
                                                                    <div class="results_unavailable all">[% SEARCH_RESULT.${status_count} | html %] unavailable:</div>
637
                                                                    [% IF Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
637
                                                                    [% IF ( SEARCH_RESULT.branchothercount > 0 ) && Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
638
                                                                        <div class="results_unavailablei branch_specific">[% SEARCH_RESULT.branchothercount | html %] unavailable:</div>
638
                                                                        <div class="results_unavailable branch_specific">[% SEARCH_RESULT.branchothercount | html %] unavailable:</div>
639
                                                                    [% END %]
639
                                                                    [% END %]
640
                                                                [% END %]
640
                                                                [% END %]
641
                                                            [% END %]
641
                                                            [% END %]
642
- 

Return to bug 37883