LP#1862235 - Create MARC Record - Keyboard workflow enhancements user/stompro/lp1862235_create_marc_record_workflow_squashed
authorJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 14:18:03 +0000 (08:18 -0600)
committerJosh Stompro <stompro@stompro.org>
Wed, 12 Feb 2020 21:06:32 +0000 (15:06 -0600)
commitccbdcf166f80df887dfcf02d1fbedb85e364a0e9
treedce956aa208ab8c53d3e5a291d1b9eb37301803c
parent851572686b9d3c827bca282449d66299cc929e2e
LP#1862235 - Create MARC Record - Keyboard workflow enhancements

LP#1862235 - Create MARC Record - Global Keyboard Shortcut

Added ctrl+f3 to launch the create MARC record interface.

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Create MARC Record - Focus on template on load

Focus on the template selector dropdown when interface loads.

This removes the need to use the mouse, and speeds up using the
interface.  Pressing tab, then enter will submit
the form with the default template selected.

If the template needs to be changed, then pressing the first letter
of the template will switch between the different options.

This adds a directive named autoFocus to staff/cat/catalog/app.js,
so adding "auto-focus" to an element will cause that element
to have focus on load.

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Set unique page title for create marc record.

Add an egCore string for page title translation, and set
page title for Create New MARC Record.

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Create MARC Record - focus on item add and call number

This change sets the focus on the "Add Item" checkbox when the marc editor
is opened with fast item add enabled.  This allows the user to just press space
to enable Add item.

When the add item checkbox is enabled, the focus is moved to the call number field.

This adds a directive to app.js called focusOnShow that makes it easy
to mark an element to have focus when it becomes visible when using ng-show.

I had to add in a bit of redundancy in t_marcedit.tt2, the Add Item checkbox
needs to have it's own ng-show directive for the focus-on-show to work.

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Create MARC Record - Hide help button for flat editor

The help button only works for the non flat editor, so show it only
when flat editor isn't in use.

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Create MARC Record - Flat Editor - Keyboard Shortcut for Saving

Adds ctrl+s as a keyboard shortcut for saving the marc record while in the
flat text editor.

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Create MARC Record - Non-Flat Editor - Keyboard Shortcuts

Added the following shortcuts to the marc editor keyboard shortcuts.

Ctrl+s for save,
Ctrl+l for validate,
Ctrl+? for toggle help

Signed-off-by: Josh Stompro <stompro@stompro.org>
LP#1862235 - Create MARC Record - Jump to Flat Editor - Keyboard Shortcut

Added ctrl+e to jump to the flat editor textarea.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Open-ILS/src/templates/staff/cat/catalog/index.tt2
Open-ILS/src/templates/staff/cat/catalog/t_new_bib.tt2
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js