Project

General

Profile

« Previous | Next » 

Revision 317b632e

Added by Francisco Revilla almost 14 years ago

adding acronyms footnotes #1581

View differences:

modules/cdm_dataportal/cdm_api/uuids.php
115 115
define('UUID_RIGHTS_COPYRIGHT', 'd1ef838e-b195-4f28-b8eb-0d3be080bd37');
116 116
define('UUID_RIGHTS_ACCESS_RIGHTS', 'a50b4def-b3ac-4508-b50a-e0f249e3a1d7');
117 117

  
118

  
118
//nomenclatural status type
119
define('UUID_NOMENCLATURALSTATUS_TYPE_uuidAmbiguous', '90f5012b-705b-4488-b4c6-002d2bc5198e');
120
define('UUID_NOMENCLATURALSTATUS_TYPE_DOUBTFUL', '0ffeb39e-872e-4c0f-85ba-a4150d9f9e7d');
121
define('UUID_NOMENCLATURALSTATUS_TYPE_CONFUSUM', '24955174-aa5c-4e71-a2fd-3efc79e885db');
122
define('UUID_NOMENCLATURALSTATUS_TYPE_ILLEGITIMATE', 'b7c544cf-a375-4145-9d3e-4b97f3f18108');
123
define('UUID_NOMENCLATURALSTATUS_TYPE_SUPERFLUOUS', '6890483a-c6ba-4ae1-9ab1-9fbaa5736ce9');
124
define('UUID_NOMENCLATURALSTATUS_TYPE_REJECTED', '48107cc8-7a5b-482e-b438-efbba050b851');
125
define('UUID_NOMENCLATURALSTATUS_TYPE_UTIQUEREJECTED', '04338fdd-c12a-402f-a1ca-68b4bf0be042');
126
define('UUID_NOMENCLATURALSTATUS_TYPE_CONSERVEDPROP', '82bab006-5aed-4301-93ec-980deb30cbb1');
127
define('UUID_NOMENCLATURALSTATUS_TYPE_ORTHOGRAPHYCONSERVEDPROP', '02f82bc5-1066-454b-a023-11967cba9092');
128
define('UUID_NOMENCLATURALSTATUS_TYPE_LEGITIMATE', '51a3613c-b53b-4561-b0cd-9163d91c15aa');
129
define('UUID_NOMENCLATURALSTATUS_TYPE_ALTERNATIVE', '3b8a8519-420f-4dfa-b050-b410cc257961');
130
define('UUID_NOMENCLATURALSTATUS_TYPE_NOVUM', '05fcb68f-af60-4851-b912-892512058897');
131
define('UUID_NOMENCLATURALSTATUS_TYPE_UTIQUEREJECTEDPROP', '643ee07f-026c-426c-b838-c778c8613383');
132
define('UUID_NOMENCLATURALSTATUS_TYPE_ORTHOGRAPHYCONSERVED', '34a7d383-988b-4117-b8c0-52b947f8c711');
133
define('UUID_NOMENCLATURALSTATUS_TYPE_REJECTEDPROP',  '248e44c2-5436-4526-a352-f7467ecebd56');
134
define('UUID_NOMENCLATURALSTATUS_TYPE_CONSERVED', '6330f719-e2bc-485f-892b-9f882058a966');
135
define('UUID_NOMENCLATURALSTATUS_TYPE_SANCTIONED', '1afe55c4-76aa-46c0-afce-4dc07f512733');
136
define('UUID_NOMENCLATURALSTATUS_TYPE_INVALID', 'b09d4f51-8a77-442a-bbce-e7832aaf46b7');
137
define('UUID_NOMENCLATURALSTATUS_TYPE_NUDUM', 'e0d733a8-7777-4b27-99a3-05ab50e9f312');
138
define('UUID_NOMENCLATURALSTATUS_TYPE_COMBINATIONINVALID', 'f858e619-7b7f-4225-913b-880a2143ec83');
139
define('UUID_NOMENCLATURALSTATUS_TYPE_PROVISIONAL', 'a277507e-ad93-4978-9419-077eb889c951');
140
define('UUID_NOMENCLATURALSTATUS_TYPE_VALID', 'bd036217-5499-4ccd-8f4c-72e06158db93');
141
define('UUID_NOMENCLATURALSTATUS_TYPE_OPUSUTIQUEOPPR', 'a5055d80-dbba-4660-b091-a1835d59fe7c');
142
define('UUID_NOMENCLATURALSTATUS_TYPE_SUBNUDUM', '92a76bd0-6ea8-493f-98e0-4be0b98c092f');
119 143

  
modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
255 255

  
256 256
	$out = '';
