Bugzilla – Attachment 53084 Details for
Bug 16686
Fix "Item in transit from since" in Holds tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16686: Fix "Item in transit from since" in Holds tab
Bug-16686-Fix-Item-in-transit-from-since-in-Holds-.patch (text/plain), 2.28 KB, created by
Marc Véron
on 2016-07-04 14:07:51 UTC
(
hide
)
Description:
Bug 16686: Fix "Item in transit from since" in Holds tab
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-07-04 14:07:51 UTC
Size:
2.28 KB
patch
obsolete
>From 5a5257a4d003ffa53a63dbbce556e4ff31b48914 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sun, 3 Jul 2016 15:32:47 +0100 >Subject: [PATCH] Bug 16686: Fix "Item in transit from since" in Holds tab >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >POC, tests needed. > >Alternative patch works for me. >Signed-off-by: Marc Véron <veron@veron.ch> >--- > Koha/Item.pm | 5 +++++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 5 +++-- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index d721537..55bf14e 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -74,6 +74,11 @@ sub holding_branch { > return $self->{_holding_branch}; > } > >+sub transfer { >+ my ( $self ) = @_; >+ return $self->_result->branchtransfers->first; >+} >+ > =head3 last_returned_by > > Gets and sets the last borrower to return an item. >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index 264641f..83c1dbc 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -604,8 +604,9 @@ > [% END %] > [% ELSE %] > [% IF ( RESERVE.is_in_transit ) %] >- Item in transit from <b> [% RESERVE.frombranch %]</b> since >- [% RESERVE.datesent | $KohaDates %] >+ [% SET transfer = RESERVE.item.transfer %] >+ Item in transit from <b> [% transfer.frombranch.branchname %]</b> since >+ [% transfer.datesent | $KohaDates %] > [% ELSIF ( RESERVE.suspend ) %] > Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %] > [% ELSE %] >-- >1.7.10.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 16686
:
52157
|
52163
|
52164
|
52183
|
52898
|
53050
|
53053
|
53084
|
53190
|
53191
|
53192
|
53227
|
54128
|
54129
|
54130
|
54131
|
54392
|
54393
|
54394
|
54395