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 <& /util/import_javascript.mas, classes => [ 'jquery' ] &>
66 <&| /page/info_section.mas, title => 'Search Results',
67 subtitle => 'Results '
70 .' of '.Number::Format->new->format_number($pager->total_entries)
75 % if( $results->count ) {
76 <% columnar_table_html(
77 headings => ['Taxon name','Common name'],
79 map [ '<a href="/organism/' . $_->organism_id . '/view/">'
80 . $_->species . "</a>",
86 <h3 style="text-align: center">No Matching Results Found</h3>
90 <& /page/pagination_control.mas, pager => $pager, link_maker => $pagination_link_maker &>
95 <&| /page/info_section.mas, title => 'Search', collapsible=>1, collapsed=>0 &>
105 <div style="width:400px">
106 <div class="panel panel-info">
107 <div class="panel-heading">Popular Species</div>
108 <div class="panel-body" style="overflow:hidden">
109 <& /homepage/popular_species.mas, show_link => 0 &>
119 $(window).ready( function() {
120 $('#organism_search_form input[name=species]').autocomplete( {
121 source: '/organism/autocomplete'
132 use CXGN::Page::FormattingHelpers qw/ columnar_table_html /;