Bugzilla – Attachment 56654 Details for
Bug 17466
Show number of outstanding issues when checking in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17466: Show number of outstanding issues when checking in
Bug-17466-Show-number-of-outstanding-issues-when-c.patch (text/plain), 2.39 KB, created by
Josef Moravec
on 2016-10-19 11:01:37 UTC
(
hide
)
Description:
Bug 17466: Show number of outstanding issues when checking in
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2016-10-19 11:01:37 UTC
Size:
2.39 KB
patch
obsolete
>From 7d654a1042e6e4a607f18a4e5302613833b8105a Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Wed, 19 Oct 2016 10:55:55 +0000 >Subject: [PATCH] Bug 17466: Show number of outstanding issues when checking in > >Test plan: >1) Apply patch >2) Checkout more then one item to a borrower >3) Check one of that items >4) Note, that on in returns table there is a button with number of >outstanding issues in patron column. The button should take you to checking >out page >5) When the outstanding issues count is 0, there is no button >--- > circ/returns.pl | 2 ++ > koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 3 +++ > 2 files changed, 5 insertions(+) > >diff --git a/circ/returns.pl b/circ/returns.pl >index ec13c04..984f4c2 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -50,6 +50,7 @@ use C4::RotatingCollections; > use Koha::AuthorisedValues; > use Koha::DateUtils; > use Koha::Calendar; >+use Koha::Issues; > > my $query = new CGI; > >@@ -580,6 +581,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { > $ri{bortitle} = $b->{'title'}; > $ri{bornote} = $b->{'borrowernotes'}; > $ri{borcategorycode}= $b->{'categorycode'}; >+ $ri{borissuescount} = Koha::Issues->count( { borrowernumber => $b->{'borrowernumber'} } ); > } > else { > $ri{borrowernumber} = $riborrowernumber{$_}; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >index c0b9c90..30af75d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -767,6 +767,9 @@ $(document).ready(function () { > <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% riloo.borrowernumber %]"> > [% riloo.borsurname %], [% riloo.borfirstname %] ([% riloo.borcategorycode %]) > </a> >+ [% IF riloo.borissuescount %] >+ <a class="btn btn-mini" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% riloo.borrowernumber %]">Issues: [% riloo.borissuescount %]</a> >+ [% END %] > [% ELSE %]Not checked out[% END %]</td> > <td class="ci-note"> > [% IF ( riloo.bornote ) %]<p><span class="circ-hlt patron-note">[% riloo.bornote %]</p></span>[% END %] >-- >2.1.4
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 17466
:
56654
|
57806
|
58191
|
58541
|
58542
|
58543