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

(-)a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css (+22 lines)
Lines 383-388 body { Link Here
383
    font-size: 115%;
383
    font-size: 115%;
384
}
384
}
385
385
386
#export-list > li + li {
387
    margin-top: -2px;
388
}
389
390
#export-list .active {
391
    background: #EDF4F6;
392
    border-color: none;
393
}
394
395
#export-list a {
396
    display: block;
397
    padding: 6px;
398
}
399
400
#export-list a:focus {
401
    outline: none;
402
}
403
404
#export-list .active .export-info {
405
    display: block;
406
}
407
386
#export-editor {
408
#export-editor {
387
    display: flex;
409
    display: flex;
388
    flex-direction: column;
410
    flex-direction: column;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-11 / +13 lines)
Lines 275-280 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
275
            save: function( id, record, done ) {
275
            save: function( id, record, done ) {
276
                function finishCb( data ) {
276
                function finishCb( data ) {
277
                    done( { error: data.error, newRecord: data.marcxml && data.marcxml[0], newId: data.biblionumber && [ 'catalog', data.biblionumber ] } );
277
                    done( { error: data.error, newRecord: data.marcxml && data.marcxml[0], newId: data.biblionumber && [ 'catalog', data.biblionumber ] } );
278
279
                //Add the record to the exportRecords list if there is one
280
                if(Preferences.user.exportRecords) {
281
                var export_list = $.map (Preferences.user.exportRecords, function (exportRecord, name) {
282
                            return $.extend( { name: name}, exportRecord );
283
                        });
284
                    $.each ( export_list, function ( undef, exportRecord ) {
285
                            exportRecord.contents += "\n" + data.biblionumber;
286
                            storeExportRecord( exportRecord.name, { contents: exportRecord.contents} );
287
                        } );
288
                    }
278
                }
289
                }
279
290
280
                if ( id ) {
291
                if ( id ) {
Lines 1047-1062 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
1047
                saveRecord( backend + '/', editor, finishCb );
1058
                saveRecord( backend + '/', editor, finishCb );
1048
            }
1059
            }
1049
1060
1050
            //Add the record to the exportRecords list if there is one
1051
            if(Preferences.user.exportRecords) {
1052
                var export_list = $.map (Preferences.user.exportRecords, function (exportRecord, name) {
1053
                            return $.extend( { name: name}, exportRecord );
1054
                        });
1055
                $.each ( export_list, function ( undef, exportRecord ) {
1056
                        exportRecord.contents += "\n" + state.recordID;
1057
                        storeExportRecord( exportRecord.name, { contents: exportRecord.contents} );
1058
                    } );
1059
            }
1060
            return false;
1061
            return false;
1061
        } );
1062
        } );
1062
1063
Lines 1310-1315 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
1310
                $( window ).resize( onResize ).resize();
1311
                $( window ).resize( onResize ).resize();
1311
                editor.focus();
1312
                editor.focus();
1312
            } );
1313
            } );
1314
1315
1313
        }
1316
        }
1314
1317
1315
        if ( "[% auth_forwarded_hash | html %]" ) {
1318
        if ( "[% auth_forwarded_hash | html %]" ) {
1316
- 

Return to bug 24429