Skip to content

Commit

Permalink
Bug 8477: Displays home/holding branches on return page
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Tietgen <5p4m@gmx.de>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information
Adrien Saurat authored and PaulPoulain committed Aug 2, 2012
1 parent e22d877 commit 2fea7f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions circ/returns.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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'};
Expand All @@ -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'};
Expand Down
4 changes: 3 additions & 1 deletion koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 2fea7f0

Please sign in to comment.