4 /organism/search.mas - display organism search results and search form
10 optional L<DBIx::Class::ResultSet> object for the set of results to
11 display. if not set or not passed, only the search form will be
16 required L<HTML::FormFu> form object for the search form. will call
17 C<$form->render> on this.
19 =head2 pagination_link_maker
21 subroutine reference that takes a single integer page number for the
22 results and returns the appropriate URL for going to that page of results
31 $pagination_link_maker
34 <div class="container-fluid">
36 <& /page/page_title.mas, title => 'Organism/Taxon Search' &>
39 #organism_search_form .checkboxgroup span span {
44 #organism_search_form div label, #organism_search_form legend {
47 #organism_search_form div.text label {
61 % my $pager = $results->pager;
63 <&| /page/info_section.mas, title => 'Search Results',
64 subtitle => 'Results '
67 .' of '.Number::Format->new->format_number($pager->total_entries)
72 % if( $results->count ) {
73 <% columnar_table_html(
74 headings => ['Taxon name','Common name'],
76 map [ '<a href="/organism/' . $_->organism_id . '/view/">'
77 . $_->species . "</a>",
83 <h3 style="text-align: center">No Matching Results Found</h3>
87 <& /page/pagination_control.mas, pager => $pager, link_maker => $pagination_link_maker &>
92 <&| /page/info_section.mas, title => 'Search', collapsible=>1, collapsed=>0 &>
102 <div style="width:400px">
103 <div class="panel panel-info">
104 <div class="panel-heading">Popular Species</div>
105 <div class="panel-body" style="overflow:hidden">
106 <& /homepage/popular_species.mas, show_link => 0 &>
116 use CXGN::Page::FormattingHelpers qw/ columnar_table_html /;