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

(-)a/cataloguing/addbiblio.pl (-2 / +6 lines)
Lines 737-747 if ($frameworkcode eq 'FA'){ Link Here
737
        'stickyduedate'      => $fa_stickyduedate,
737
        'stickyduedate'      => $fa_stickyduedate,
738
        'duedatespec'        => $fa_duedatespec,
738
        'duedatespec'        => $fa_duedatespec,
739
    );
739
    );
740
} elsif ( $op ne "delete" && C4::Context->preference('EnableAdvancedCatalogingEditor') && C4::Auth::haspermission(C4::Context->userenv->{id},{'editcatalogue'=>'advanced_editor'}) && $input->cookie( 'catalogue_editor_' . $loggedinuser ) eq 'advanced' && !$breedingid ) {
740
} elsif ( $op ne "delete" &&
741
            C4::Context->preference('EnableAdvancedCatalogingEditor') &&
742
            C4::Auth::haspermission(C4::Context->userenv->{id},{'editcatalogue'=>'advanced_editor'}) &&
743
            $input->cookie( 'catalogue_editor_' . $loggedinuser ) eq 'advanced' &&
744
            !$breedingid ) {
741
    # Only use the advanced editor for non-fast-cataloging.
745
    # Only use the advanced editor for non-fast-cataloging.
742
    # breedingid is not handled because those would only come off a Z39.50
746
    # breedingid is not handled because those would only come off a Z39.50
743
    # search initiated by the basic editor.
747
    # search initiated by the basic editor.
744
    print $input->redirect( '/cgi-bin/koha/cataloguing/editor.pl' . ( $biblionumber ? ( '#catalog/' . $biblionumber ) : '' ) );
748
    print $input->redirect( '/cgi-bin/koha/cataloguing/editor.pl' . ( $biblionumber ? ( ($op eq 'duplicate'?'#duplicate/':'#catalog/') . $biblionumber ) : '' ) );
745
    exit;
749
    exit;
746
}
750
}
747
751
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-1 / +15 lines)
Lines 234-239 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
234
                callback( record );
234
                callback( record );
235
            },
235
            },
236
        },
236
        },
237
        'duplicate': {
238
            titleForRecord: _("Editing duplicate record of #{ID}"),
239
            get: function( id, callback ) {
240
                if ( !id ) return false;
241
242
                KohaBackend.GetRecord( id, callback );
243
            },
244
            save: function( id, record, done ) {
245
                function finishCb( data ) {
246
                    done( { error: data.error, newRecord: data.marcxml && data.marcxml[0], newId: data.biblionumber && [ 'catalog', data.biblionumber ] } );
247
                }
248
249
                KohaBackend.CreateRecord( record, finishCb );
250
            }
251
        },
237
        'catalog': {
252
        'catalog': {
238
            titleForRecord: _("Editing catalog record #{ID}"),
253
            titleForRecord: _("Editing catalog record #{ID}"),
239
            links: [
254
            links: [
240
- 

Return to bug 16232