Bugzilla – Attachment 139121 Details for
Bug 31313
Remove GetItemsInfo from opac-detail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31313: (QA follow-up) Search Koha::Items
Bug-31313-QA-follow-up-Search-KohaItems.patch (text/plain), 1.36 KB, created by
Nick Clemens
on 2022-08-15 11:48:08 UTC
(
hide
)
Description:
Bug 31313: (QA follow-up) Search Koha::Items
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2022-08-15 11:48:08 UTC
Size:
1.36 KB
patch
obsolete
>From 322297b7dd8455a437ff25321e458bdb2d366a6c Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 15 Aug 2022 11:32:03 +0000 >Subject: [PATCH] Bug 31313: (QA follow-up) Search Koha::Items > >This ensures host items from otehr biblios are returned as well > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > opac/opac-detail.pl | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 101781b29d..09e85e2613 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -493,18 +493,16 @@ $template->param( > OPACShowCheckoutName => C4::Context->preference("OPACShowCheckoutName"), > ); > >-my $host_items = $biblio->host_items->filter_by_visible_in_opac({ patron => $patron }); >- >-$items = $biblio->items->search_ordered( >- { >+$items = Koha::Items->search_ordered( >+ [ >+ 'me.biblionumber' => $biblionumber, > 'me.itemnumber' => { > -in => [ >- $items->get_column('itemnumber'), >- $host_items->get_column('itemnumber') >+ $biblio->host_items->get_column('itemnumber') > ] > } >- } >-); >+ ] >+)->filter_by_visible_in_opac({ patron => $patron }) unless $specific_item; > > my $dat = &GetBiblioData($biblionumber); > my $HideMARC = $record_processor->filters->[0]->should_hide_marc( >-- >2.30.2
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 31313
:
138821
|
138822
|
138847
|
138848
|
139119
|
139120
| 139121 |
139122
|
139193
|
139239
|
139693
|
139694
|
139695
|
139761
|
139762
|
139763