Bugzilla – Attachment 53053 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]
[ALT] 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.11 KB, created by
Jonathan Druart
on 2016-07-03 14:34:07 UTC
(
hide
)
Description:
[ALT] Bug 16686: Fix "Item in transit from since" in Holds tab
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-07-03 14:34:07 UTC
Size:
2.11 KB
patch
obsolete
>From 4b73a2ec0d2180e97e7612ef35a560b9f67ee518 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 > >POC, tests needed. >--- > 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 %] >-- >2.8.1
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