Bugzilla – Attachment 3740 Details for
Bug 4319
waiting and in transit items cannot be reserved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-BUG4319-Display-hold-link-when-item-in-transit-or-re.patch (text/plain), 1.44 KB, created by
Fridolin Somers
on 2011-04-06 12:37:01 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2011-04-06 12:37:01 UTC
Size:
1.44 KB
patch
obsolete
>From f296f92f2339b79898d8471eab9bf2a2f9e2f654 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@progilone.fr> >Date: Wed, 6 Apr 2011 14:23:28 +0200 >Subject: [PATCH] BUG4319 Display hold link when item in transit or reserved > >--- > C4/Search.pm | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 9eac229..d43fec5 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1653,7 +1653,7 @@ sub searchResults { > ($reservestatus, $reserveitem) = C4::Reserves::CheckReserves($item->{itemnumber}); > } > >- # item is withdrawn, lost or damaged >+ # item is withdrawn, lost, damaged, not for loan, reserved or in transit > if ( $item->{wthdrawn} > || $item->{itemlost} > || $item->{damaged} >@@ -1667,6 +1667,9 @@ sub searchResults { > $item_in_transit_count++ if $transfertwhen ne ''; > $item_onhold_count++ if $reservestatus eq 'Waiting'; > $item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan}; >+ # only withdrawn, lost and damaged avoid placing hold on item >+ $can_place_holds = 1 unless ($item->{withdrawn} || $item->{itemlost} || $item->{damaged}); >+ > $other_count++; > > my $key = $prefix . $item->{status}; >-- >1.7.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 4319
:
3740
|
4099
|
4110
|
4327
|
4329
|
16965
|
67558
|
67584
|
67637
|
67704
|
67970
|
68194
|
68197
|
68198
|
68199
|
68531
|
68782
|
68786
|
69724
|
69725
|
69728
|
69815
|
69816
|
69817
|
70457