Project

General

Profile

feature request #4877

implement setting for choosing the SourceTypes to be shown

Added by Andreas Kohlbecker over 4 years ago. Updated about 2 months ago.

Status:
New
Priority:
Priority14
Category:
cdm-dataportal
Start date:
06/04/2015
Due date:
% Done:

0%

Severity:
normal

Description

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

  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);
  }

History

#1 Updated by Andreas Müller over 4 years ago

  • Target version deleted ()

#2 Updated by Andreas Müller over 4 years ago

  • Target version changed from cdm_dataportal RELEASE 3.8 to Reviewed Next Major Release
  • Priority changed from New to Highest

#3 Updated by Andreas Müller 10 months ago

  • Priority changed from Highest to Priority12

#4 Updated by Andreas Kohlbecker about 2 months ago

  • Description updated (diff)
  • Private changed from Yes to No

#5 Updated by Andreas Müller about 2 months ago

I wonder why this ticket has so low priority. I think it should be easy to implement and might be of some relevance in future when more source types will be available.

#6 Updated by Andreas Kohlbecker about 2 months ago

  • Description updated (diff)
  • Priority changed from Priority12 to Priority14

#7 Updated by Andreas Kohlbecker about 2 months ago

in deed, this should be easy to do, priority increased, please increase again once it gets more urgent

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)