Revision 800ff2b0
Added by Andreas Kohlbecker over 9 years ago
7.x/modules/cdm_dataportal/settings.php | ||
---|---|---|
32 | 32 |
define('BIBLIOGRAPHY_FOR_ORIGINAL_SOURCE', 'bibliography_for_original_source'); |
33 | 33 |
define('BIBLIOGRAPHY_FOR_ORIGINAL_SOURCE_DEFAULT', serialize(array( |
34 | 34 |
'enabled' => 1, |
35 |
'key_format' => 'roman'
|
|
35 |
'key_format' => 'ALPHA'
|
|
36 | 36 |
))); |
37 | 37 |
|
38 | 38 |
/* taxonRelationshipTypes */ |
... | ... | |
407 | 407 |
* - 'enabled': 1|0 |
408 | 408 |
* - 'key_format': one of 'latin', 'ROMAN', 'roman', 'ALPHA', 'alpha' |
409 | 409 |
*/ |
410 |
function get_bibliography_settings(){ |
|
410 |
function get_bibliography_settings($clear_cache = false){
|
|
411 | 411 |
static $bibliography_settings = null; |
412 |
if(!$bibliography_settings){ |
|
412 |
if(!$bibliography_settings || $clear_cache){
|
|
413 | 413 |
$bibliography_settings = get_array_variable_merged(BIBLIOGRAPHY_FOR_ORIGINAL_SOURCE, BIBLIOGRAPHY_FOR_ORIGINAL_SOURCE_DEFAULT); |
414 | 414 |
} |
415 | 415 |
return $bibliography_settings; |
... | ... | |
921 | 921 |
'#collapsed' => FALSE, |
922 | 922 |
); |
923 | 923 |
|
924 |
$bibliography_settings = get_bibliography_settings(); |
|
924 |
$bibliography_settings = get_bibliography_settings(true);
|
|
925 | 925 |
|
926 |
$form[BIBLIOGRAPHY_FOR_ORIGINAL_SOURCE]['enable'] = array( |
|
926 |
$form[BIBLIOGRAPHY_FOR_ORIGINAL_SOURCE]['enabled'] = array(
|
|
927 | 927 |
'#type' => 'checkbox', |
928 | 928 |
'#title' => t('Original Source in bibliography'), |
929 | 929 |
'#default_value' => $bibliography_settings['enabled'], |
Also available in: Unified diff
two improvements for #4314 (taxon page: display of bibliography in a block on the taxon page)