Bugzilla – Attachment 128366 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.45 KB, created by
Jonathan Druart
on 2021-12-08 15:43:18 UTC
(
hide
)
Description:
Bug 29660: Remove hostitemsflag
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-12-08 15:43:18 UTC
Size:
2.45 KB
patch
obsolete
>From 220e1b5d18e8fa842ed3f613176f8755d71a92e1 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 > >--- > 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 a7391e23273..ae45ec4634b 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); > } > >@@ -545,7 +543,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 10fa575f11e..306e82b1f2b 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -395,7 +395,6 @@ foreach my $biblionumber (@biblionumbers) { > my @hostitems = get_hostitemnumbers_of($biblionumber); > my @itemnumbers; > if (@hostitems){ >- $template->param('hostitemsflag' => 1); > push(@itemnumbers, @hostitems); > } > >@@ -443,10 +442,6 @@ foreach my $biblionumber (@biblionumbers) { > > $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} ) { >@@ -498,7 +493,6 @@ foreach my $biblionumber (@biblionumbers) { > } > > if($item->{biblionumber} ne $biblionumber){ >- $item->{hostitemsflag} = 1; > $item->{hosttitle} = Koha::Biblios->find( $item->{biblionumber} )->title; > } > >-- >2.25.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 29660
:
128366
|
128367
|
128368
|
129934
|
129935
|
129936
|
130352
|
130353
|
130354
|
130447
|
130731
|
130732
|
130733
|
130734