Revision 76b28190
Added by Andreas Kohlbecker over 11 years ago
modules/cdm_dataportal/settings.php | ||
---|---|---|
536 | 536 |
'#type' => 'fieldset', |
537 | 537 |
'#title' => t('Synonymy'), |
538 | 538 |
'#collapsible' => TRUE, |
539 |
'#collapsed' => FALSE,
|
|
539 |
'#collapsed' => TRUE,
|
|
540 | 540 |
'#description' => t('This section covers the settings related to the taxon <b>synonymy</b> tab.'), |
541 | 541 |
); |
542 | 542 |
|
... | ... | |
602 | 602 |
$collapsed = false; |
603 | 603 |
$form = array(); |
604 | 604 |
|
605 |
/* ====== TAXON_PROFILE ====== */ |
|
606 |
|
|
607 |
$form['taxon_profile'] = array( |
|
608 |
'#type' => 'fieldset', |
|
609 |
'#title' => t('Taxon profile'), |
|
610 |
'#description' => t('<p>This section covers the setting related to the taxon profile tab, also known as the <strong>"General"</strong> tab. |
|
611 |
It is possible to split the taxon profile in different tabs, visit the section Taxon tabs to discover and configure the tabs</p>'), |
|
612 |
'#collapsible' => FALSE, |
|
613 |
'#collapsed' => FALSE, |
|
614 |
); |
|
615 |
|
|
616 |
$form['taxon_profile']['cdm_dataportal_show_back_to_search_results'] = array( |
|
617 |
'#type' => 'checkbox', |
|
618 |
'#title' => t('Show <em>Back to search results</em> link at the taxon site.'), |
|
619 |
'#default_value' => variable_get('cdm_dataportal_show_back_to_search_results', 1), |
|
620 |
'#description' => t('<p>If checked the link to search results is rendererized at the top of the taxon site. Clicking on the link the last search performed is renderized again.</p>') |
|
621 |
); |
|
622 |
|
|
623 | 605 |
//--------- TABBED TAXON -------// |
624 |
$form['taxon_profile']['taxon_tabs'] = array(
|
|
606 |
$form['taxon_tabs'] = array( |
|
625 | 607 |
'#type' => 'fieldset', |
626 | 608 |
'#title' => t('Taxon tabs'), |
627 | 609 |
'#collapsible' => TRUE, |
... | ... | |
630 | 612 |
General, Synonymy, Images and Specimens. If the taxon has no information for any of the tabs/sections such tab will be not displayed.'), |
631 | 613 |
); |
632 | 614 |
|
633 |
$form['taxon_profile']['taxon_tabs']['cdm_dataportal_taxonpage_tabs'] = array( |
|
615 |
|
|
616 |
$form['taxon_tabs']['cdm_dataportal_taxonpage_tabs'] = array( |
|
634 | 617 |
'#type' => 'checkbox', |
635 | 618 |
'#title' => t('Tabbed taxon page'), |
636 | 619 |
'#default_value' => variable_get('cdm_dataportal_taxonpage_tabs', 1), |
... | ... | |
638 | 621 |
If not the taxon data is renderized as a long single page without tabs.</p>') |
639 | 622 |
); |
640 | 623 |
|
641 |
$form['taxon_profile']['taxon_tabs']['cdm_dataportal_detault_tab'] = array(
|
|
624 |
$form['taxon_tabs']['cdm_dataportal_detault_tab'] = array( |
|
642 | 625 |
'#type' => 'select', |
643 | 626 |
'#title' => t('Default tab to display'), |
644 | 627 |
'#default_value' => variable_get('cdm_dataportal_detault_tab', 0), |
... | ... | |
648 | 631 |
to be renderized will be the synonymy of the accepted taxon and not the above selected tab.'), |
649 | 632 |
); |
650 | 633 |
|
634 |
$form['cdm_dataportal_show_back_to_search_results'] = array( |
|
635 |
'#type' => 'checkbox', |
|
636 |
'#title' => t('Show <em>Back to search results</em> link at the taxon site.'), |
|
637 |
'#default_value' => variable_get('cdm_dataportal_show_back_to_search_results', 1), |
|
638 |
'#description' => t('<p>If checked the link to search results is rendererized at the top of the taxon site. Clicking on the link the last search performed is renderized again.</p>') |
|
639 |
); |
|
640 |
|
|
641 |
/* ====== TAXON_PROFILE ====== */ |
|
642 |
|
|
643 |
$form['taxon_profile'] = array( |
|
644 |
'#type' => 'fieldset', |
|
645 |
'#title' => t('Taxon profile (tab)'), |
|
646 |
'#description' => t('<p>This section covers the setting related to the taxon profile tab, also known as the <strong>"General"</strong> tab.</p>'), |
|
647 |
'#collapsible' => TRUE, |
|
648 |
'#collapsed' => TRUE, |
|
649 |
); |
|
650 |
|
|
651 | 651 |
|
652 | 652 |
// ---- PROFILE PICTURE ----// |
653 | 653 |
$form['taxon_profile']['picture'] = array( |
... | ... | |
686 | 686 |
'#description' => t('Show the profil pictures current taxon\'s children.') |
687 | 687 |
); |
688 | 688 |
|
689 |
//-- MEDIA THUMBNAILS --// |
|
690 |
$form_name = CDM_DATAPORTAL_DESCRIPTION_GALLERY_NAME; |
|
691 |
$form_title = 'Taxon Profile Images'; |
|
692 |
$form_description = '<p>The different section in the taxon profile can have images associated with them. These images are displayed in a gallery of thumbnails wich can be configuered here:</p>'; |
|
693 |
$form['taxon_profile'][] = cdm_dataportal_create_gallery_settings_form($form_name, $form_title, $collapsed, $form_description); |
|
694 |
|
|
689 | 695 |
// ---- FEATURE TREE ---- // |
690 | 696 |
$form['taxon_profile']['taxon_profile'] = array( |
691 | 697 |
'#type' => 'fieldset', |
... | ... | |
817 | 823 |
|
818 | 824 |
|
819 | 825 |
/* ====== SYNONYMY ====== */ |
820 |
$form['taxon_profile']['synonymy'] = array(
|
|
826 |
$form['taxon_synonymy'] = array( |
|
821 | 827 |
'#type' => 'fieldset', |
822 |
'#title' => t('Taxon Synonymy (Tab)'),
|
|
828 |
'#title' => t('Taxon synonymy (tab)'),
|
|
823 | 829 |
'#collapsible' => TRUE, |
824 |
'#collapsed' => FALSE,
|
|
830 |
'#collapsed' => TRUE,
|
|
825 | 831 |
'#description' => t('This section covers the settings related to the taxon <b>synonymy</b> tab.'), |
826 | 832 |
); |
827 | 833 |
|
828 |
$form['taxon_profile']['synonymy']['cdm_dataportal_nomref_in_title'] = array(
|
|
834 |
$form['taxon_synonymy']['cdm_dataportal_nomref_in_title'] = array( |
|
829 | 835 |
'#type' => 'checkbox', |
830 | 836 |
'#title' => t('Show accepted taxon on top of the synonymy'), |
831 | 837 |
'#default_value' => variable_get('cdm_dataportal_nomref_in_title', CDM_DATAPORTAL_NOMREF_IN_TITLE), |
... | ... | |
833 | 839 |
with the full nomenclatural reference (depending on the currently chosen theme).') |
834 | 840 |
); |
835 | 841 |
|
836 |
$form['taxon_profile']['synonymy']['cdm_dataportal_display_is_accepted_for'] = array(
|
|
842 |
$form['taxon_synonymy']['cdm_dataportal_display_is_accepted_for'] = array( |
|
837 | 843 |
'#type' => 'checkbox', |
838 | 844 |
'#title' => t('Display <em>is accepted for ...</em> on taxon pages when coming from a synonym link.'), |
839 | 845 |
'#default_value' => variable_get('cdm_dataportal_display_is_accepted_for', CDM_DATAPORTAL_DISPLAY_IS_ACCEPTED_FOR), |
... | ... | |
855 | 861 |
'#description' => t('Select the name relationships you want to show for the accepted taxa.'), |
856 | 862 |
); |
857 | 863 |
|
858 |
$form['taxon_profile']['synonymy']['name_relationships'] = $name_relationships_form;
|
|
864 |
$form['taxon_synonymy']['name_relationships'] = $name_relationships_form; |
|
859 | 865 |
/* |
860 | 866 |
$form['synonymy'][CDM_DATAPORTAL_DISPLAY_NAME_RELATIONSHIPS] = array( |
861 | 867 |
'#type' => 'checkbox', |
... | ... | |
865 | 871 |
'#description' => t('Check this if you want the synonymy list to show all the name relationships of accepted taxa.') |
866 | 872 |
); |
867 | 873 |
*/ |
868 |
$form['taxon_profile']['synonymy'][CDM_DATAPORTAL_DISPLAY_TAXON_RELATIONSHIPS] = array(
|
|
874 |
$form['taxon_synonymy'][CDM_DATAPORTAL_DISPLAY_TAXON_RELATIONSHIPS] = array( |
|
869 | 875 |
'#type' => 'checkbox', |
870 | 876 |
'#title' => t('Show taxon relations of accepted taxa on taxon page'), |
871 | 877 |
'#default_value' => variable_get(CDM_DATAPORTAL_DISPLAY_TAXON_RELATIONSHIPS, CDM_DATAPORTAL_DISPLAY_TAXON_RELATIONSHIPS_DEFAULT), |
... | ... | |
873 | 879 |
); |
874 | 880 |
|
875 | 881 |
// ====== SPECIMENS ====== // |
876 |
$form['taxon_profile']['specimens'] = array(
|
|
882 |
$form['taxon_specimens'] = array( |
|
877 | 883 |
'#type' => 'fieldset', |
878 |
'#title' => t('Taxon Specimens (Tab)'),
|
|
884 |
'#title' => t('Taxon specimens (tab)'),
|
|
879 | 885 |
'#collapsible' => TRUE, |
880 |
'#collapsed' => FALSE,
|
|
886 |
'#collapsed' => TRUE,
|
|
881 | 887 |
'#description' => t('This section covers the settings related to the taxon <b>specimens</b> tab.'), |
882 | 888 |
); |
883 | 889 |
$form_name = CDM_DATAPORTAL_SPECIMEN_GALLERY_NAME; |
... | ... | |
885 | 891 |
$form_description = 'Specimens may have media which is displayed at the Specimen tab/section as a gallery. |
886 | 892 |
It is possible to configure the thumbnails gallery here, however for configuring how a single media should |
887 | 893 |
be displayed please go to <a href="./?q=admin/settings/cdm_dataportal/layout/media">Layout -> Media</a></p>'; |
888 |
$form['taxon_profile']['specimens'][] =
|
|
894 |
$form['taxon_specimens'][] = |
|
889 | 895 |
cdm_dataportal_create_gallery_settings_form($form_name, $form_title, FALSE, $form_description); |
890 | 896 |
|
891 |
//-- MEDIA THUMBNAILS --// |
|
892 |
//$form_name = CDM_DATAPORTAL_DESCRIPTION_GALLERY_NAME; |
|
893 |
//$form_tittle = 'Taxon Images (Tab)'; |
|
894 |
//$form_description = 'This section covers the settings related to the taxon images tab. Taxon images display all the media (in this case images) found for a given taxon as a thumbnails.'; |
|
895 |
//$form['taxon_profile'][] = cdm_dataportal_create_gallery_settings_form($form_name, $form_tittle, $collapsed, $form_description); |
|
897 |
|
|
896 | 898 |
// --- MEDIA GALLERY ---- // |
897 |
//$form_name = CDM_DATAPORTAL_MEDIA_GALLERY_NAME; |
|
898 | 899 |
$form_name = CDM_DATAPORTAL_TAXON_MEDIA_GALLERY_NAME_TAB; |
899 |
$form_title = 'Media gallery (Tab)';
|
|
900 |
$form_title = 'Media gallery (tab)';
|
|
900 | 901 |
$form_description = '<p>This section covers the settings related to the taxon <strong>media</strong> tab. |
901 | 902 |
Taxa may have media (usually images) and they are as thumbnails displayed. It is possible to configure |
902 | 903 |
the thumbnails gallery here, however for configuring how a single media should be displayed please go to |
903 | 904 |
<a href="./?q=admin/settings/cdm_dataportal/layout/media">Layout -> Media</a></p> |
904 | 905 |
<p><strong>Note:</strong> These settings are only taken into account when the standard |
905 | 906 |
gallery viewer is selected at <a href="./?q=admin/settings/cdm_dataportal/layout/media">Layout -> Media</a>.</p>'; |
906 |
//$form[] = cdm_dataportal_create_gallery_settings_form($form_name, $form_title, $collapsed); |
|
907 |
$form['taxon_profile'][] = cdm_dataportal_create_gallery_settings_form($form_name, $form_title, $collapsed, $form_description); |
|
907 |
$form['taxon_media'][] = cdm_dataportal_create_gallery_settings_form($form_name, $form_title, TRUE, $form_description); |
|
908 | 908 |
|
909 | 909 |
|
910 | 910 |
return system_settings_form($form); |
... | ... | |
918 | 918 |
'#type' => 'fieldset', |
919 | 919 |
'#title' => t('Taxa Search'), |
920 | 920 |
'#collapsible' => TRUE, |
921 |
'#collapsed' => FALSE,
|
|
921 |
'#collapsed' => TRUE,
|
|
922 | 922 |
'#description' => t('<p>The data portal allows the users to perform searchs.</p><p>To perform searchs |
923 | 923 |
the block <em>CDM Taxon Search</em> should be enabled and visible for users |
924 | 924 |
where they can write the text to be searched. You can find Drupal block configuration |
Also available in: Unified diff
reorganizing taxon settings & adding missing taxon profile gallery settings