Lines 503-508
my $breedingid = $input->param('breedingid');
Link Here
|
503 |
my $z3950 = $input->param('z3950'); |
503 |
my $z3950 = $input->param('z3950'); |
504 |
my $mode = $input->param('mode') // q{}; |
504 |
my $mode = $input->param('mode') // q{}; |
505 |
my $frameworkcode = $input->param('frameworkcode'); |
505 |
my $frameworkcode = $input->param('frameworkcode'); |
|
|
506 |
my $is_fast_add = Koha::BiblioFrameworks->find($frameworkcode)->is_fast_add; |
506 |
my $redirect = $input->param('redirect'); |
507 |
my $redirect = $input->param('redirect'); |
507 |
my $searchid = $input->param('searchid') // ""; |
508 |
my $searchid = $input->param('searchid') // ""; |
508 |
my $dbh = C4::Context->dbh; |
509 |
my $dbh = C4::Context->dbh; |
Lines 520-526
$frameworkcode = &GetFrameworkCode($biblionumber)
Link Here
|
520 |
if ( $biblionumber and not( defined $frameworkcode) and $op ne 'cud-addbiblio' ); |
521 |
if ( $biblionumber and not( defined $frameworkcode) and $op ne 'cud-addbiblio' ); |
521 |
|
522 |
|
522 |
my $userflags = |
523 |
my $userflags = |
523 |
$frameworkcode eq 'FA' |
524 |
$frameworkcode eq 'FA' || $is_fast_add |
524 |
? [ 'fast_cataloging', 'edit_catalogue' ] |
525 |
? [ 'fast_cataloging', 'edit_catalogue' ] |
525 |
: 'edit_catalogue'; |
526 |
: 'edit_catalogue'; |
526 |
|
527 |
|
Lines 567-573
if ($biblionumber) {
Link Here
|
567 |
} |
568 |
} |
568 |
} |
569 |
} |
569 |
|
570 |
|
570 |
if ($frameworkcode eq 'FA'){ |
571 |
if ($frameworkcode eq 'FA' || $is_fast_add){ |
571 |
# We need to grab and set some variables in the template for use on the additems screen |
572 |
# We need to grab and set some variables in the template for use on the additems screen |
572 |
$template->param( |
573 |
$template->param( |
573 |
'circborrowernumber' => $fa_circborrowernumber, |
574 |
'circborrowernumber' => $fa_circborrowernumber, |
Lines 721-727
if ( $op eq "cud-addbiblio" ) {
Link Here
|
721 |
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); |
722 |
( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); |
722 |
} |
723 |
} |
723 |
if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){ |
724 |
if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){ |
724 |
if ($frameworkcode eq 'FA'){ |
725 |
if ($frameworkcode eq 'FA' || $is_fast_add){ |
725 |
print $input->redirect( |
726 |
print $input->redirect( |
726 |
'/cgi-bin/koha/cataloguing/additem.pl?' |
727 |
'/cgi-bin/koha/cataloguing/additem.pl?' |
727 |
.'biblionumber='.$biblionumber |
728 |
.'biblionumber='.$biblionumber |
Lines 861-866
if ( $record ne '-1' ) {
Link Here
|
861 |
$template->param( |
862 |
$template->param( |
862 |
popup => $mode, |
863 |
popup => $mode, |
863 |
frameworkcode => $frameworkcode, |
864 |
frameworkcode => $frameworkcode, |
|
|
865 |
is_fast_add => $is_fast_add, |
864 |
itemtype => $frameworkcode, |
866 |
itemtype => $frameworkcode, |
865 |
borrowernumber => $loggedinuser, |
867 |
borrowernumber => $loggedinuser, |
866 |
tab => scalar $input->param('tab') |
868 |
tab => scalar $input->param('tab') |