Project

General

Profile

feature request #4877

Updated by Andreas Kohlbecker over 4 years ago

follow up ticket of #4412 (if OriginalSource.idNamespace is present then the footnote for the source is not displayed in portal) 

 


 only the following source types should be enabled by default: 

 


 * PrimaryTaxonomicSource  
  

 * PrimaryMediaSource 

 see `cdm_dataportal/cdm_dataportal.module#2667` 

 ~~~php 
   function _is_original_source_type($source, $types = null) { 
     // this is the default 
     // maybe this should also be put into the settings 
     static $default = array( 
       OriginalSourceType::Lineage, 
       OriginalSourceType::PrimaryMediaSource, 
       OriginalSourceType::PrimaryTaxonomicSource, 
       OriginalSourceType::Unknown, 
       OriginalSourceType::Other, 
     ); 

     if(!$types){ 
       $types = $default; 
     } 
     return isset($source->type) && in_array($source->type, $types); 
   } 
 ~~~

Back