From 0449939307b1c343871cac0022148491cce15b26 Mon Sep 17 00:00:00 2001 From: ryan-preble Date: Tue, 29 Oct 2024 15:33:36 -0400 Subject: [PATCH] Removed breeding programs datatable from trials.mas and removed AJAX function to retrieve stock breeding programs --- lib/SGN/Controller/AJAX/Stock.pm | 24 ------------------------ mason/stock/trials.mas | 14 -------------- 2 files changed, 38 deletions(-) diff --git a/lib/SGN/Controller/AJAX/Stock.pm b/lib/SGN/Controller/AJAX/Stock.pm index 63dddd84c..3b7961f70 100644 --- a/lib/SGN/Controller/AJAX/Stock.pm +++ b/lib/SGN/Controller/AJAX/Stock.pm @@ -1705,30 +1705,6 @@ sub get_stock_trials :Chained('/stock/get_stock') PathPart('datatables/trials') $c->stash->{rest} = { data => \@formatted_trials }; } -=head2 action get_stock_breeding_programs() - - Usage: /stock//datatables/breeding_programs - Desc: retrieves breeding programs that use this stock (accession) - Ret: a table in json suitable for datatables - Args: - Side Effects: - Example: - -=cut - -sub get_stock_breeding_programs :Chained('/stock/get_stock') PathPart('datatables/breeding_programs') Args(0) { - my $self = shift; - my $c = shift; - - my @breeding_programs = $c->stash->{stock}->get_breeding_programs(); - - my @formatted_programs; - foreach my $t (@breeding_programs) { - push @formatted_programs, [ ''.$t->[1].'' ]; - } - $c->stash->{rest} = { data => \@formatted_programs }; -} - =head2 action get_stored_analyses() Usage: /stock//datatables/stored_analyses diff --git a/mason/stock/trials.mas b/mason/stock/trials.mas index 9f2c69424..004a5cc24 100644 --- a/mason/stock/trials.mas +++ b/mason/stock/trials.mas @@ -24,20 +24,6 @@ $type_name % if ($type_name eq "accession") {
- Breeding Programs -

- - - - - - -
Program name
-
-
- -
-
Analyses

-- 2.11.4.GIT