| Lines 79-92
          if ( $action eq 'create' ) {
      
      
        Link Here | 
        
          | 79 |  | 79 |  | 
        
          | 80 |     print $cgi->redirect("/cgi-bin/koha/opac-user.pl#opac-user-article-requests"); | 80 |     print $cgi->redirect("/cgi-bin/koha/opac-user.pl#opac-user-article-requests"); | 
        
          | 81 |     exit; | 81 |     exit; | 
          
            
              | 82 | } elsif ( !$action ) { | 82 | # Should we redirect? | 
            
              | 83 |     # Should we redirect? | 83 | } | 
            
              | 84 |     # Conditions: no items, host item entry (MARC21 773) | 84 | elsif ( !$action && C4::Context->preference('ArticleRequestsHostRedirection') ) { | 
            
              | 85 |     my ( $host, $pageinfo ) = $biblio->host_record({ no_items => 1 }); | 85 |   # Conditions: no items, host item entry (MARC21 773) | 
            
              | 86 |     if( $host ) { | 86 |   my ( $host, $pageinfo ) = $biblio->host_record( { no_items => 1 } ); | 
            
              | 87 |         $template->param( pageinfo => $pageinfo, title => $biblio->title, author => $biblio->author ); | 87 |   if ($host) { | 
            
              | 88 |         $biblio = $host; | 88 |       $template->param( | 
            
              | 89 |     } | 89 |           pageinfo => $pageinfo, | 
            
              |  |  | 90 |           title    => $biblio->title, | 
            
              | 91 |           author   => $biblio->author | 
            
              | 92 |       ); | 
            
              | 93 |       $biblio = $host; | 
            
              | 94 |   } | 
        
          | 90 | } | 95 | } | 
        
          | 91 |  | 96 |  | 
        
          | 92 | my $patron = Koha::Patrons->find($borrowernumber); | 97 | my $patron = Koha::Patrons->find($borrowernumber); |