Bugzilla – Attachment 130352 Details for
Bug 29660
reserve/request.pl should not deal with biblioitem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29660: Remove hostitemsflag
Bug-29660-Remove-hostitemsflag.patch (text/plain), 2.71 KB, created by
Nick Clemens (kidclamp)
on 2022-02-09 12:43:47 UTC
(
hide
)
Description:
Bug 29660: Remove hostitemsflag
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-02-09 12:43:47 UTC
Size:
2.71 KB
patch
obsolete
>From 4b20c6c037f09702db3d73ed2485db94bb729abb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 8 Dec 2021 15:10:57 +0100 >Subject: [PATCH] Bug 29660: Remove hostitemsflag > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > opac/opac-reserve.pl | 3 --- > reserve/request.pl | 6 ------ > 2 files changed, 9 deletions(-) > >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 7be38e2568..1664e48cda 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -153,11 +153,9 @@ foreach my $biblioNumber (@biblionumbers) { > my $marcrecord= GetMarcBiblio({ biblionumber => $biblioNumber }); > > # flag indicating existence of at least one item linked via a host record >- my $hostitemsflag; > # adding items linked via host biblios > my @hostitemInfos = GetHostItemsInfo($marcrecord); > if (@hostitemInfos){ >- $hostitemsflag =1; > push (@itemInfos,@hostitemInfos); > } > >@@ -554,7 +552,6 @@ foreach my $biblioNum (@biblionumbers) { > > # if the items belongs to a host record, show link to host record > if ( $itemInfo->{biblionumber} ne $biblioNum ) { >- $biblioLoopIter{hostitemsflag} = 1; > $itemLoopIter->{hostbiblionumber} = $itemInfo->{biblionumber}; > $itemLoopIter->{hosttitle} = Koha::Biblios->find( $itemInfo->{biblionumber} )->title; > } >diff --git a/reserve/request.pl b/reserve/request.pl >index 792eb978a6..22ef54cc58 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -401,7 +401,6 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) > my @hostitems = get_hostitemnumbers_of($biblionumber); > my @itemnumbers; > if (@hostitems){ >- $template->param('hostitemsflag' => 1); > push(@itemnumbers, @hostitems); > } > >@@ -450,10 +449,6 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) > > $biblioitem->{force_hold_level} = $force_hold_level; > >- if ( $biblioitem->{biblioitemnumber} ne $biblionumber ) { >- $biblioitem->{hostitemsflag} = 1; >- } >- > $biblioloopiter{description} = $biblioitem->{description}; > $biblioloopiter{itypename} = $biblioitem->{description}; > if ( $biblioitem->{itemtype} ) { >@@ -505,7 +500,6 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) > } > > if($item->{biblionumber} ne $biblionumber){ >- $item->{hostitemsflag} = 1; > $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title; > } > >-- >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 29660
:
128366
|
128367
|
128368
|
129934
|
129935
|
129936
|
130352
|
130353
|
130354
|
130447
|
130731
|
130732
|
130733
|
130734