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:
parent
24f9da415b
commit
709e3be936
1 changed files with 9 additions and 2 deletions
|
@ -927,12 +927,19 @@ if ( $op eq "addbiblio" ) {
|
||||||
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
|
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mode ne "popup"){
|
if ($mode ne "popup" && !$is_a_modif){
|
||||||
print $input->redirect(
|
print $input->redirect(
|
||||||
"/cgi-bin/koha/cataloguing/additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode"
|
"/cgi-bin/koha/cataloguing/additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode"
|
||||||
);
|
);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
}
|
||||||
|
elsif($is_a_modif){
|
||||||
|
print $input->redirect(
|
||||||
|
"/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode"
|
||||||
|
);
|
||||||
|
exit;
|
||||||
|
|
||||||
|
}else {
|
||||||
$template->param(
|
$template->param(
|
||||||
biblionumber => $biblionumber,
|
biblionumber => $biblionumber,
|
||||||
done =>1,
|
done =>1,
|
||||||
|
|
Loading…
Reference in a new issue