Lines 70-81
if( $op && $op !~ /^cud-/ ) {
Link Here
|
70 |
for my $biblionumber (@biblionumbers) { |
70 |
for my $biblionumber (@biblionumbers) { |
71 |
$shelf->add_biblio( $biblionumber, $loggedinuser ); |
71 |
$shelf->add_biblio( $biblionumber, $loggedinuser ); |
72 |
} |
72 |
} |
73 |
|
|
|
74 |
#Reload the page where you came from |
75 |
print $query->header; |
76 |
print "<html><meta http-equiv=\"refresh\" content=\"0\" /><body onload=\"window.opener.location.reload(true);self.close();\"></body></html>"; |
77 |
exit; |
78 |
} |
73 |
} |
|
|
74 |
$template->param( |
75 |
WINDOW_CLOSE => 1, |
76 |
WINDOW_PARENT_RELOAD => 1, |
77 |
); |
79 |
} |
78 |
} |
80 |
} elsif ($shelfnumber) { |
79 |
} elsif ($shelfnumber) { |
81 |
my $shelfnumber = $query->param('shelfnumber'); |
80 |
my $shelfnumber = $query->param('shelfnumber'); |
Lines 84-94
if( $op && $op !~ /^cud-/ ) {
Link Here
|
84 |
for my $biblionumber (@biblionumbers) { |
83 |
for my $biblionumber (@biblionumbers) { |
85 |
$shelf->add_biblio( $biblionumber, $loggedinuser ); |
84 |
$shelf->add_biblio( $biblionumber, $loggedinuser ); |
86 |
} |
85 |
} |
87 |
|
86 |
$template->param( |
88 |
#Close this page and return |
87 |
WINDOW_CLOSE => 1, |
89 |
print $query->header; |
88 |
); |
90 |
print "<html><meta http-equiv=\"refresh\" content=\"0\" /><body onload=\"self.close();\"></body></html>"; |
|
|
91 |
exit; |
92 |
} else { |
89 |
} else { |
93 |
$authorized = 0; |
90 |
$authorized = 0; |
94 |
} |
91 |
} |
95 |
- |
|
|