View | Details | Raw Unified | Return to bug 32773
Collapse All | Expand All

(-)a/cataloguing/addbiblio.pl (-7 / +7 lines)
Lines 568-574 if ($biblionumber) { Link Here
568
    }
568
    }
569
}
569
}
570
570
571
if ($frameworkcode eq 'FA' || $is_fast_add){
571
if ( $frameworkcode eq 'FA' || $is_fast_add ){
572
    # 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
573
    $template->param(
573
    $template->param(
574
        'circborrowernumber' => $fa_circborrowernumber,
574
        'circborrowernumber' => $fa_circborrowernumber,
Lines 722-728 if ( $op eq "cud-addbiblio" ) { Link Here
722
            ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
722
            ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
723
        }
723
        }
724
        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")){
725
        if ($frameworkcode eq 'FA' || $is_fast_add){
725
        if ( $frameworkcode eq 'FA' || $is_fast_add ){
726
		print $input->redirect(
726
		print $input->redirect(
727
            '/cgi-bin/koha/cataloguing/additem.pl?'
727
            '/cgi-bin/koha/cataloguing/additem.pl?'
728
            .'biblionumber='.$biblionumber
728
            .'biblionumber='.$biblionumber
Lines 860-871 if ( $record ne '-1' ) { Link Here
860
    $template->param( title => $title );
860
    $template->param( title => $title );
861
}
861
}
862
$template->param(
862
$template->param(
863
    popup => $mode,
863
    popup          => $mode,
864
    frameworkcode => $frameworkcode,
864
    frameworkcode  => $frameworkcode,
865
    is_fast_add => $is_fast_add,
865
    is_fast_add    => $is_fast_add,
866
    itemtype => $frameworkcode,
866
    itemtype       => $frameworkcode,
867
    borrowernumber => $loggedinuser,
867
    borrowernumber => $loggedinuser,
868
    tab => scalar $input->param('tab')
868
    tab            => scalar $input->param('tab')
869
);
869
);
870
$template->{'VARS'}->{'searchid'} = $searchid;
870
$template->{'VARS'}->{'searchid'} = $searchid;
871
871
(-)a/cataloguing/additem.pl (-3 / +2 lines)
Lines 189-195 $restrictededition = 0 if ( $restrictededition != 0 && C4::Context->IsSuperLibra Link Here
189
# In case user has fast cataloging permission (and we're in fast cataloging), editing is not restricted
189
# In case user has fast cataloging permission (and we're in fast cataloging), editing is not restricted
190
$restrictededition = 0
190
$restrictededition = 0
191
    if ( $restrictededition != 0
191
    if ( $restrictededition != 0
192
    && ($frameworkcode eq 'FA' || $is_fast_add)
192
    && ( $frameworkcode eq 'FA' || $is_fast_add )
193
    && haspermission( $uid, { 'editcatalogue' => 'fast_cataloging' } ) );
193
    && haspermission( $uid, { 'editcatalogue' => 'fast_cataloging' } ) );
194
194
195
our $tagslib = &GetMarcStructure( 1, $frameworkcode );
195
our $tagslib = &GetMarcStructure( 1, $frameworkcode );
Lines 489-495 if ( $op eq "cud-additem" ) { Link Here
489
            undef($current_item);
489
            undef($current_item);
490
        }
490
        }
491
    }
491
    }
492
    if ( ($frameworkcode eq 'FA' || $is_fast_add) && $fa_circborrowernumber ) {
492
    if ( ( $frameworkcode eq 'FA' || $is_fast_add ) && $fa_circborrowernumber ) {
493
        print $input->redirect( '/cgi-bin/koha/circ/circulation.pl?'
493
        print $input->redirect( '/cgi-bin/koha/circ/circulation.pl?'
494
                . 'borrowernumber='
494
                . 'borrowernumber='
495
                . $fa_circborrowernumber
495
                . $fa_circborrowernumber
496
- 

Return to bug 32773