3 $nd_geolocation => 'not_provided'
6 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables' ] &>
8 <& /page/page_title.mas, title => "Genotyping Plate Search" &>
10 <div class="well well-sm">
11 <div class="panel panel-default">
12 <div class="panel-body">
13 <table id="genotyping_trial_search_results" width="100%" class="table table-hover table-striped">
18 <th>Breeding program</th>
22 <th>Genotyping Facility</th>
32 <div class="panel panel-default">
33 <div class="panel-body">
35 <&| /page/info_section.mas, title => 'Copy Results to a List', collapsible=>1, collapsed=>0, subtitle=>'<i>Copy the trial names currently showing in the search results table to a new or exisiting list</i>'&>
37 <div style="text-align:right" id="genotyping_trials_to_list_menu"></div>
38 <div id="genotyping_trial_result_names" style="display: none;"></div>
47 jQuery(document).ready(function () {
49 var trial_table = jQuery('#genotyping_trial_search_results').DataTable( {
50 'ajax': '/ajax/tissue_samples/genotyping_trials',
54 jQuery('#genotyping_trial_search_results').on( 'draw.dt', function () {
55 var name_links = trial_table.column( 0, {page:'current'} ).data();
58 for (var i = 0; i < name_links.length; i++) { //extract text from anchor tags
59 names.push(name_links[i].match(/<a [^>]+>([^<]+)<\/a>/)[1]+'\n');
62 jQuery('#genotyping_trial_result_names').html(names);
63 addToListMenu('genotyping_trials_to_list_menu', 'genotyping_trial_result_names', {
64 listType: 'genotyping_plates'