@@ -, +, @@ macro editor --- koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js | 2 -- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 9 ++++++++- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) --- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js +++ a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js @@ -204,8 +204,6 @@ define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], 'Ctrl-D': function( cm ) { // Insert subfield delimiter - // This will be extended later to allow either a configurable subfield delimiter or just - // make it be the double cross. var cur = cm.getCursor(); cm.replaceRange( "‡", cur, null ); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -531,7 +531,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr pages.push( '
  • ' + _("Next") + ' »
  • ' ); } - if ( pages.length > 1 ) $( '#search-top-pages, #search-bottom-pages' ).find( '.pagination' ).html( ''); + $( '#search-top-pages, #search-bottom-pages' ).find( '.pagination' ).html( pages.length > 1 ? ( '' ) : '' ); var $overlay = $('#search-overlay'); $overlay.find('span').text(_("Loading")); @@ -778,6 +778,13 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr macroEditor = CodeMirror( $('#macro-editor')[0], { + extraKeys: { + 'Ctrl-D': function( cm ) { + var cur = cm.getCursor(); + + cm.replaceRange( "‡", cur, null ); + }, + }, mode: 'null', lineNumbers: true, } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt @@ -229,7 +229,9 @@ -
    +
    + + - - [% PROCESS 'cateditor-ui.inc' %] [% INCLUDE 'intranet-bottom.inc' %] --