Project

General

Profile

« Previous | Next » 

Revision 1b756c5f

Added by Andreas Kohlbecker almost 5 years ago

fix #6392 test for uses and use records and refactoring of the uses feature block

  • fixing wrong assumptions for cyprus
  • bibliography as pseudo feature block better testable

View differences:

modules/cdm_dataportal/settings.php
685 685
        'sort_elements' => NO_SORT,
686 686
        'glue' => '',
687 687
        'element_tag' => NULL
688
      ),
689
      // settings for pseudo feature bibliography
690
      // only hard coded here
691
      'BIBLIOGRAPHY' => array(
692
        'as_list' => 'div',
693
        'link_to_reference' => 0,
694
        'link_to_name_used_in_source' => 1,
695
        'sources_as_content' => 0,
696
        'sources_as_content_to_bibliography' => 0,
697
        'sort_elements' => NO_SORT,
698
        'glue' => '',
699
        'element_tag' => NULL
688 700
      )
689 701
    );
690 702

  
......
833 845
      'sources_as_content' => 0,
834 846
      'sources_as_content_to_bibliography' => 0,
835 847
      'sort_elements' => NO_SORT, // will cause ...
836
      'glue' => '',
848
      'glue' => ' ',
837 849
      'element_tag' => 'div',
838 850
      'special' => array()
839 851
    );
......
861 873
      default:
862 874
        $settings_for_theme = $other_themes_default;
863 875
    }
876
    // add pseudo feature settings
877
    $settings_for_theme['BIBLIOGRAPHY'] = $default['BIBLIOGRAPHY'];
878

  
864 879
    // ---- END of DEFAULTS
865 880

  
866 881
    $saved_settings = variable_get(FEATURE_BLOCK_SETTINGS, NULL);
......
889 904

  
890 905
    return $feature_block_setting;
891 906
}
892
  /**
907

  
908
/**
893 909
 * returns the current setting for the original source bibliography
894 910
 *
895 911
 * Caches internally

Also available in: Unified diff