BUG6067 When Add Duplicate changing framework would loose data
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
700249eb3c
commit
c78a926046
2 changed files with 8 additions and 1 deletions
|
@ -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 = "";
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue