From 80fcee0bc4180a8f0217444e84efe62b4a905a23 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. --- 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 79a173f1f9..d63b833ee4 100755 --- a/catalogue/ISBDdetail.pl +++ b/catalogue/ISBDdetail.pl @@ -145,7 +145,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) { @@ -158,9 +157,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 b01c8ac4e6..4c175b5268 100755 --- a/catalogue/MARCdetail.pl +++ b/catalogue/MARCdetail.pl @@ -321,7 +321,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) { @@ -334,9 +333,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 b5f95a7350..cadedab62e 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -515,7 +515,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) { @@ -528,9 +527,6 @@ foreach my $myorder (@allorders_using_biblio) { } else { push @orders_using_biblio, $myorder; - unless (grep{ $_ eq $basket } @baskets_orders){ - push @baskets_orders,$myorder->{'basketno'}; - } } } @@ -540,7 +536,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 1716c0f3ea..b1d62dd929 100755 --- a/catalogue/imageviewer.pl +++ b/catalogue/imageviewer.pl @@ -82,7 +82,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) { @@ -95,9 +94,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 65c9ac280f..e6bb96c6ca 100755 --- a/catalogue/labeledMARCdetail.pl +++ b/catalogue/labeledMARCdetail.pl @@ -128,7 +128,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) { @@ -141,9 +140,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 b9520c0419..875b3a9a78 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -228,7 +228,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) { @@ -241,9 +240,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