Bugzilla – Attachment 66212 Details for
Bug 2946
Lost items (that are hidden in Normal View) still show up in the MARC View in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2946: Added some missing logic
Bug-2946-Added-some-missing-logic.patch (text/plain), 1.05 KB, created by
Mark Tompsett
on 2017-08-19 03:38:03 UTC
(
hide
)
Description:
Bug 2946: Added some missing logic
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-08-19 03:38:03 UTC
Size:
1.05 KB
patch
obsolete
>From bb25adf6cd21ec9ed0c10f084804d58d9dc1fc96 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Sat, 19 Aug 2017 03:31:29 +0000 >Subject: [PATCH] Bug 2946: Added some missing logic > >--- > opac/opac-MARCdetail.pl | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl >index 714c003..fe02f7d 100755 >--- a/opac/opac-MARCdetail.pl >+++ b/opac/opac-MARCdetail.pl >@@ -127,9 +127,18 @@ if(my $cart_list = $query->cookie("bib_list")){ > } > } > >+my $norequests = 1; > my $allow_onshelf_holds; > my $patron = Koha::Patrons->find( $loggedinuser ); > for my $itm (@all_items) { >+ $norequests = 0 >+ if $norequests >+ && !$itm->{'withdrawn'} >+ && !$itm->{'itemlost'} >+ && ($itm->{'itemnotforloan'}<0 || not $itm->{'itemnotforloan'}) >+ && !$itemtypes->{$itm->{'itype'}}->{notforloan} >+ && $itm->{'itemnumber'}; >+ > $allow_onshelf_holds = C4::Reserves::OnShelfHoldsAllowed( $itm, ( $patron ? $patron->unblessed : {} ) ); > last if $allow_onshelf_holds; > } >-- >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 2946
:
25963
|
66211
|
66212
|
66213
|
66214
|
66215
|
66216
|
66284