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

(-)a/cataloguing/addbiblio.pl (-2 / +16 lines)
Lines 35-40 use C4::Biblio qw( Link Here
35
    prepare_host_field
35
    prepare_host_field
36
    PrepHostMarcField
36
    PrepHostMarcField
37
    TransformHtmlToMarc
37
    TransformHtmlToMarc
38
    ApplyMarcOverlayRules
38
);
39
);
39
use C4::Search qw( FindDuplicate enabled_staff_search_views );
40
use C4::Search qw( FindDuplicate enabled_staff_search_views );
40
use C4::Auth qw( get_template_and_user haspermission );
41
use C4::Auth qw( get_template_and_user haspermission );
Lines 846-851 if ($biblionumber) { Link Here
846
    my $sth =  $dbh->prepare("select biblioitemnumber from biblioitems where biblionumber=?");
847
    my $sth =  $dbh->prepare("select biblioitemnumber from biblioitems where biblionumber=?");
847
    $sth->execute($biblionumber);
848
    $sth->execute($biblionumber);
848
    ($biblioitemnumber) = $sth->fetchrow;
849
    ($biblioitemnumber) = $sth->fetchrow;
850
    if (C4::Context->preference('MARCOverlayRules')) {
851
        my $member = Koha::Patrons->find($loggedinuser);
852
        $record = ApplyMarcOverlayRules(
853
            {
854
                biblionumber    => $biblionumber,
855
                record          => $record,
856
                overlay_context =>  {
857
                        source       => $z3950 ? 'z3950' : 'intranet',
858
                        categorycode => $member->categorycode,
859
                        userid       => $member->userid
860
                }
861
            }
862
        );
863
    }
849
}
864
}
850
865
851
#-------------------------------------------------------------------------------------
866
#-------------------------------------------------------------------------------------
Lines 874-880 if ( $op eq "addbiblio" ) { Link Here
874
                $frameworkcode,
889
                $frameworkcode,
875
                {
890
                {
876
                    overlay_context => {
891
                    overlay_context => {
877
                        source       => $z3950 ? 'z39.50' : 'intranet',
892
                        source       => $z3950 ? 'z3950' : 'intranet',
878
                        categorycode => $member->categorycode,
893
                        categorycode => $member->categorycode,
879
                        userid       => $member->userid
894
                        userid       => $member->userid
880
                    }
895
                    }
881
- 

Return to bug 30966