diff --git a/installer/data/mysql/en/mandatory/keyboard_shortcuts.txt b/installer/data/mysql/en/mandatory/keyboard_shortcuts.txt deleted file mode 100644 index 64e5e94989..0000000000 --- a/installer/data/mysql/en/mandatory/keyboard_shortcuts.txt +++ /dev/null @@ -1 +0,0 @@ -Default keyboard shorcuts diff --git a/installer/data/mysql/mandatory/keyboard_shortcuts.sql b/installer/data/mysql/mandatory/keyboard_shortcuts.sql index b7fb58a3f4..ef4a95553d 100644 --- a/installer/data/mysql/mandatory/keyboard_shortcuts.sql +++ b/installer/data/mysql/mandatory/keyboard_shortcuts.sql @@ -2,8 +2,7 @@ -- Default keyboard shortcuts -- for Koha. -- --- Copyright (C) 2007 LiblimeA --- Copyright 2018 Koha Development Team +-- Copyright 2019 Koha Development Team -- -- This file is part of Koha. -- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt index 2352bc87f4..957af5c9c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt @@ -211,7 +211,7 @@
Additional fields
Add additional fields to certain tables
[% END %] - [% IF ( CAN_user_parameters_manage_keyboard_shortcuts ) %] + [% IF Koha.Preference('EnableAdvancedCatalogingEditor') && ( CAN_user_parameters_manage_keyboard_shortcuts ) %]
Keyboard shortcuts
Define which keys trigger actions in the advanced cataloging editor
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/adveditorshortcuts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/adveditorshortcuts.tt index 730ed50b3e..4589653c18 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/adveditorshortcuts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/adveditorshortcuts.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE Koha %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Advanced editor shortcuts @@ -21,39 +22,42 @@

Advanced editor keyboard shortcuts

- + [% IF Koha.Preference('EnableAdvancedCatalogingEditor') %] + -
-
- - - - - - - - - [% FOREACH shortcut IN shortcuts %] - - - - - [% END %] -
DescriptionShortcut keys
- - -
-
- -
+
+
+ + + + + + + + [% FOREACH shortcut IN shortcuts %] + + + + + [% END %] +
DescriptionShortcut keys
+ + +
+
+ +
+ [% ELSE %] +

Enable the advanced cataloging editor ( EnableAdvancedCatalogingEditor system preference) to define keyboard shortcuts

+ [% END %]
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 fb0011994f..d313fd982a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt @@ -269,7 +269,9 @@