From cc7f1ce272b3f79cb06f245eb8f4f279d6913a0c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 1 Feb 2013 15:50:29 -0500 Subject: [PATCH] Selfcheck Staff Mode - Deployment 2 No copying stuff around this time, just copy the files into place Signed-off-by: Bill Erickson --- 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 | 63 +++ 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 | 16 +- .../web/js/ui/default/circ/selfcheck/selfcheck.js | 514 ++++++++++++++++++++- 10 files changed, 657 insertions(+), 26 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..97d066264a --- /dev/null +++ b/Open-ILS/src/templates/circ/selfcheck/checkin_page.tt2 @@ -0,0 +1,63 @@ +
+
+ + [% l('Hold Slips') %] + + + + + [% l('Transit Slips') %] + + + + + [% l('Amnesty Mode') %] + + + + + [% l('Backdate') %] + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
[% 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' %] + +