Bug 6485

Summary: Checkout slip should be more informative, especially for single-library catalogs
Product: Koha Reporter: Jesse Weaver <pianohacker>
Component: CirculationAssignee: Jesse Weaver <pianohacker>
Status: CLOSED WONTFIX QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: chris, gmcharlt, nengard, paul.poulain, wizzyrea
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 7001    
Attachments: Bug 6485 - Checkout slip should be more useful

Description Jesse Weaver 2011-06-08 20:53:48 UTC
The checkout slip is currently rather informative, and could use a few improvements:

* The branchname should not be displayed if it is the same as the global LibraryName.
* The address should be displayed on the slip. This more closely matches the behavior of other ILSes.
Comment 1 Jesse Weaver 2011-06-08 22:22:31 UTC
Created attachment 4433 [details] [review]
Bug 6485 - Checkout slip should be more useful

This patch makes the following improvements to the checkout slip:

* Does not show the branchname if it is the same as the global
LibraryName, which is useful for single-library catalogs.
* Shows branchaddress* information. This is wrapped in a <div> with
class .slip-address-info, making it easy to disable with
intranetuserjs...
* ... which has been added to the checkout slip.
Comment 2 Chris Cormack 2011-09-12 22:25:05 UTC
One thing I don't understand here is

<script language="javascript">
     function printThenClose() {
+        return;
         window.print();
         window.close();
     }
 </script>

Why the return ? (I don't fully grok javascript so it might just be me being dense)
Comment 3 Paul Poulain 2011-10-06 16:36:22 UTC
QA comment:

Chris, you're not dense:
     function printThenClose() {
+        return;
         window.print();
         window.close();
     }

means window.print & window.close will never be reached.

2 options :
* it's was for testing purposes & forgotten to be removed (my bet)
* .print & .close can be removed

Anyway, failed QA !
Comment 4 Liz Rea 2012-01-27 21:54:21 UTC
This patch may become moot if 7001 passes.
Comment 5 Liz Rea 2012-05-31 14:40:04 UTC
the enhancements introduced by bug 7001 should fix this issue.