Project

General

Profile

« Previous | Next » 

Revision 977bba78

Added by Andreas Kohlbecker about 5 years ago

fix #8093 registration identifier links configurable

View differences:

modules/cdm_dataportal/settings.php
35 35
  define('CDM_DATAPORTAL_LAST_VISITED_TAB_ARRAY_INDEX', 999);
36 36
  define('CDM_DATAPORTAL_SPECIMEN_DERIVATE_TREE', 0);
37 37

  
38
  define('CDM_REGISTRATION_PRESISTENT_IDENTIFIER_AS_LINK', 'cdm_registration_presistent_identifier_as_link');
39

  
38 40
  /* annotationTypeKeys */
39 41
  $annotationTypeKeys = array_keys(cdm_vocabulary_as_option(UUID_ANNOTATION_TYPE));
40 42
  if (in_array(UUID_ANNOTATION_TYPE_TECHNICAL, $annotationTypeKeys)) {
......
1613 1615
      '#description' => t('Check this box if the link to advanced search should be show below the search box.'),
1614 1616
  );
1615 1617

  
1618
  // --- Registrations --- //
1619
  $form['registrations'] = array(
1620
    '#type' => 'fieldset',
1621
    '#title' => t('Registrations'),
1622
    '#collapsible' => FALSE,
1623
    '#collapsed' => FALSE,
1624
  );
1625
  $form['registrations']['cdm_registration_presistent_identifier_as_link'] = array(
1626
    '#type' => 'checkbox',
1627
    '#title' => t('Use the persistent http identifier as link'),
1628
    '#default_value' => variable_get('cdm_registration_presistent_identifier_as_link', 0),
1629
    '#description' => t('Switch the portal from using the drupal path <code>registration/{url encoded persistent http identifier}</code> to using the persistent http identifier directly as link.'),
1630
  );
1631

  
1616 1632
  // ---- Taxon Name Rendering --- //
1617 1633
  $form['taxon_name'] = array(
1618 1634
      '#type' => 'fieldset',

Also available in: Unified diff