AddBiblio Workflow edition

When in Edit Mode, when save is clicked, get back to the MARCdetail.pl and not to additem.pl
This commit is contained in:
Henri-Damien LAURENT 2009-10-20 22:00:28 +02:00
parent 24f9da415b
commit 709e3be936

View file

@ -927,12 +927,19 @@ if ( $op eq "addbiblio" ) {
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
}
if ($mode ne "popup"){
if ($mode ne "popup" && !$is_a_modif){
print $input->redirect(
"/cgi-bin/koha/cataloguing/additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode"
);
exit;
} else {
}
elsif($is_a_modif){
print $input->redirect(
"/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode"
);
exit;
}else {
$template->param(
biblionumber => $biblionumber,
done =>1,