Bugzilla – Attachment 66214 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.52 KB, created by
Mark Tompsett
on 2017-08-19 03:44:27 UTC
(
hide
)
Description:
Bug 2946: Added some missing logic
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-08-19 03:44:27 UTC
Size:
1.52 KB
patch
obsolete
>From 23a35bd3aaaf24017dec5d2ac08f5f75646896c3 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 | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl >index 714c003..f0e9013 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; > } >@@ -309,7 +318,7 @@ my ( $holdingbrtagf, $holdingbrtagsubf ) = > @item_subfield_codes = uniq @item_subfield_codes; > # fill item info > my @item_header_loop; >-if (@item_value_loop > 0) { # prevent display of header if no items to display >+if (@item_loop > 0) { # prevent display of header if no items to display > for my $subfield_code ( @item_subfield_codes ) { > push @item_header_loop, $witness{$subfield_code}; > for my $item_data ( @item_loop ) { >-- >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