diff --git a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js b/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js index 91a286d9a7..1fe5e375eb 100644 --- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js +++ b/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 ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 310ca4545e..4cc594fb61 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/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, } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt index aa69ca0d46..e4e0cdaa4f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt @@ -229,7 +229,9 @@ -
    +
    + + - - [% PROCESS 'cateditor-ui.inc' %] [% INCLUDE 'intranet-bottom.inc' %]