From 709e3be93693a4a64da9cce64b01e80eb55e7ca8 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Tue, 20 Oct 2009 22:00:28 +0200 Subject: [PATCH] AddBiblio Workflow edition When in Edit Mode, when save is clicked, get back to the MARCdetail.pl and not to additem.pl --- cataloguing/addbiblio.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index b974d28374..d05464cc77 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -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, -- 2.39.5