]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#2031114 - Create MARC Record - focus on item add and call number
authorJosh Stompro <stompro@stompro.org>
Mon, 10 Feb 2020 16:15:02 +0000 (10:15 -0600)
committerMichele Morgan <mmorgan@noblenet.org>
Thu, 24 Aug 2023 18:52:30 +0000 (14:52 -0400)
commit568d48ea12ac2577ff020552e18ba0dd9a191e88
treee3ad8677a119c477c6792a987b1f0a1ee2e1b436
parent287363c383586b6c61c1af14294b2a51594b2492
LP#2031114 - 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.

Includes release note entry.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/templates/staff/cat/share/t_marcedit.tt2
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
docs/RELEASE_NOTES_NEXT/Cataloging/create_marc_record_enhancements_lp2031114.adoc [new file with mode: 0644]