Permalink
Browse files

Bug 8477: Displays home/holding branches on return page

Signed-off-by: Mirko Tietgen <5p4m@gmx.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information...
1 parent e22d877 commit 2fea7f0137d200aaaf36caa48e4d56b8a984bbf9 Adrien Saurat committed with PaulPoulain Jul 19, 2012
Showing with 6 additions and 1 deletion.
  1. +3 −0 circ/returns.pl
  2. +3 −1 koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
View
@@ -573,6 +573,7 @@ =head1 returns.pl
# my %ri;
my $biblio = GetBiblioFromItemNumber(GetItemnumberFromBarcode($bar_code));
+ my $item = GetItem( GetItemnumberFromBarcode($bar_code) );
# fix up item type for display
$biblio->{'itemtype'} = C4::Context->preference('item-level_itypes') ? $biblio->{'itype'} : $biblio->{'itemtype'};
$ri{itembiblionumber} = $biblio->{'biblionumber'};
@@ -584,6 +585,8 @@ =head1 returns.pl
$ri{ccode} = $biblio->{'ccode'};
$ri{itemnumber} = $biblio->{'itemnumber'};
$ri{barcode} = $bar_code;
+ $ri{homebranch} = $item->{'homebranch'};
+ $ri{holdingbranch} = $item->{'holdingbranch'};
$ri{location} = $biblio->{'location'};
my $shelfcode = $ri{'location'};
@@ -429,7 +429,7 @@ $(document).ready(function () {
[% IF ( riloop ) %]
<h2>Checked-in items</h2>
<table>
- <tr><th>Due date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Shelving location</th><th>Call number</th><th>Type</th> <th>Patron</th><th>Note</th></tr>
+ <tr><th>Due date</th><th>Title</th> <th>Author</th> <th>Barcode</th><th>Home Branch</th><th>Holding Branch</th><th>Shelving location</th><th>Call number</th><th>Type</th> <th>Patron</th><th>Note</th></tr>
[% FOREACH riloo IN riloop %]
<tr>
@@ -445,6 +445,8 @@ $(document).ready(function () {
[% riloo.itemtitle |html %]</a></td>
<td>[% riloo.itemauthor %]</td>
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% riloo.itembiblionumber %]&amp;itemnumber=[% riloo.itemnumber %]#item[% riloo.itemnumber %]">[% riloo.barcode %]</a></td>
+ <td>[% riloo.homebranch %]</td>
+ <td>[% riloo.holdingbranch %]</td>
<td>[% riloo.location %]</td>
<td>[% riloo.itemcallnumber %]</td>
<td>[% riloo.itemtype %] [% riloo.ccode %]</td>

0 comments on commit 2fea7f0

Please sign in to comment.