Bugzilla – Attachment 44630 Details for
Bug 15136
Display item's homebranch in patron's fines list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add homebranch of borrowed items
add-homebranch-of-borrowed-items.patch (text/plain), 3.84 KB, created by
Vassilis Kanellopoulos
on 2015-11-09 09:56:24 UTC
(
hide
)
Description:
add homebranch of borrowed items
Filename:
MIME Type:
Creator:
Vassilis Kanellopoulos
Created:
2015-11-09 09:56:24 UTC
Size:
3.84 KB
patch
obsolete
>From e618a8ae66352385d3be264d31424ffef3a6645c Mon Sep 17 00:00:00 2001 >From: Vassilis Kanellopoulos <contact@kanellov.com> >Date: Mon, 9 Nov 2015 11:20:21 +0200 >Subject: [PATCH] add homebranch of borrowed items > >http://bugs.koha-community.org/show_bug.cgi?id=15136 >--- > C4/Members.pm | 1 + > .../intranet-tmpl/prog/en/modules/members/boraccount.tt | 14 ++++++++------ > members/boraccount.pl | 3 +++ > 3 files changed, 12 insertions(+), 6 deletions(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 9166b75..c518a44 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -1180,6 +1180,7 @@ sub GetMemberAccountRecords { > my $biblio = GetBiblioFromItemNumber( $data->{itemnumber} ); > $data->{biblionumber} = $biblio->{biblionumber}; > $data->{title} = $biblio->{title}; >+ $data->{homebranch} = $biblio->{homebranch}; > } > $acctlines[$numlines] = $data; > $numlines++; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >index e115c59..616cad1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -40,7 +40,7 @@ $(document).ready(function() { > <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Account for [% INCLUDE 'patron-title.inc' %]</div> > > <div id="doc3" class="yui-t2"> >- >+ > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >@@ -62,6 +62,7 @@ $(document).ready(function() { > <tr> > <th class="title-string">Date</th> > <th>Description of charges</th> >+ <th>Item Homebranch</th> > <th>Note</th> > <th>Amount</th> > <th>Outstanding</th> >@@ -101,6 +102,7 @@ $(document).ready(function() { > [%- END -%] > [%- IF account.description %], [% account.description %][% END %] > [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">View item</a> [% END %][% account.title |html %]</td> >+ <td>[%- IF account.homebranch %][% account.homebranch %][% END %]</td> > <td>[% account.note | html_line_break %]</td> > [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td> > [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td> >@@ -125,18 +127,18 @@ $(document).ready(function() { > [% END %] > <tfoot> > <tr> >- <td colspan="4">Total due</td> >+ <td colspan="5">Total due</td> > [% IF ( totalcredit ) %] > [% IF ( reverse_col ) %] >- <td colspan="3" class="credit"> >+ <td colspan="4" class="credit"> > [% ELSE %] >- <td colspan="2" class="credit"> >+ <td colspan="3" class="credit"> > [% END %] > [% ELSE %] > [% IF ( reverse_col ) %] >- <td colspan="3" class="debit"> >+ <td colspan="4" class="debit"> > [% ELSE %] >- <td colspan="2" class="credit"> >+ <td colspan="3" class="credit"> > [% END %] > [% END %] > [% total %]</td> >diff --git a/members/boraccount.pl b/members/boraccount.pl >index ea63f29..abe1c01 100755 >--- a/members/boraccount.pl >+++ b/members/boraccount.pl >@@ -89,6 +89,9 @@ foreach my $accountline ( @{$accts}) { > $accountline->{payment} = 1; > $reverse_col = 1; > } >+ if ($accountline->{homebranch}) { >+ $accountline->{homebranch} = C4::Branch::GetBranchName($accountline->{homebranch}); >+ } > } > > $template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' ); >-- >2.1.0
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 15136
:
44630
|
44644
|
44671
|
44681
|
44682
|
71559
|
71560
|
76112
|
76308
|
77174
|
79711