Project

General

Profile

« Previous | Next » 

Revision e24d373b

Added by Andreas Kohlbecker about 8 years ago

#5695 implemented

View differences:

modules/cdm_dataportal/cdm_dataportal.css
192 192
    display: none;
193 193
}
194 194

  
195

  
196 195
#distribution_hierarchy .level_index_0 .area_label{
197 196
    font-weight: bold;
198 197
}
......
555 554

  
556 555
}
557 556

  
557
.messages .cdm\:Taxon { /* taxa in warning box */
558
    font-weight: bold;
559
}
560

  
558 561
/*
559 562
 * ======= footnotes and annotations =======
560 563
 */
modules/cdm_dataportal/cdm_dataportal.module
1352 1352

  
1353 1353
  if (!$taxon_in_current_classification) {
1354 1354
    $classifications = get_classifications_for_taxon($taxon);
1355
    RenderHints::pushToRenderStack('not_in_current_classification');
1356
    $taxon_name_markup = render_taxon_or_name($taxon);
1357

  
1355 1358
    if (count($classifications) == 0) {
1356
      drupal_set_message(t('This concept of the taxon !taxonname is not contained as an accepted taxon in currently chosen classification.',
1359
      drupal_set_message(t('This concept of the taxon !taxonname is not contained as an accepted taxon in the currently chosen classification.',
1357 1360
        array(
1358
        '!taxonname' => render_taxon_or_name($taxon->name),
1361
        '!taxonname' => $taxon_name_markup,
1359 1362
        )
1360 1363
      ), 'warning');
1361 1364
    }
......
1368 1371
      }
1369 1372

  
1370 1373
      drupal_set_message(format_plural(count($trees),
1371
          'This concept of the taxon !taxonname is not contained as an accepted taxon in currently chosen classification, but in this one: !trees',
1372
          'This concept of the taxon !taxonname is not contained as an accepted taxon in currently chosen classification, but in one of these: !trees',
1373
          array('!taxonname' => render_taxon_or_name($taxon), '!trees' => $trees)
1374
          'This concept of the taxon !taxonname is not contained as an accepted taxon in the currently chosen classification, but in this one: !trees',
1375
          'This concept of the taxon !taxonname is not contained as an accepted taxon in the currently chosen classification, but in one of these: !trees',
1376
          array('!taxonname' => $taxon_name_markup, '!trees' => $trees)
1374 1377
        ) ,
1375 1378
        'warning');
1376 1379
    }
1380
    RenderHints::popFromRenderStack();
1377 1381
  }
1378 1382

  
1379 1383
  // Render the taxon page.
modules/cdm_dataportal/settings.php
162 162
        'namePart' => array('name' => TRUE),
163 163
        'nameAuthorPart' => array('name' => TRUE),
164 164
        'referencePart' => array('authors' => TRUE),
165
        'secReferencePart' => array('secReference' => TRUE,),
166 165
        'microreferencePart' => array('microreference' => TRUE),
166
        'secReferencePart' => array('secReference' => TRUE,),
167 167
        'statusPart' => array('status' => TRUE),
168 168
        'descriptionPart' => array('description' => TRUE),
169 169
      ),
