Lines 41-46
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
41 |
|
41 |
|
42 |
my $action = $cgi->param('action') || q{}; |
42 |
my $action = $cgi->param('action') || q{}; |
43 |
my $biblionumber = $cgi->param('biblionumber'); |
43 |
my $biblionumber = $cgi->param('biblionumber'); |
|
|
44 |
my $biblio = Koha::Biblios->find($biblionumber); |
44 |
|
45 |
|
45 |
if ( $action eq 'create' ) { |
46 |
if ( $action eq 'create' ) { |
46 |
my $branchcode = $cgi->param('branchcode'); |
47 |
my $branchcode = $cgi->param('branchcode'); |
Lines 74-82
if ( $action eq 'create' ) {
Link Here
|
74 |
|
75 |
|
75 |
print $cgi->redirect("/cgi-bin/koha/opac-user.pl#opac-user-article-requests"); |
76 |
print $cgi->redirect("/cgi-bin/koha/opac-user.pl#opac-user-article-requests"); |
76 |
exit; |
77 |
exit; |
|
|
78 |
} elsif ( !$action ) { |
79 |
# Should we redirect? |
80 |
# Conditions: no items, host item entry (MARC21 773) |
81 |
my ( $host, $pageinfo ) = $biblio->host_record({ no_items => 1 }); |
82 |
if( $host ) { |
83 |
$template->param( pageinfo => $pageinfo, title => $biblio->title, author => $biblio->author ); |
84 |
$biblio = $host; |
85 |
} |
77 |
} |
86 |
} |
78 |
|
87 |
|
79 |
my $biblio = Koha::Biblios->find($biblionumber); |
|
|
80 |
my $patron = Koha::Patrons->find($borrowernumber); |
88 |
my $patron = Koha::Patrons->find($borrowernumber); |
81 |
|
89 |
|
82 |
$template->param( |
90 |
$template->param( |
83 |
- |
|
|