From: Bill Erickson Date: Fri, 1 Feb 2013 20:50:29 +0000 (-0500) Subject: Selfcheck staff mode, rev 1 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c2179af664f79da278654ad13abc5fe010b3e062;p=evergreen%2Fequinox.git Selfcheck staff mode, rev 1 Supports checkin mode with backdate and amnesty checkin. Signed-off-by: Lebbeous Fogle-Weekley --- 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' %] + +