Project

General

Profile

« Previous | Next » 

Revision 8bc96896

Added by Andreas Kohlbecker over 3 years ago

Revert "ref #9265 getting citationDetail from NomenclaturalSource"

This reverts commit d5de0b1f6ed6901d71ccdb8a5a9b44805f907bf0.

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
1917 1917
  }
1918 1918
}
1919 1919

  
1920

  
1921
/**
1922
 * Get a NomenclaturalReference string.
1923
 *
1924
 * Returns the NomenclaturalReference string with correctly placed
1925
 * microreference (= reference detail) e.g.
1926
 * in Phytotaxa 43: 1-48. 2012.
1927
 *
1928
 * @param string $referenceUuid
1929
 *   UUID of the reference.
1930
 * @param string $microreference
1931
 *   Reference detail.
1932
 *
1933
 * @return string
1934
 *   a NomenclaturalReference.
1935
 */
1936
function cdm_ws_getNomenclaturalReference($referenceUuid, $microreference) {
1937

  
1938
  // TODO the below statement avoids error boxes due to #4644 remove it once this ticket is solved
1939
  if(is_array($microreference) || is_object($microreference)) {
1940
    return '';
1941
  }
1942

  
1943
  $obj = cdm_ws_get(CDM_WS_NOMENCLATURAL_REFERENCE_CITATION, array(
1944
    $referenceUuid,
1945
  ), "microReference=" . urlencode($microreference));
1946

  
1947
  if ($obj) {
1948
    return $obj->String;
1949
  }
1950
  else {
1951
    return NULL;
1952
  }
1953
}
1954

  
1920 1955
/**
1921 1956
 * finds and returns the FeatureNode denoted by the given $feature_uuid
1922 1957
 *

Also available in: Unified diff