From c201837238a5bb0ce83c21a6767b142dceba7709 Mon Sep 17 00:00:00 2001 From: Naama Menda Date: Tue, 30 Nov 2010 20:42:41 -0500 Subject: [PATCH] controller for trait search --- lib/SGN/View/Trait.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/SGN/View/Trait.pm diff --git a/lib/SGN/View/Trait.pm b/lib/SGN/View/Trait.pm new file mode 100644 index 000000000..003d131dd --- /dev/null +++ b/lib/SGN/View/Trait.pm @@ -0,0 +1,17 @@ +package SGN::View::Trait; +use base 'Exporter'; +use strict; +use warnings; + +our @EXPORT_OK = qw/ +cvterm_link +/; + + + +sub cvterm_link { + my ($cvterm) = @_; + my $name = $cvterm->name; + my $id = $cvterm->cvterm_id; + return qq{$name}; +} -- 2.11.4.GIT