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

(-)a/cataloguing/addbiblio.pl (-10 / +12 lines)
Lines 806-823 if ($breedingid) { Link Here
806
    ( $record, $encoding ) = MARCfindbreeding( $breedingid ) ;
806
    ( $record, $encoding ) = MARCfindbreeding( $breedingid ) ;
807
}
807
}
808
808
809
if ( $record != -1 && C4::Context->preference('IndependentBranchesMarcEditing') ) {
809
if ( $record != -1
810
    unless (
810
    && C4::Context->preference('IndependentBranchesMarcEditing') )
811
        GetIndependentGroupModificationRights(
811
{
812
            {
812
    my ( $field, $subfield ) =
813
                for => $record->subfield(
813
      GetMarcFromKohaField( 'biblio.branchcode', $frameworkcode );
814
                    GetMarcFromKohaField( 'biblio.branchcode', $frameworkcode )
814
    if (
815
                )
815
           defined( $record->field($field) )
816
            }
816
        && defined( $record->subfield( $field, $subfield ) )
817
        && !GetIndependentGroupModificationRights(
818
            { for => $record->subfield( $field, $subfield ) }
817
        )
819
        )
818
      )
820
      )
819
    {
821
    {
820
        print $input->redirect( "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" );
822
        print $input->redirect(
823
            "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber");
821
        exit;
824
        exit;
822
    }
825
    }
823
}
826
}
824
- 

Return to bug 10263