LP#1555791 - Hide Print List from checkout screen
authorJosh Stompro <stompro@stompro.org>
Fri, 13 Sep 2019 20:02:36 +0000 (15:02 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 19 Aug 2020 15:03:58 +0000 (11:03 -0400)
Hide the print list button from the checkout screen so customers
don't learn to use that instead of logout.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index 4b119f4..8a614b0 100644 (file)
@@ -568,6 +568,7 @@ SelfCheckManager.prototype.updateScanBox = function(args) {
  */
 SelfCheckManager.prototype.drawCircPage = function() {
 
+    openils.Util.hide('oils-selfck-print-list-link');
     openils.Util.show('oils-selfck-bottom-div');
     openils.Util.show('oils-selfck-circ-tbody', 'table-row-group');
     this.goToTab('checkout');
@@ -628,7 +629,7 @@ SelfCheckManager.prototype.updateFinesSummary = function() {
 
 SelfCheckManager.prototype.drawItemsOutPage = function() {
     openils.Util.hide('oils-selfck-circ-tbody');
-
+    openils.Util.show('oils-selfck-print-list-link');
     this.goToTab('items_out');
 
     while(this.itemsOutTbody.childNodes[0])
@@ -795,7 +796,7 @@ SelfCheckManager.prototype.drawHoldsPage = function() {
 
     // TODO add option to hid scanBox
     // this.updateScanBox(...)
-
+    openils.Util.show('oils-selfck-print-list-link');
     this.goToTab('holds');
 
     this.holdTbody = dojo.byId('oils-selfck-hold-tbody');
@@ -885,6 +886,7 @@ SelfCheckManager.prototype.drawFinesPage = function() {
 
     // TODO add option to hid scanBox
     // this.updateScanBox(...)
+    openils.Util.show('oils-selfck-print-list-link');
 
     this.goToTab('fines');
     progressDialog.show(true);