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

(-)a/catalogue/search.pl (+3 lines)
Lines 200-205 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
200
200
201
my $lang = C4::Languages::getlanguage($cgi);
201
my $lang = C4::Languages::getlanguage($cgi);
202
202
203
my $userenv_branch = C4::Context->userenv->{'branch'} || '';
204
$template->param( userbranch => $userenv_branch );
205
203
if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
206
if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) {
204
    $template->param( 'UNIMARC' => 1 );
207
    $template->param( 'UNIMARC' => 1 );
205
}
208
}
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+8 lines)
Lines 2035-2040 li { Link Here
2035
            display: block;
2035
            display: block;
2036
        }
2036
        }
2037
    }
2037
    }
2038
2039
    .all {
2040
        display: block;
2041
    }
2042
2043
    .branch_specific {
2044
        display: none;
2045
    }
2038
}
2046
}
2039
2047
2040
#searchresults,
2048
#searchresults,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-8 / +10 lines)
Lines 773-784 Link Here
773
                                                            [% ELSE %]
773
                                                            [% ELSE %]
774
                                                                , <span>None available</span>
774
                                                                , <span>None available</span>
775
                                                            [% END %]
775
                                                            [% END %]
776
                                                        </span>
776
                                                        </div>
777
                                                    [% ELSE %]
777
                                                        [% IF SEARCH_RESULT.branchtotalcount > 0 %]
778
                                                        [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %]
778
                                                            <div class="branch_specific">
779
                                                            , [% SEARCH_RESULT.availablecount | html %] <span>available:</span>
779
                                                                [% tnx('{count} item', '{count} items', SEARCH_RESULT.branchtotalcount, {count = SEARCH_RESULT.branchtotalcount}) | html %][% IF ( SEARCH_RESULT.branchavailablecount ) %]
780
                                                        [% ELSE %]
780
                                                                    , [% SEARCH_RESULT.branchavailablecount | html %] <span>available:</span>
781
                                                            , <span>None available</span>
781
                                                                [% ELSE %]
782
                                                                    , <span>None available</span>
783
                                                                [% END %]
784
                                                            </div>
782
                                                        [% END %]
785
                                                        [% END %]
783
                                                    [% END %]
786
                                                    [% END %]
784
                                                </div>
787
                                                </div>
Lines 875-881 Link Here
875
                                                        [% END %]
878
                                                        [% END %]
876
                                                    </ul>
879
                                                    </ul>
877
                                                [% ELSE %]
880
                                                [% ELSE %]
878
                                                    <span class="unavailable">No items</span>
881
                                                    <span class="unavailable all">No items</span>
879
                                                [% END %]
882
                                                [% END %]
880
                                            [% END # /IF ( SEARCH_RESULT.items_count ) %]
883
                                            [% END # /IF ( SEARCH_RESULT.items_count ) %]
881
                                            [% IF SEARCH_RESULT.branchtotalcount == 0 && Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
884
                                            [% IF SEARCH_RESULT.branchtotalcount == 0 && Koha.Preference('FilterSearchResultsByLoggedInBranch') %]
882
- 

Return to bug 37883