Project

General

Profile

« Previous | Next » 

Revision 648b078c

Added by Andreas Kohlbecker about 3 years ago

ref #6866 fixing buf in source loading and adapting test

View differences:

modules/cdm_dataportal/includes/footnotes.inc
556 556
  }
557 557
  else {
558 558
    // try to load the sources
559
    $sources = cdm_ws_fetch_all('portal/' . cdm_ws_base_uri($entity->class) . '/' . $entity->uuid .  '/sources');
559
    if(isset_not_empty($entity->uuid)){
560
      $sources = cdm_ws_fetch_all(cdm_compose_ws_url('portal/' . cdm_ws_base_uri($entity->class), [ $entity->uuid, 'sources']));
561
    } else {
562
      // this may happen with DerivedUnitFaced, also with others?
563
      $sources = [];
564
    }
560 565
  }
561 566
  usort($sources, 'compare_original_sources');
562 567
  return $sources;
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimensTopDownViewTest.java
68 68
        assertEquals("CEDiT at Botanic Garden and Botanical Museum Berlin-Dahlem (BGBM)", dl1.joinedDescriptionElementText("Collection:"));
69 69
        assertEquals("2017E68", dl1.joinedDescriptionElementText("Most significant identifier:"));
70 70
        assertEquals("2017E68", dl1.joinedDescriptionElementText("Accession number:"));
71
        assertEquals("Epitype (designated by Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H. 20171)",
71
        assertEquals("Epitype (designated by Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H. 20172)",
72 72
                dl1.joinedDescriptionElementText("Specimen type designations:"));
73 73
        // 2
74 74
        assertEquals("gathering in-situ from:", contentElements.get(1).getText());

Also available in: Unified diff