Project

General

Profile

Revision c7f92453

IDc7f92453f44eb0b70a3eb77dab51916cbfdee73e
Parent c5294246
Child 3a3d658d

Added by Andreas Kohlbecker almost 4 years ago

ref #3061 using the full publication timePeriod instead of only start

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.name.theme
122 122
        $author_team = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $type_designation->citation->uuid);
123 123

  
124 124
        if(isset($author_team->titleCache)){
125
          $authorteam_str = $author_team->titleCache . partialToYear($type_designation->citation->datePublished->start);
125
          $year = timePeriodToString($type_designation->citation->datePublished, true, 'YYYY');
126
          $authorteam_str = $author_team->titleCache . ($year ? ' ' : '') . $year;
126 127
          if($authorteam_str == $type_designation->citation->titleCache){
127 128
            $citation_footnote_str = '';
128 129
          }
......
148 149

  
149 150
        $typeReference .= '&nbsp;(' . t('designated by') . '&nbsp;<span class="typeReference">'. $authorteam_str . '</span>';
150 151
        if (!empty($type_designation->citationMicroReference)) {
151
          $typeReference .= ':' . $type_designation->citationMicroReference;
152
          $typeReference .= ': ' . trim($type_designation->citationMicroReference);
152 153
        }
153 154
        $typeReference .= $footnote_key_markup . ')';
154 155

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)