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