@@ -, +, @@ export file as cataloger saves --- koha-tmpl/intranet-tmpl/prog/css/cateditor.css | 22 +++++++++++++++++++++ .../prog/en/includes/cateditor-ui.inc | 23 ++++++++++++---------- 2 files changed, 35 insertions(+), 10 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css +++ a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css @@ -383,6 +383,28 @@ body { font-size: 115%; } +#export-list > li + li { + margin-top: -2px; +} + +#export-list .active { + background: #EDF4F6; + border-color: none; +} + +#export-list a { + display: block; + padding: 6px; +} + +#export-list a:focus { + outline: none; +} + +#export-list .active .export-info { + display: block; +} + #export-editor { display: flex; flex-direction: column; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -275,6 +275,17 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr save: function( id, record, done ) { function finishCb( data ) { done( { error: data.error, newRecord: data.marcxml && data.marcxml[0], newId: data.biblionumber && [ 'catalog', data.biblionumber ] } ); + + //Add the record to the exportRecords list if there is one + if(Preferences.user.exportRecords) { + var export_list = $.map (Preferences.user.exportRecords, function (exportRecord, name) { + return $.extend( { name: name}, exportRecord ); + }); + $.each ( export_list, function ( undef, exportRecord ) { + exportRecord.contents += "\n" + data.biblionumber; + storeExportRecord( exportRecord.name, { contents: exportRecord.contents} ); + } ); + } } if ( id ) { @@ -1047,16 +1058,6 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr saveRecord( backend + '/', editor, finishCb ); } - //Add the record to the exportRecords list if there is one - if(Preferences.user.exportRecords) { - var export_list = $.map (Preferences.user.exportRecords, function (exportRecord, name) { - return $.extend( { name: name}, exportRecord ); - }); - $.each ( export_list, function ( undef, exportRecord ) { - exportRecord.contents += "\n" + state.recordID; - storeExportRecord( exportRecord.name, { contents: exportRecord.contents} ); - } ); - } return false; } ); @@ -1310,6 +1311,8 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr $( window ).resize( onResize ).resize(); editor.focus(); } ); + + } if ( "[% auth_forwarded_hash | html %]" ) { --