Revision 54e498e3
Added by Andreas Kohlbecker over 11 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
1228 | 1228 |
return $result->Integer; |
1229 | 1229 |
} |
1230 | 1230 |
|
1231 |
/** |
|
1232 |
* Composes an HTML element class attribute value composed of |
|
1233 |
* the shortname of the cdm class and the uuid of the entity. |
|
1234 |
* This class attribute should be used whereever an cdm-entity is rendered. |
|
1235 |
* |
|
1236 |
* These according class selectors in css must be escaped, eg: |
|
1237 |
* .cdm\:TextData |
|
1238 |
* |
|
1239 |
* @param $cdmEntity |
|
1240 |
*/ |
|
1241 |
function html_class_atttibute_ref($cdmEntity){ |
|
1242 |
|
|
1243 |
if(is_cdm_entity($cdmEntity)) { |
|
1244 |
return "cdm:".$cdmEntity->class." uuid:".$cdmEntity->uuid; |
|
1245 |
} |
|
1246 |
} |
|
1247 |
|
|
1231 | 1248 |
function theme_cdm_uri_to_synonym($synonymUuid, $acceptedUuid, $pagePart = null){ |
1232 | 1249 |
$acceptedPath = path_to_taxon($acceptedUuid, true); |
1233 | 1250 |
return url($acceptedPath.($pagePart ? '/'.$pagePart : ''), 'highlite='.$synonymUuid.'&acceptedFor='.$synonymUuid, $synonymUuid); |
Also available in: Unified diff
fixing #2568 (CICHORIEAE: Multiple Citation enties should be shown in separate lines)