From c2179af664f79da278654ad13abc5fe010b3e062 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 1 Feb 2013 15:50:29 -0500 Subject: [PATCH] Selfcheck staff mode, rev 1 Supports checkin mode with backdate and amnesty checkin. Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 4 +- .../Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql | 17 ++ Open-ILS/src/templates/circ/selfcheck/banner.tt2 | 10 +- .../src/templates/circ/selfcheck/checkin_page.tt2 | 47 +++ Open-ILS/src/templates/circ/selfcheck/main.tt2 | 10 + Open-ILS/src/templates/circ/selfcheck/summary.tt2 | 1 + Open-ILS/web/css/skin/default/selfcheck.css | 47 ++- Open-ILS/web/js/dojo/openils/Event.js | 1 + Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js | 8 +- .../web/js/ui/default/circ/selfcheck/selfcheck.js | 322 +++++++++++++++++++-- 10 files changed, 442 insertions(+), 25 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql create mode 100644 Open-ILS/src/templates/circ/selfcheck/checkin_page.tt2 diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 88051810eb..a7c7cc2389 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1573,7 +1573,9 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES ( 541, 'ADMIN_TOOLBAR_FOR_WORKSTATION', oils_i18n_gettext( 541, 'Allows a user to create, edit, and delete custom toolbars for workstations', 'ppl', 'description')), ( 542, 'ADMIN_TOOLBAR_FOR_USER', oils_i18n_gettext( 542, - 'Allows a user to create, edit, and delete custom toolbars for users', 'ppl', 'description')) + 'Allows a user to create, edit, and delete custom toolbars for users', 'ppl', 'description')), + ( 543, 'SELFCHECK_STAFF_MODE', oils_i18n_gettext( 543, + 'Activates staff mode for the selcheck UI for users that have this permission', 'ppl', 'description')), ; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql new file mode 100644 index 0000000000..c73ba20752 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql @@ -0,0 +1,17 @@ + +BEGIN; + +-- TODO version + +INSERT INTO permission.perm_list ( id, code, description ) VALUES ( + 543, -- verify + 'SELFCHECK_STAFF_MODE', + oils_i18n_gettext( + 543, -- verify + 'Activates staff mode for the selcheck UI for users that have this permission', + 'ppl', + 'description' + ) +); + +COMMIT; diff --git a/Open-ILS/src/templates/circ/selfcheck/banner.tt2 b/Open-ILS/src/templates/circ/selfcheck/banner.tt2 index cda4866c91..77a710441b 100644 --- a/Open-ILS/src/templates/circ/selfcheck/banner.tt2 +++ b/Open-ILS/src/templates/circ/selfcheck/banner.tt2 @@ -1,4 +1,12 @@ -
+
+
+ +
diff --git a/Open-ILS/src/templates/circ/selfcheck/checkin_page.tt2 b/Open-ILS/src/templates/circ/selfcheck/checkin_page.tt2 new file mode 100644 index 0000000000..5ccb2683e8 --- /dev/null +++ b/Open-ILS/src/templates/circ/selfcheck/checkin_page.tt2 @@ -0,0 +1,47 @@ +
+
+ + [% l('Backdate') %] + + + + + [% l('Amnesty Mode') %] + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
[% l('Barcode') %][% l('Title') %][% l('Author') %][% l('Due Date') %][% l('Copy Status') %][% l('Outcome') %]
+
diff --git a/Open-ILS/src/templates/circ/selfcheck/main.tt2 b/Open-ILS/src/templates/circ/selfcheck/main.tt2 index 42aaf49319..f5b3aafefe 100644 --- a/Open-ILS/src/templates/circ/selfcheck/main.tt2 +++ b/Open-ILS/src/templates/circ/selfcheck/main.tt2 @@ -17,6 +17,10 @@ [% INCLUDE 'circ/selfcheck/circ_page.tt2' %] + +