257 257
	$separator = ',';
258
    RenderHints::pushToRenderStack('descriptionElementDistribution');
258
  RenderHints::pushToRenderStack('descriptionElementDistribution');
259 259
	RenderHints::setFootnoteListKey(UUID_DISTRIBUTION);
260 260
	foreach($descriptionElements as $descriptionElement){
261 261
		// annotations as footnotes
modules/cdm_dataportal/theme/cdm_dataportal.name.theme
15 15
function theme_cdm_typedesignations($typeDesignations = array()){
16 16

  
17 17
	RenderHints::pushToRenderStack('typedesignations');
18
	RenderHints::setFootnoteListKey(UUID_SYNONYM_OF);
18 19
	_add_js_cluetip();
19 20
	$out = '<ul class="typeDesignations">';
20 21

  
......
78 79

  
79 80
			$out .= '<li class="specimenTypeDesignation">';
80 81
			$out .= '<span class="status">'.(($std->typeStatus->representation_L10n) ? $std->typeStatus->representation_L10n : t('Type')) .$typeReference.'</span>: '.$std->typeSpecimen->titleCache;
81
			//$out .= '<span class="status">'.(($std->typeStatus->representation_L10n) ? $std->typeStatus->representation_L10n : t('Type')) .$typeReference.'</span>: '.$std->typeSpecimen->titleCache . ' footnote: '. theme_cdm_footnote($std->typeSpecimen->collection->code, $std->typeSpecimen->collection->titleCache);
82
  
83 82
			$out .= theme('cdm_specimen', $std->typeSpecimen);
83
			//footnotes for synonymy acronyms 
84
			$_fkey = FootnoteManager::addNewFootnote(RenderHints::getRenderPath(), $std->typeSpecimen->collection->titleCache);
85
      $out .= theme('cdm_footnote_key', $_fkey, RenderHints::getRenderPath());		
84 86
			$out .= '</li>';
85 87
		}
86 88
	}
87 89

  
88 90
	$out .= '</ul>';
89

  
91
	//render the footnotes at the end of the page
92
  $out .= theme('cdm_footnotes', RenderHints::getRenderPath());
90 93
	RenderHints::popFromRenderStack();
91 94
	return $out;
92 95
}
modules/cdm_dataportal/theme/cdm_dataportal.page.theme
228 228
        $out .= theme('cdm_taxonRelationships', $taxonRelationships);
229 229
    }
230 230
	
231
    RenderHints::popFromRenderStack();
231
    //$out .= theme('cdm_footnote_key', $_fkey, 'TEST');    
232
    //RenderHints::setFootnoteListKey('test');  
233
    //var_dump(RenderHints::getFootnoteListKey('test'));
234
    //var_dump(RenderHints::getRenderPath());
235
    //RenderHints::popFromRenderStack();
236
            
232 237
	return $out;
233 238
}
234 239

  
modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme
224 224

  
225 225

  
226 226
function theme_cdm_related_taxon($taxon, $reltype_uuid = false){
227

  
228 227
	$relsign = '';
229 228
	$name_prefix = '';
230 229
	$name_postfix = '';
......
246 245
			$relsign = '&ndash;';
247 246
	}
248 247

  
248
	$status = $taxon->name->status[0]->type->representation_L10n;
249
  if ($status == 'Invalid' || $status == 'Nudum'){
250
    	$relsign = '-';
251
    	$status = $taxon->name->status[0]->type->representation_L10n;
252
  }
253
  
249 254
	 RenderHints::pushToRenderStack('related_taxon');
250 255

  
251 256
	//$taxonUri = url(path_to_taxon($taxon->uuid));
......
267 272
        $later_homonym = ' [non ' . l($element->fromName->titleCache . ']', 
268 273
                                     'cdm_dataportal/name/' . $element->fromName->uuid);
269 274
        break;
270
    }	
275
    }
271 276
	}
272 277

  
273

  
274
	$out = '<span class="relation_sign">'.$relsign.'</span>'.$name_prefix . $nameHtml . $name_postfix . $later_homonym;
275
	
276
  //var_dump($taxon_name_relations[0]->type->representation_L10n);  
278
	$out = '<span class="relation_sign">'.$relsign.'</span>'.$name_prefix . $nameHtml . $name_postfix . $later_homonym . $status;
277 279
	
278 280
	$out = uuid_anchor($taxon->uuid, $out);
279 281
	

Also available in: Unified diff