From 84760410571b8e09ec6ce8b55a41858653ab079e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 19 Jun 2019 21:10:15 -0500 Subject: [PATCH] Bug 23166: Remove baskets_orders code This is never used. Signed-off-by: Nick Clemens --- catalogue/ISBDdetail.pl | 4 ---- catalogue/MARCdetail.pl | 4 ---- catalogue/detail.pl | 5 ----- catalogue/imageviewer.pl | 4 ---- catalogue/labeledMARCdetail.pl | 4 ---- catalogue/moredetail.pl | 4 ---- 6 files changed, 25 deletions(-) diff --git a/catalogue/ISBDdetail.pl b/catalogue/ISBDdetail.pl index 9f333e1b33..6999c0455f 100755 --- a/catalogue/ISBDdetail.pl +++ b/catalogue/ISBDdetail.pl @@ -154,7 +154,6 @@ $template->param ( my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); my @deletedorders_using_biblio; my @orders_using_biblio; -my @baskets_orders; my @baskets_deletedorders; foreach my $myorder (@allorders_using_biblio) { @@ -167,9 +166,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep{ $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } diff --git a/catalogue/MARCdetail.pl b/catalogue/MARCdetail.pl index 44bc8d0801..bd6341b590 100755 --- a/catalogue/MARCdetail.pl +++ b/catalogue/MARCdetail.pl @@ -347,7 +347,6 @@ $template->param ( my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); my @deletedorders_using_biblio; my @orders_using_biblio; -my @baskets_orders; my @baskets_deletedorders; foreach my $myorder (@allorders_using_biblio) { @@ -360,9 +359,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep { $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 276f33c270..cda10b7c60 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -555,7 +555,6 @@ if ($StaffDetailItemSelection) { my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); my @deletedorders_using_biblio; my @orders_using_biblio; -my @baskets_orders; my @baskets_deletedorders; foreach my $myorder (@allorders_using_biblio) { @@ -568,9 +567,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep{ $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } @@ -582,7 +578,6 @@ $template->param (countorders => $count_orders_using_biblio); my $count_deletedorders_using_biblio = scalar @deletedorders_using_biblio ; $template->param (countdeletedorders => $count_deletedorders_using_biblio); -$template->param (basketsorders => \@baskets_orders); $template->param (basketsdeletedorders => \@baskets_deletedorders); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/catalogue/imageviewer.pl b/catalogue/imageviewer.pl index 67ded03c46..21151d6263 100755 --- a/catalogue/imageviewer.pl +++ b/catalogue/imageviewer.pl @@ -90,7 +90,6 @@ $template->{VARS}->{'biblio'} = $biblio; my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); my @deletedorders_using_biblio; my @orders_using_biblio; -my @baskets_orders; my @baskets_deletedorders; foreach my $myorder (@allorders_using_biblio) { @@ -103,9 +102,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep{ $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } diff --git a/catalogue/labeledMARCdetail.pl b/catalogue/labeledMARCdetail.pl index 446a679fba..ead7b9aeed 100755 --- a/catalogue/labeledMARCdetail.pl +++ b/catalogue/labeledMARCdetail.pl @@ -136,7 +136,6 @@ $template->param ( my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); my @deletedorders_using_biblio; my @orders_using_biblio; -my @baskets_orders; my @baskets_deletedorders; foreach my $myorder (@allorders_using_biblio) { @@ -149,9 +148,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep{ $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index aca129468a..13176493fe 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -270,7 +270,6 @@ $template->{'VARS'}->{'searchid'} = $query->param('searchid'); my @allorders_using_biblio = GetOrdersByBiblionumber ($biblionumber); my @deletedorders_using_biblio; my @orders_using_biblio; -my @baskets_orders; my @baskets_deletedorders; foreach my $myorder (@allorders_using_biblio) { @@ -283,9 +282,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep { $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } -- 2.11.0