Project

General

Profile

« Previous | Next » 

Revision 8c77b2a8

Added by Alexander Kroupa about 14 years ago

Link to BioCASE added

View differences:

modules/cdm_dataportal/ext_links/ext_links.module
42 42
		'text_description' => 'The text of the link that is displayed..',
43 43
	);
44 44
	$ext_links[1] = array(
45
		'form' => 'biocase',
46
		'form_title' => 'BioCASE',
47
		'check_title' => 'Display BioCASE link?',
48
		'link_title' => 'BioCASE link',
49
		'link_description' => 'The link to BioCASE without the taxon name.',
50
		'concat_default_value' => ' ',
51
		'text_title' => 'BioCASE text',
52
		'text_description' => 'The text of the link that is displayed..',
53
	);
54
	$ext_links[2] = array(
45 55
		'form' => 'nybg',
46 56
		'form_title' => 'The New York Botanical Garden',
47 57
		'check_title' => 'Display NYBG link?',
......
51 61
		'text_title' => 'NYBG text',
52 62
		'text_description' => 'The text of the link that is displayed..',
53 63
	);
54
	$ext_links[2] = array(
64
	$ext_links[3] = array(
55 65
		'form' => 'tropicos',
56 66
		'form_title' => 'Tropicos',
57 67
		'check_title' => 'Display Tropicos link?',
......
61 71
		'text_title' => 'Tropicos text',
62 72
		'text_description' => 'The text of the link that is displayed..',
63 73
	);
64
	$ext_links[3] = array(
74
	$ext_links[4] = array(
65 75
		'form' => 'ncbi',
66 76
		'form_title' => 'NCBI',
67 77
		'check_title' => 'Display NCBI link?',
......
71 81
		'text_title' => 'NCBI text',
72 82
		'text_description' => 'The text of the link that is displayed..',
73 83
	);
74
	$ext_links[4] = array(
84
	$ext_links[5] = array(
75 85
		'form' => 'google',
76 86
		'form_title' => 'Google Images',
77 87
		'check_title' => 'Display Google Images link?',
......
81 91
		'text_title' => 'Google Images text',
82 92
		'text_description' => 'The text of the link that is displayed..',
83 93
	);
84
	$ext_links[5] = array(
94
	$ext_links[6] = array(
85 95
		'form' => 'flickr',
86 96
		'form_title' => 'flickr',
87 97
		'check_title' => 'Display flickr link?',
......
91 101
		'text_title' => 'flickr text',
92 102
		'text_description' => 'The text of the link that is displayed..',
93 103
	);
94
	$ext_links[6] = array(
104
	$ext_links[7] = array(
95 105
		'form' => 'scholar',
96 106
		'form_title' => 'Google scholar',
97 107
		'check_title' => 'Display Google scholar link?',
......
101 111
		'text_title' => 'Google scholar text',
102 112
		'text_description' => 'The text of the link that is displayed..',
103 113
	);
104
	$ext_links[7] = array(
114
	$ext_links[8] = array(
105 115
		'form' => 'bhl',
106 116
		'form_title' => 'Biodiversity Heritage Library (BHL)',
107 117
		'check_title' => 'Display BHL link?',
......
169 179
		'link_default_value' => 'http://data.gbif.org/species/',
170 180
		'text_default_value' => 'Search GBIF...',
171 181
 	); 
172
	$ext_links_default["nybg"] = array(
182
	$ext_links_default["biocase"] = array(
183
 		'link_default_value' => 'http://search.biocase.org/edit/search/units/simpleSearch/query1?unitName=',
184
		'text_default_value' => 'Search BioCASE...',
185
 	); 
186
 	$ext_links_default["nybg"] = array(
173 187
 		'link_default_value' => 'http://rbg-web2.rbge.org.uk/cgi-bin/nph-readbtree.pl/dataset=NYBG/filename=names3/firstval=1/multiaddr=/multiform=multisite3.php?ETI=',
174 188
		'text_default_value' => 'Search NYBG...',
175 189
 	); 
......
263 277
          		    	if(variable_get('ext_links_gbif_check', true)) {
264 278
          		    		$block_content .= '<a href="JavaScript:popupExternalLinks(\''.variable_get('ext_links_gbif_link', $ext_links_default[gbif][link_default_value]).$speciesName[genus].variable_get('ext_links_gbif_concat', ' ').$speciesName[species].'\')">'.variable_get('ext_links_gbif_text', $ext_links_default[gbif][text_default_value]).'</a><br />';
265 279
          		    	}
280
          		    	if(variable_get('ext_links_biocase_check', 1)) {
281
          		    		$block_content .= '<a href="JavaScript:popupExternalLinks(\''.variable_get('ext_links_biocase_link', $ext_links_default[biocase][link_default_value]).$speciesName[genus].variable_get('ext_links_biocase_concat', ' ').$speciesName[species].'\')">'.variable_get('ext_links_biocase_text', $ext_links_default[biocase][text_default_value]).'</a><br />';
282
          		    	}
266 283
          		    	if(variable_get('ext_links_nybg_check', 1)) {
267 284
          		    		$block_content .= '<a href="JavaScript:popupExternalLinks(\''.variable_get('ext_links_nybg_link', $ext_links_default[nybg][link_default_value]).$speciesName[genus].variable_get('ext_links_nybg_concat', ' ').$speciesName[species].'\')">'.variable_get('ext_links_nybg_text', $ext_links_default[nybg][text_default_value]).'</a><br />';
268 285
          		    	}

Also available in: Unified diff