Project

General

Profile

« Previous | Next » 

Revision 54e498e3

Added by Andreas Kohlbecker over 11 years ago

fixing #2568 (CICHORIEAE: Multiple Citation enties should be shown in separate lines)

View differences:

themes/garland_cichorieae/template.php
87 87
		$asListElement = false;
88 88
	}
89 89

  
90
	    //printing annotations footnotes
91
    $annotation_fkeys =  theme('cdm_annotations_as_footnotekeys', $element, $feature_uuid);
92

  
90 93
	if ($feature_uuid == UUID_NAME_USAGE || $feature_uuid == UUID_CHROMOSOMES){
91 94
		$no_links = true;
92 95
	}
......
132 135
				if ($name_used_in_source_link_to_show && ($description || $sourceRefs)){
133 136
					$out .= ': ';
134 137
				}
135
				$out .= $description . $sourceRefs .theme('cdm_annotations_as_footnotekeys', $element, $feature_uuid) . '</li>';
138
				$out .= $description . $sourceRefs .theme('cdm_annotations_as_footnotekeys', $element, $feature_uuid) . $annotation_fkeys . '</li>';
136 139
			}else if ($asListElement){
137 140
				$out = '<li class="descriptionText">' . $name_used_in_source_link_to_show;
138 141
				//adding ":" if necesary
139 142
				if ($name_used_in_source_link_to_show && ($description || $sourceRefs)){
140 143
					$out .= ': ';
141 144
				}
142
				$out .= $description . $sourceRefs . theme('cdm_annotations_as_footnotekeys', $element, $feature_uuid) . '</li>';
145
				$out .= $description . $sourceRefs . theme('cdm_annotations_as_footnotekeys', $element, $feature_uuid) . $annotation_fkeys . '</li>';
143 146
			//special handling for flora malesiana TODO: possible better way to implement this case?
144 147
			}else{
145 148
				if ($name_used_in_source_link_to_show){
146 149
					$name_used_in_source_link_to_show = ' (name in source: '. $name_used_in_source_link_to_show . ')';
147 150
				}
148
				$out = $description . $sourceRefs . $name_used_in_source_link_to_show;
151
				$out = '<span class="'. html_class_atttibute_ref($element) . '"> '. $description . $sourceRefs . $name_used_in_source_link_to_show . $annotation_fkeys. '</span>';
149 152
			}
150 153
		}
151 154
	}
152 155

  
153 156
    //if no sources, print the description
154 157
    if(!isset($out)) {
155
      $out = $description;
158
      $out = '<span class="'. html_class_atttibute_ref($element) . '"> ' . $description . $annotation_fkeys. '</span>';
156 159
    }
157
    //printing annotations footnotes
158
    $out .=  theme('cdm_annotations_as_footnotekeys', $element, $feature_uuid);
160

  
159 161
/*
160 162
	if ($feature_uuid == UUID_NAME_USAGE){
161 163
		foreach($element->sources as $source){

Also available in: Unified diff