Revision 46aa1f81
Added by Andreas Kohlbecker almost 3 years ago
modules/cdm_dataportal/ext_links/ext_links.module | ||
---|---|---|
304 | 304 |
function ext_links_block_view($delta) { |
305 | 305 |
switch ($delta) { |
306 | 306 |
case '0': |
307 |
$block['subject'] = 'External links';
|
|
307 |
$block['subject'] = t('Search name in') . ' ...';
|
|
308 | 308 |
drupal_add_js(drupal_get_path('module', 'ext_links') . '/ext_links.js'); |
309 | 309 |
if (variable_get('ext_links_appearance_grouped', 1)) { |
310 | 310 |
$block['content'] = render_ext_links_list_grouped(); |
... | ... | |
422 | 422 |
$ext_links_default["gbif"] = array( |
423 | 423 |
'id' => "gbif", |
424 | 424 |
'link' => 'http://www.gbif.org/species/search?q=[cdm:taxon_name]', |
425 |
'title' => 'Search GBIF...',
|
|
425 |
'title' => 'GBIF',
|
|
426 | 426 |
'weight' => 0, |
427 | 427 |
'status' => 1, |
428 | 428 |
'category' => 'Specimens/Occurrences', |
... | ... | |
430 | 430 |
$ext_links_default["biocase"] = array( |
431 | 431 |
'id' => "biocase", |
432 | 432 |
'link' => 'http://search.biocase.org/edit/search/units/simpleSearch/query1?unitName=[cdm:taxon_name]', |
433 |
'title' => 'Search BioCASE...',
|
|
433 |
'title' => 'BioCASE',
|
|
434 | 434 |
'weight' => 0, |
435 | 435 |
'status' => 1, |
436 | 436 |
'category' => 'Specimens/Occurrences', |
... | ... | |
438 | 438 |
$ext_links_default["nybg"] = array( |
439 | 439 |
'id' => "nybg", |
440 | 440 |
'link' => 'http://sweetgum.nybg.org/science/vh/specimen_list.php?SummaryData=[cdm:taxon_name]', |
441 |
'title' => 'Search NYBG...',
|
|
441 |
'title' => 'NYBG',
|
|
442 | 442 |
'weight' => 0, |
443 | 443 |
'status' => 1, |
444 | 444 |
'category' => 'Specimens/Occurrences', |
... | ... | |
446 | 446 |
$ext_links_default["tropicos"] = array( |
447 | 447 |
'id' => "tropicos", |
448 | 448 |
'link' => 'http://www.tropicos.org/NameSearch.aspx?name=[cdm:taxon_name]', |
449 |
'title' => 'Search Tropicos...',
|
|
449 |
'title' => 'Tropicos',
|
|
450 | 450 |
'weight' => 0, |
451 | 451 |
'status' => 1, |
452 | 452 |
'category' => 'Specimens/Occurrences', |
... | ... | |
454 | 454 |
$ext_links_default["ncbi"] = array( |
455 | 455 |
'id' => "ncbi", |
456 | 456 |
'link' => 'http://www.ncbi.nlm.nih.gov/gquery/gquery.fcgi?term=%22[cdm:taxon_name]%22', |
457 |
'title' => 'Search NCBI...',
|
|
457 |
'title' => 'NCBI',
|
|
458 | 458 |
'weight' => 0, |
459 | 459 |
'status' => 1, |
460 | 460 |
'category' => 'Molecular Resources', |
... | ... | |
462 | 462 |
$ext_links_default["google"] = array( |
463 | 463 |
'id' => "google", |
464 | 464 |
'link' => 'http://images.google.com/images?q=%22[cdm:taxon_name]%22', |
465 |
'title' => 'Search Google Images...',
|
|
465 |
'title' => 'Google Images',
|
|
466 | 466 |
'weight' => 0, |
467 | 467 |
'status' => 1, |
468 | 468 |
'category' => 'Images', |
... | ... | |
470 | 470 |
$ext_links_default["flickr"] = array( |
471 | 471 |
'id' => "flickr", |
472 | 472 |
'link' => 'http://www.flickr.com/search/?w=all&q=%22[cdm:taxon_name]%22', |
473 |
'title' => 'Search flickr...',
|
|
473 |
'title' => 'flickr',
|
|
474 | 474 |
'weight' => 0, |
475 | 475 |
'status' => 1, |
476 | 476 |
'category' => 'Images', |
... | ... | |
478 | 478 |
$ext_links_default["scholar"] = array( |
479 | 479 |
'id' => "scholar", |
480 | 480 |
'link' => 'http://scholar.google.de/scholar?q=%22[cdm:taxon_name]%22', |
481 |
'title' => 'Search Google scholar...',
|
|
481 |
'title' => 'Google scholar',
|
|
482 | 482 |
'weight' => 0, |
483 | 483 |
'status' => 1, |
484 | 484 |
'category' => 'Literature', |
... | ... | |
487 | 487 |
'id' => "bhl", |
488 | 488 |
// BHL does not normalize rank terms, ssp., sub., subsp. are not unified, therefore we skip that part: |
489 | 489 |
'link' => 'https://www.biodiversitylibrary.org/search?searchTerm=[cdm:taxon_name:genus_or_uninomial]+[cdm:taxon_name:epithet]+[cdm:taxon_name:infraspecific_epithet]&stype=F#/names', |
490 |
'title' => 'Search BHL...',
|
|
490 |
'title' => 'BHL',
|
|
491 | 491 |
'weight' => 0, |
492 | 492 |
'status' => 1, |
493 | 493 |
'category' => 'Literature', |
... | ... | |
496 | 496 |
// domain no longer exists! Remove extlink? |
497 | 497 |
'id' => "arkive", |
498 | 498 |
'link' => 'http://www.arkive.org/search.html?q=[cdm:taxon_name]&output=xml_no_dtd&client=arkive-images&site=arkive-images&ie=utf8&oe=utf8&num=20&proxystylesheet=tng-search&filter=0&getfields=*', |
499 |
'title' => 'Search ARKive...',
|
|
499 |
'title' => 'ARKive',
|
|
500 | 500 |
'weight' => 0, |
501 | 501 |
'status' => 0, |
502 | 502 |
'category' => 'Images', |
... | ... | |
504 | 504 |
$ext_links_default["herbcat"] = array( |
505 | 505 |
'id' => "herbcat", |
506 | 506 |
'link' => 'http://apps.kew.org/herbcat/getSearchPageResults.do?typeSpecimen=false&imageSpecimen=false¤tName=false&typeOfCollection=all_collection&&genus=[cdm:taxon_name:genus_or_uninomial]&&species=[cdm:taxon_name:epithet]&infraspecificName=[cdm:taxon_name:infraspecific_epithet]', |
507 |
'title' => 'Search Kew Herbarium Catalogue...',
|
|
507 |
'title' => 'Kew Herbarium Catalogue',
|
|
508 | 508 |
'weight' => 0, |
509 | 509 |
'status' => 1, |
510 | 510 |
'category' => 'Specimens/Occurrences', |
... | ... | |
512 | 512 |
$ext_links_default["iucn"] = array( |
513 | 513 |
'id' => "iucn", |
514 | 514 |
'link' => 'https://www.iucnredlist.org/search?query=[cdm:taxon_name]', |
515 |
'title' => 'Search IUCN Red List...',
|
|
515 |
'title' => 'IUCN Red List',
|
|
516 | 516 |
'weight' => 0, |
517 | 517 |
'status' => 1, |
518 | 518 |
'category' => 'Conservation', |
... | ... | |
520 | 520 |
$ext_links_default["ipni"] = array( |
521 | 521 |
'id' => "ipni", |
522 | 522 |
'link' => 'https://www.ipni.org/?q=[cdm:taxon_name]', |
523 |
'title' => 'Search IPNI...',
|
|
523 |
'title' => 'IPNI',
|
|
524 | 524 |
'weight' => 0, |
525 | 525 |
'status' => 1, |
526 | 526 |
'category' => 'Classification', |
... | ... | |
528 | 528 |
$ext_links_default["wcsp"] = array( |
529 | 529 |
'id' => "wcsp", |
530 | 530 |
'link' => 'http://wcsp.science.kew.org/qsearch.do?plantName=[cdm:taxon_name]', |
531 |
'title' => 'Search World Checklist Monocots...',
|
|
531 |
'title' => 'World Checklist Monocots',
|
|
532 | 532 |
'weight' => 0, |
533 | 533 |
'status' => 1, |
534 | 534 |
'category' => 'Classification', |
... | ... | |
536 | 536 |
$ext_links_default["tpl"] = array( |
537 | 537 |
'id' => "tpl", |
538 | 538 |
'link' => 'http://www.theplantlist.org/tpl/search?q=[cdm:taxon_name]', |
539 |
'title' => 'Search The Plant List...',
|
|
539 |
'title' => 'The Plant List',
|
|
540 | 540 |
'weight' => 0, |
541 | 541 |
'status' => 1, |
542 | 542 |
'category' => 'Classification', |
... | ... | |
544 | 544 |
$ext_links_default["eol"] = array( |
545 | 545 |
'id' => "eol", |
546 | 546 |
'link' => 'http://eol.org/search/?q=[cdm:taxon_name]', |
547 |
'title' => 'Search Encyclopaedia of Life...',
|
|
547 |
'title' => 'Encyclopaedia of Life',
|
|
548 | 548 |
'weight' => 0, |
549 | 549 |
'status' => 1, |
550 | 550 |
'category' => 'General', |
... | ... | |
552 | 552 |
$ext_links_default["jstor"] = array( |
553 | 553 |
'id' => "jstor", |
554 | 554 |
'link' => 'https://plants.jstor.org/search?filter=name&so=ps_group_by_genus_species+asc&Query=[cdm:taxon_name]', |
555 |
'title' => 'Search JSTOR Plant Science...',
|
|
555 |
'title' => 'JSTOR Plant Science',
|
|
556 | 556 |
'weight' => 0, |
557 | 557 |
'status' => 1, |
558 | 558 |
'category' => 'General', |
... | ... | |
560 | 560 |
$ext_links_default["epic"] = array( |
561 | 561 |
'id' => "epic", |
562 | 562 |
'link' => 'http://epic.kew.org/searchepic/summaryquery.do?scientificName=[cdm:taxon_name]&searchAll=true&categories=names&categories=bibl&categories=colln&categories=taxon&categories=flora', |
563 |
'title' => 'Search ePIC...',
|
|
563 |
'title' => 'ePIC',
|
|
564 | 564 |
'weight' => 0, |
565 | 565 |
'status' => 1, |
566 | 566 |
'category' => 'General', |
... | ... | |
569 | 569 |
//disabled since Fairchild Guide To Palms seems to be down |
570 | 570 |
'id' => "fairchild", |
571 | 571 |
'link' => 'http://palmguide.org/palmsearch.php?query=', |
572 |
'title' => 'Search Fairchild Guide To Palms...',
|
|
572 |
'title' => 'Fairchild Guide To Palms',
|
|
573 | 573 |
'weight' => 0, |
574 | 574 |
'status' => 0, |
575 | 575 |
'category' => 'Specimens/Occurrences', |
... | ... | |
577 | 577 |
$ext_links_default["ggbn"] = array( |
578 | 578 |
'id' => "ggbn", |
579 | 579 |
'link' => 'http://www.ggbn.org/ggbn_portal/search/result?fullScientificName=[cdm:taxon_name]', |
580 |
'title' => 'Search GGBN...',
|
|
580 |
'title' => 'GGBN',
|
|
581 | 581 |
'weight' => 0, |
582 | 582 |
'status' => 1, |
583 | 583 |
'category' => 'Molecular Resources', |
Also available in: Unified diff
ref #9659 improved ext_link block layout with migration of old installations