Lines 519-525
$op = $input->param('op') // q{};
Link Here
|
519 |
$frameworkcode = &GetFrameworkCode($biblionumber) |
519 |
$frameworkcode = &GetFrameworkCode($biblionumber) |
520 |
if ( $biblionumber and not( defined $frameworkcode) and $op ne 'cud-addbiblio' ); |
520 |
if ( $biblionumber and not( defined $frameworkcode) and $op ne 'cud-addbiblio' ); |
521 |
|
521 |
|
522 |
my $is_fast_add = |
522 |
my $is_fast_add = |
523 |
defined $frameworkcode && $frameworkcode ne '' |
523 |
defined $frameworkcode && $frameworkcode ne '' |
524 |
? Koha::BiblioFrameworks->find($frameworkcode)->is_fast_add |
524 |
? Koha::BiblioFrameworks->find($frameworkcode)->is_fast_add |
525 |
: 0; |
525 |
: 0; |
Lines 572-578
if ($biblionumber) {
Link Here
|
572 |
} |
572 |
} |
573 |
} |
573 |
} |
574 |
|
574 |
|
575 |
if ($frameworkcode eq 'FA' || $is_fast_add){ |
575 |
if ( $frameworkcode eq 'FA' || $is_fast_add ){ |
576 |
# We need to grab and set some variables in the template for use on the additems screen |
576 |
# We need to grab and set some variables in the template for use on the additems screen |
577 |
$template->param( |
577 |
$template->param( |
578 |
'circborrowernumber' => $fa_circborrowernumber, |
578 |
'circborrowernumber' => $fa_circborrowernumber, |
Lines 726-732
if ( $op eq "cud-addbiblio" ) {
Link Here
|
726 |
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); |
726 |
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); |
727 |
} |
727 |
} |
728 |
if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){ |
728 |
if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){ |
729 |
if ($frameworkcode eq 'FA' || $is_fast_add){ |
729 |
if ( $frameworkcode eq 'FA' || $is_fast_add ){ |
730 |
print $input->redirect( |
730 |
print $input->redirect( |
731 |
'/cgi-bin/koha/cataloguing/additem.pl?' |
731 |
'/cgi-bin/koha/cataloguing/additem.pl?' |
732 |
.'biblionumber='.$biblionumber |
732 |
.'biblionumber='.$biblionumber |
Lines 864-875
if ( $record ne '-1' ) {
Link Here
|
864 |
$template->param( title => $title ); |
864 |
$template->param( title => $title ); |
865 |
} |
865 |
} |
866 |
$template->param( |
866 |
$template->param( |
867 |
popup => $mode, |
867 |
popup => $mode, |
868 |
frameworkcode => $frameworkcode, |
868 |
frameworkcode => $frameworkcode, |
869 |
is_fast_add => $is_fast_add, |
869 |
is_fast_add => $is_fast_add, |
870 |
itemtype => $frameworkcode, |
870 |
itemtype => $frameworkcode, |
871 |
borrowernumber => $loggedinuser, |
871 |
borrowernumber => $loggedinuser, |
872 |
tab => scalar $input->param('tab') |
872 |
tab => scalar $input->param('tab') |
873 |
); |
873 |
); |
874 |
$template->{'VARS'}->{'searchid'} = $searchid; |
874 |
$template->{'VARS'}->{'searchid'} = $searchid; |
875 |
|
875 |
|