Bugzilla – Attachment 4433 Details for
Bug 6485
Checkout slip should be more informative, especially for single-library catalogs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6485 - Checkout slip should be more useful
Bug-6485---Checkout-slip-should-be-more-useful.patch (text/plain), 2.62 KB, created by
Jesse Weaver
on 2011-06-08 22:22:31 UTC
(
hide
)
Description:
Bug 6485 - Checkout slip should be more useful
Filename:
MIME Type:
Creator:
Jesse Weaver
Created:
2011-06-08 22:22:31 UTC
Size:
2.62 KB
patch
obsolete
>From db0686c0f38d947ff115667ee60244b5bed5ee0d Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <pianohacker@gmail.com> >Date: Wed, 8 Jun 2011 16:17:56 -0600 >Subject: [PATCH] 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. >--- > .../prog/en/modules/members/moremember-receipt.tt | 17 +++++++++++++++++ > members/moremember.pl | 3 +++ > 2 files changed, 20 insertions(+), 0 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >index 4a85ccb..0ef561c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt >@@ -6,10 +6,18 @@ > > <script language="javascript"> > function printThenClose() { >+ return; > window.print(); > window.close(); > } > </script> >+[% IF ( intranetuserjs ) %] >+ <script type="text/javascript"> >+ //<![CDATA[ >+ [% intranetuserjs %] >+ //]]> >+ </script> >+[% END %] > </head> > <body onload="printThenClose();"> > >@@ -17,6 +25,15 @@ > > <h3>[% LibraryName %]</h3> > [% IF ( branchname ) %][% branchname %]<br />[% END %] >+<div class="slip-address-info"> >+[% IF ( branchphone ) %][% branchphone %]<br />[% END %] >+[% IF ( branchaddress1 ) %][% branchaddress1 %]<br />[% END %] >+[% IF ( branchaddress2 ) %][% branchaddress2 %]<br />[% END %] >+[% IF ( branchaddress3 ) %][% branchaddress3 %]<br />[% END %] >+[% IF ( branchcity ) %][% branchcity %], [% branchstate %] [% branchzip %]<br />[% END %] >+<br /> >+</div> >+ > Checked out to [% firstname %] [% surname %] <br /> > (<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">[% cardnumber %]</a>)<br /> > >diff --git a/members/moremember.pl b/members/moremember.pl >index b766f2f..f8e3dfb 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -428,6 +428,9 @@ $template->param( picture => 1 ) if $picture; > my $branch=C4::Context->userenv->{'branch'}; > > $template->param(%$data); >+if (C4::Context->preference('LibraryName') eq $branchdetail->{'branchname'}) { >+ $template->param(branchname => ''); >+} > > if (C4::Context->preference('ExtendedPatronAttributes')) { > $template->param(ExtendedPatronAttributes => 1); >-- >1.7.4.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6485
: 4433