From 69604ba93f6a3daccda91a1fa975811215b1ccbe Mon Sep 17 00:00:00 2001 From: rangi Date: Tue, 7 Mar 2006 23:37:48 +0000 Subject: [PATCH] catching oldbiblionumber also --- cataloguing/addbiblio.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 14d6d991ea..4e829b116b 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -349,6 +349,9 @@ sub build_hidden_data () { my $input = new CGI; my $error = $input->param('error'); my $biblionumber=$input->param('biblionumber'); # if biblionumber exists, it's a modif, not a new biblio. +if (!$biblionumber){ + $biblionumber=$input->param('oldbiblionumber'); + } my $breedingid = $input->param('breedingid'); my $z3950 = $input->param('z3950'); my $op = $input->param('op'); @@ -358,7 +361,7 @@ my $dbh = C4::Context->dbh; $frameworkcode = &MARCfind_frameworkcode($dbh,$biblionumber) if ($biblionumber and not ($frameworkcode)); $frameworkcode='' if ($frameworkcode eq 'Default'); my ($template, $loggedinuser, $cookie) - = get_template_and_user({template_name => "cataloguing/addbiblio.tmpl", + = get_template_and_user({template_name => "acqui.simple/addbiblio.tmpl", query => $input, type => "intranet", authnotrequired => 0, -- 2.39.5