diff --git a/catalogue/search.pl b/catalogue/search.pl index a22b9da42c..03f746c5f1 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -200,6 +200,9 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( my $lang = C4::Languages::getlanguage($cgi); +my $userenv_branch = C4::Context->userenv->{'branch'} || ''; +$template->param( userbranch => $userenv_branch ); + if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) { $template->param( 'UNIMARC' => 1 ); } diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 229e9a63d8..5777e8211e 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -2038,6 +2038,14 @@ li { display: block; } } + + .all { + display: block; + } + + .branch_specific { + display: none; + } } #searchresults, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 434e8a1c18..d75f3daa54 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -773,12 +773,15 @@ [% ELSE %] , None available [% END %] - - [% ELSE %] - [% tnx('{count} item', '{count} items', SEARCH_RESULT.items_count, {count = SEARCH_RESULT.items_count}) | html %][% IF ( SEARCH_RESULT.availablecount ) %] - , [% SEARCH_RESULT.availablecount | html %] available: - [% ELSE %] - , None available + + [% IF SEARCH_RESULT.branchtotalcount > 0 %] +