BUG6067 When Add Duplicate changing framework would loose data
authorFridolyn SOMERS <fridolyn.somers@progilone.fr>
Tue, 17 May 2011 16:10:01 +0000 (18:10 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 7 Jun 2011 04:39:48 +0000 (16:39 +1200)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
cataloguing/addbiblio.pl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt

index 7e146c0..fdf14ca 100755 (executable)
@@ -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 = "";
     }
index accff7d..0a73ace 100644 (file)
@@ -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;
 
 }