LP#1555791 - Hide Print List from checkout screen
authorJosh Stompro <stompro@stompro.org>
Fri, 13 Sep 2019 20:02:36 +0000 (15:02 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 18 Oct 2019 14:57:26 +0000 (10:57 -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/src/templates/circ/selfcheck/main.tt2
Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index 2fb44fd..aa3c2eb 100644 (file)
@@ -12,7 +12,7 @@
 <div id='oils-selfck-bottom-div' class="hidden">
     <div id='oils-selfck-content-div'>
         <div id='oils-selfck-content-header'>
 <div id='oils-selfck-bottom-div' class="hidden">
     <div id='oils-selfck-content-div'>
         <div id='oils-selfck-content-header'>
-            <span><a id='oils-selfck-print-list-link' href='javascript:void(0);'><button type="button" class="self-button">[% l('Print List') %]</button></a></span>
+            <span><a id='oils-selfck-print-list-link' href='javascript:void(0);' class="hidden"><button type="button" class="self-button">[% l('Print List') %]</button></a></span>
         </div>
         <div id='oils-selfck-circ-page' class='hidden'>
             <!-- Checkout / renewal and items out interface -->
         </div>
         <div id='oils-selfck-circ-page' class='hidden'>
             <!-- Checkout / renewal and items out interface -->
index 9182e44..002dd34 100644 (file)
@@ -562,6 +562,7 @@ SelfCheckManager.prototype.updateScanBox = function(args) {
  */
 SelfCheckManager.prototype.drawCircPage = function() {
 
  */
 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');
     openils.Util.show('oils-selfck-bottom-div');
     openils.Util.show('oils-selfck-circ-tbody', 'table-row-group');
     this.goToTab('checkout');
@@ -622,7 +623,7 @@ SelfCheckManager.prototype.updateFinesSummary = function() {
 
 SelfCheckManager.prototype.drawItemsOutPage = function() {
     openils.Util.hide('oils-selfck-circ-tbody');
 
 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])
     this.goToTab('items_out');
 
     while(this.itemsOutTbody.childNodes[0])
@@ -789,7 +790,7 @@ SelfCheckManager.prototype.drawHoldsPage = function() {
 
     // TODO add option to hid scanBox
     // this.updateScanBox(...)
 
     // 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');
     this.goToTab('holds');
 
     this.holdTbody = dojo.byId('oils-selfck-hold-tbody');
@@ -879,6 +880,7 @@ SelfCheckManager.prototype.drawFinesPage = function() {
 
     // TODO add option to hid scanBox
     // this.updateScanBox(...)
 
     // TODO add option to hid scanBox
     // this.updateScanBox(...)
+    openils.Util.show('oils-selfck-print-list-link');
 
     this.goToTab('fines');
     progressDialog.show(true);
 
     this.goToTab('fines');
     progressDialog.show(true);