| Lines 715-722
          for (my $i=0;$i<@servers;$i++) {
      
      
        Link Here | 
        
          | 715 |             $template->param(results_per_page =>  $results_per_page); | 715 |             $template->param(results_per_page =>  $results_per_page); | 
        
          | 716 |             my $hide = C4::Context->preference('OpacHiddenItems'); | 716 |             my $hide = C4::Context->preference('OpacHiddenItems'); | 
        
          | 717 |             $hide = ($hide =~ m/\S/) if $hide; # Just in case it has some spaces/new lines | 717 |             $hide = ($hide =~ m/\S/) if $hide; # Just in case it has some spaces/new lines | 
          
            
              | 718 |  | 718 |             my $branch = ''; | 
            
              | 719 |             my $branch = C4::Context->userenv->{branch}; | 719 |             if (C4::Context->userenv){ | 
            
              |  |  | 720 |                 $branch = C4::Context->userenv->{branch}; | 
            
              | 721 |             } | 
        
          | 720 |             if ( C4::Context->preference('HighlightOwnItemsOnOPAC') ) { | 722 |             if ( C4::Context->preference('HighlightOwnItemsOnOPAC') ) { | 
        
          | 721 |                 if ( | 723 |                 if ( | 
        
          | 722 |                     ( ( C4::Context->preference('HighlightOwnItemsOnOPACWhich') eq 'PatronBranch' ) && $branch ) | 724 |                     ( ( C4::Context->preference('HighlightOwnItemsOnOPACWhich') eq 'PatronBranch' ) && $branch ) | 
            
              | 723 | -  |  |  |