From ed8ecbf14d05895efee5141c659a97bb52fdae91 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 8 Oct 2015 19:23:36 +0000 Subject: [PATCH] webstaff: add keyboard shortcut legend to MARC editor Note that once we upgrade to angularjs-ui >= 0.13.0, using a popover rather than a collapse might be better. Signed-off-by: Galen Charlton --- .../src/templates/staff/cat/share/t_marcedit.tt2 | 29 +++++++++++++++++++--- .../js/ui/default/staff/cat/services/marcedit.js | 1 + 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 index 92dc60b55c..f1ed6c44bf 100644 --- a/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 +++ b/Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2 @@ -141,10 +141,31 @@
- +
+ + + +
+
+
    +
  • [% l('Undo: CTRL-z') %]
  • +
  • [% l('Redo: CTRL-y') %]
  • +
  • [% l('Add Row: CTRL+Enter') %]
  • +
  • [% l('Insert Row: CTRL+Shift+Enter') %]
  • +
  • [% l('Copy Current Row Above: CTRL+Up') %]
  • +
  • [% l('Copy Current Row Below: CTRL+Down') %]
  • +
  • [% l('Add Subfield: CTRL+D or CTRL+I') %]
  • +
  • [% l('Remove Row: CTRL+Del') %]
  • +
  • [% l('Remove Subfield: Shift+Del') %]
  • +
  • [% l('Create/Replace 006: Shift+F6') %]
  • +
  • [% l('Create/Replace 007: Shift+F7') %]
  • +
  • [% l('Create/Replace 008: Shift+F8') %]
  • +
+
diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index c295207794..5fb520238f 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -672,6 +672,7 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) $scope.controlfields = []; $scope.datafields = []; $scope.controlSet = egTagTable.getAuthorityControlSet(); + $scope.showHelp = false; $scope.stackSubfields = { enabled : false }; egCore.hatch.getItem('cat.marcedit.stack_subfields').then(function(val) { $scope.stackSubfields.enabled = val; -- 2.11.0