From c78a926046f93606681e64c332f374aa2bba603e Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Tue, 17 May 2011 18:10:01 +0200 Subject: [PATCH] BUG6067 When Add Duplicate changing framework would loose data Signed-off-by: Marcel de Rooy Signed-off-by: Chris Cormack --- cataloguing/addbiblio.pl | 7 +++++++ .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 7e146c0c8b..fdf14cae87 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -913,6 +913,9 @@ if ($biblionumber) { #------------------------------------------------------------------------------------- if ( $op eq "addbiblio" ) { #------------------------------------------------------------------------------------- + $template->param( + biblionumberdata => $biblionumber, + ); # getting html input my @params = $input->param(); $record = TransformHtmlToMarc( \@params , $input ); @@ -996,6 +999,10 @@ elsif ( $op eq "delete" ) { #---------------------------------------------------------------------------- # If we're in a duplication case, we have to set to "" the biblionumber # as we'll save the biblio as a new one. + $template->param( + biblionumberdata => $biblionumber, + op => $op, + ); if ( $op eq "duplicate" ) { $biblionumber = ""; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index accff7d656..0a73acedb7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -255,7 +255,7 @@ function GetZ3950Terms(){ function Changefwk(FwkList) { var fwk = FwkList.options[FwkList.selectedIndex].value; - window.location = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&breedingid=[% breedingid %]&frameworkcode="+fwk; + window.location = "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumberdata %]&op=[% op %]&breedingid=[% breedingid %]&mode=[% popup %]&frameworkcode="+fwk; } -- 2.39.5