Revision 522a5b8c
Added by Andreas Kohlbecker almost 5 years ago
modules/cdm_dataportal/ext_links/ext_links.module | ||
---|---|---|
244 | 244 |
'text_description' => 'The text of the link that is displayed..', |
245 | 245 |
'category' => 'Category', |
246 | 246 |
); |
247 |
/* |
|
247 | 248 |
$ext_links[18] = array( |
248 | 249 |
'form' => 'fairchild', |
249 | 250 |
'form_title' => 'Fairchild Guide To Palms', |
... | ... | |
255 | 256 |
'text_description' => 'The text of the link that is displayed..', |
256 | 257 |
'category' => 'Category', |
257 | 258 |
); |
259 |
*/ |
|
260 |
$ext_links[19] = array( |
|
261 |
'form' => 'ggbm', |
|
262 |
'form_title' => 'Global Genome Biodiversity Network', |
|
263 |
'check_title' => 'Display Global Genome Biodiversity Network Link?', |
|
264 |
'link_title' => 'Global Genome Biodiversity Network link', |
|
265 |
'link_description' => 'The link to GGBN search without the taxon name.', |
|
266 |
'concat_default_value' => '+', |
|
267 |
'text_title' => 'Global Genome Biodiversity Network text', |
|
268 |
'text_description' => 'The text of the link that is displayed..', |
|
269 |
'category' => 'Category', |
|
270 |
); |
|
258 | 271 |
|
259 | 272 |
|
260 | 273 |
for ($i = 0; $i < sizeof($ext_links); $i++) { |
... | ... | |
597 | 610 |
$categories['epic']['title'] = variable_get('ext_links_epic_category', $ext_links_default['epic']['category_default_value']); |
598 | 611 |
$categories['epic']['content'] = '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_epic_link', $ext_links_default['epic']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_epic_concat', '+') . str_replace('"', '%22', $speciesName['species']) . $postURL . '\')">' . variable_get('ext_links_epic_text', $ext_links_default['epic']['text_default_value']) . '</a><br />'; |
599 | 612 |
} |
600 |
if (variable_get('ext_links_fairchild_check', 1)) { |
|
601 |
$categoryTitles[] = variable_get('ext_links_fairchild_category', $ext_links_default['fairchild']['category_default_value']); |
|
602 |
$categories['fairchild']['title'] = variable_get('ext_links_fairchild_category', $ext_links_default['fairchild']['category_default_value']); |
|
603 |
$categories['fairchild']['content'] = '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_fairchild_link', $ext_links_default['fairchild']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_fairchild_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_fairchild_text', $ext_links_default['fairchild']['text_default_value']) . '</a><br />'; |
|
604 |
|
|
613 |
// if (variable_get('ext_links_fairchild_check', 1)) { |
|
614 |
// $categoryTitles[] = variable_get('ext_links_fairchild_category', $ext_links_default['fairchild']['category_default_value']); |
|
615 |
// $categories['fairchild']['title'] = variable_get('ext_links_fairchild_category', $ext_links_default['fairchild']['category_default_value']); |
|
616 |
// $categories['fairchild']['content'] = '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_fairchild_link', $ext_links_default['fairchild']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_fairchild_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_fairchild_text', $ext_links_default['fairchild']['text_default_value']) . '</a><br />'; |
|
617 |
// } |
|
618 |
if (variable_get('ext_links_ggbn_check', 1)) { |
|
619 |
$categoryTitles[] = variable_get('ext_links_ggbn_category', $ext_links_default['ggbn']['category_default_value']); |
|
620 |
$categories['ggbn']['title'] = variable_get('ext_links_ggnb_category', $ext_links_default['ggbn']['category_default_value']); |
|
621 |
$categories['ggbn']['content'] = '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_ggbn_link', $ext_links_default['ggbn']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_ggbn_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_ggbn_text', $ext_links_default['ggbn']['text_default_value']) . '</a><br />'; |
|
605 | 622 |
} |
606 | 623 |
|
607 | 624 |
$categoryTitles = array_unique($categoryTitles); |
... | ... | |
682 | 699 |
if (variable_get('ext_links_bhl_check', 1)) { |
683 | 700 |
$block_content .= '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_bhl_link', $ext_links_default['bhl']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_bhl_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_bhl_text', $ext_links_default['bhl']['text_default_value']) . '</a><br />'; |
684 | 701 |
} |
685 |
if (variable_get('ext_links_fairchild_check', 1)) { |
|
686 |
$block_content .= '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_fairchild_link', $ext_links_default['fairchild']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_fairchild_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_fairchild_text', $ext_links_default['fairchild']['text_default_value']) . '</a><br />'; |
|
702 |
// if (variable_get('ext_links_fairchild_check', 1)) { |
|
703 |
// $block_content .= '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_fairchild_link', $ext_links_default['fairchild']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_fairchild_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_fairchild_text', $ext_links_default['fairchild']['text_default_value']) . '</a><br />'; |
|
704 |
// } |
|
705 |
if (variable_get('ext_links_ggbn_check', 1)) { |
|
706 |
$block_content .= '<a href="JavaScript:popupExternalLinks(\'' . variable_get('ext_links_ggbn_link', $ext_links_default['ggbn']['link_default_value']) . str_replace('"', '%22', $speciesName['genus']) . variable_get('ext_links_ggbn_concat', ' ') . str_replace('"', '%22', $speciesName['species']) . '\')">' . variable_get('ext_links_ggbn_text', $ext_links_default['ggbn']['text_default_value']) . '</a><br />'; |
|
687 | 707 |
} |
688 | 708 |
if (variable_get('ext_links_arkive_check', 1)) { |
689 | 709 |
$postURL = '&output=xml_no_dtd&client=arkive-images&site=arkive-images&ie=utf8&oe=utf8&num=20&proxystylesheet=tng-search&filter=0&getfields=*'; |
... | ... | |
767 | 787 |
'category_default_value' => 'Specimens/Occurrences', |
768 | 788 |
); |
769 | 789 |
$ext_links_default["nybg"] = array( |
770 |
'link_default_value' => 'http://sweetgum.nybg.org/vh/specimen_list.php?Where=',
|
|
790 |
'link_default_value' => 'http://sweetgum.nybg.org/science/vh/specimen_list.php?SummaryData=',
|
|
771 | 791 |
'text_default_value' => 'Search NYBG...', |
772 | 792 |
'category_default_value' => 'Specimens/Occurrences', |
773 | 793 |
); |
... | ... | |
822 | 842 |
'category_default_value' => 'Classification', |
823 | 843 |
); |
824 | 844 |
$ext_links_default["wcsp"] = array( |
825 |
'link_default_value' => 'http://apps.kew.org/wcsp/prepareChecklist.do?checklist=monocots%40%40150290520121019541',
|
|
845 |
'link_default_value' => 'http://wcsp.science.kew.org/qsearch.do?plantName=',
|
|
826 | 846 |
'text_default_value' => 'Search World Checklist Monocots...', |
827 | 847 |
'category_default_value' => 'Classification', |
828 | 848 |
); |
... | ... | |
837 | 857 |
'category_default_value' => 'General', |
838 | 858 |
); |
839 | 859 |
$ext_links_default["jstor"] = array( |
840 |
'link_default_value' => 'http://plants.jstor.org/search?searchText=',
|
|
860 |
'link_default_value' => 'https://plants.jstor.org/search?filter=name&so=ps_group_by_genus_species+asc&Query=',
|
|
841 | 861 |
'text_default_value' => 'Search JSTOR Plant Science...', |
842 | 862 |
'category_default_value' => 'General', |
843 | 863 |
); |
... | ... | |
846 | 866 |
'text_default_value' => 'Search ePIC...', |
847 | 867 |
'category_default_value' => 'General', |
848 | 868 |
); |
869 |
/* |
|
870 |
* hidden since Fairchild Guide To Palms seems to be down |
|
849 | 871 |
$ext_links_default["fairchild"] = array( |
850 | 872 |
'link_default_value' => 'http://palmguide.org/palmsearch.php?query=', |
851 | 873 |
'text_default_value' => 'Search Fairchild Guide To Palms...', |
852 | 874 |
'category_default_value' => 'Specimens/Occurrences', |
853 | 875 |
); |
876 |
*/ |
|
877 |
$ext_links_default["ggbn"] = array( |
|
878 |
'link_default_value' => 'http://www.ggbn.org/ggbn_portal/search/result?fullScientificName=', |
|
879 |
'text_default_value' => 'Search GGBN...', |
|
880 |
'category_default_value' => 'Molecular Resources', |
|
881 |
); |
|
882 |
// |
|
854 | 883 |
return $ext_links_default; |
855 | 884 |
} |
Also available in: Unified diff
fix #7451 fixing outdated search URIs, hiding fairchild, adding ggbn