......
248 248

  
249 249
define('CDM_NAME_RENDER_TEMPLATES', 'cdm-name-render-templates');
250 250
define('CDM_NAME_RENDER_TEMPLATES_DEFAULT', serialize(
251
   array (
252
     'taxon_page_title,polytomousKey'=> array(
253
          'namePart' => array('#uri' => TRUE),
254
        ),
255
      'taxon_page_synonymy,accepted_taxon.taxon_page_synonymy'=> array(
256
          'nameAuthorPart' => array('#uri' => TRUE),
257
          'referencePart' => TRUE,
258
          'statusPart' => TRUE,
259
          'descriptionPart' => TRUE,
260
        ),
261
       'related_taxon'=> array(
262
         'nameAuthorPart' => array('#uri' => TRUE),
263
         'referencePart' => TRUE,
264
         'statusPart' => TRUE,
265
         'secReferencePart' => TRUE,
266
         'descriptionPart' => TRUE,
267
       ),
268
       'homonym'=> array(
269
            'nameAuthorPart' => array('#uri' => TRUE),
270
            'referenceYearPart' => TRUE,
271
        ),
272
      'acceptedFor,typedesignations,list_of_taxa' => array(
273
          'nameAuthorPart' => array('#uri' => TRUE),
274
          'referencePart' => TRUE,
275
        ),
276
      '#DEFAULT' => array(
277
          'nameAuthorPart' => array('#uri' => TRUE),
278
          'referencePart' => TRUE,
279
       )
280
    )
281
));
282
  define('CDM_NAME_RENDER_TEMPLATES_DEFAULT_PRE_380', serialize(
283
    array (
284
      'taxon_page_title,polytomousKey'=> array(
251
  array (
252
    'taxon_page_title,polytomousKey'=> array(
285 253
        'namePart' => array('#uri' => TRUE),
286 254
      ),
287
      'taxon_page_synonymy,related_taxon'=> array(
288
        'nameAuthorPart' => array('#uri' => TRUE),
289
        'referencePart' => TRUE,
290
        'statusPart' => TRUE,
291
        'descriptionPart' => TRUE,
292
      ),
293
      'homonym'=> array(
255
    'not_in_current_classification' => array(
256
     'nameAuthorPart' => TRUE,
257
     'referencePart' => TRUE,
258
     'statusPart' => TRUE,
259
     'secReferencePart' => TRUE,
260
    ),
261
    'taxon_page_synonymy,accepted_taxon.taxon_page_synonymy'=> array(
262
      'nameAuthorPart' => array('#uri' => TRUE),
263
      'referencePart' => TRUE,
264
      'statusPart' => TRUE,
265
      'descriptionPart' => TRUE,
266
    ),
267
    'related_taxon'=> array(
268
      'nameAuthorPart' => array('#uri' => TRUE),
269
      'referencePart' => TRUE,
270
      'statusPart' => TRUE,
271
      'secReferencePart' => TRUE,
272
      'descriptionPart' => TRUE,
273
    ),
274
    'homonym'=> array(
294 275
        'nameAuthorPart' => array('#uri' => TRUE),
295 276
        'referenceYearPart' => TRUE,
296
      ),
297
      'acceptedFor,typedesignations,list_of_taxa' => array(
277
    ),
278
    'acceptedFor,typedesignations,list_of_taxa' => array(
298 279
        'nameAuthorPart' => array('#uri' => TRUE),
299 280
        'referencePart' => TRUE,
300 281
      ),
301
      '#DEFAULT' => array(
282
    '#DEFAULT' => array(
302 283
        'nameAuthorPart' => array('#uri' => TRUE),
303 284
        'referencePart' => TRUE,
304
      )
285
     )
286
  )
287
));
288
define('CDM_NAME_RENDER_TEMPLATES_DEFAULT_PRE_380', serialize(
289
  array (
290
    'taxon_page_title,polytomousKey'=> array(
291
      'namePart' => array('#uri' => TRUE),
292
    ),
293
    'taxon_page_synonymy,related_taxon'=> array(
294
      'nameAuthorPart' => array('#uri' => TRUE),
295
      'referencePart' => TRUE,
296
      'statusPart' => TRUE,
297
      'descriptionPart' => TRUE,
298
    ),
299
    'homonym'=> array(
300
      'nameAuthorPart' => array('#uri' => TRUE),
301
      'referenceYearPart' => TRUE,
302
    ),
303
    'acceptedFor,typedesignations,list_of_taxa' => array(
304
      'nameAuthorPart' => array('#uri' => TRUE),
305
      'referencePart' => TRUE,
306
    ),
307
    '#DEFAULT' => array(
308
      'nameAuthorPart' => array('#uri' => TRUE),
309
      'referencePart' => TRUE,
305 310
    )
306
  ));
311
  )
312
));
307 313

  
308 314
define('CDM_SEARCH_TAXA_MODE','cdm_search_taxa_mode');
309 315
define('CDM_SEARCH_TAXA_MODE_DEFAULT', serialize(

Also available in: Unified diff