Revision 97fada02
Added by Andreas Kohlbecker over 2 years ago
modules/cdm_dataportal/classes/footnotemanager.php | ||
---|---|---|
158 | 158 |
* @param $footnoteListKey |
159 | 159 |
* @param $object |
160 | 160 |
* |
161 |
* @return |
|
161 |
* @return bool|int|string
|
|
162 | 162 |
*/ |
163 | 163 |
private static function footnoteExists($footnoteListKey, $object) { |
164 | 164 |
foreach (self::$fnstore[$footnoteListKey] as $key => $fn) { |
src/main/java/eu/etaxonomy/dataportal/elements/BaseElement.java | ||
---|---|---|
107 | 107 |
|
108 | 108 |
public List<BaseElement> getFootNotes(){ |
109 | 109 |
return ElementUtils.baseElementsFromFootNoteListElements( |
110 |
getElement().findElements(By.xpath("//*[contains(@class, 'footnotes')]/span[contains(@class, 'footnote')]")) |
|
110 |
// NOTE: the training space character in 'footnote ' is important. Without it would also match the footnote-anchor! |
|
111 |
getElement().findElements(By.xpath("//*[contains(@class, 'footnotes')]/span[contains(@class, 'footnote ')]")) |
|
111 | 112 |
); |
112 | 113 |
} |
113 | 114 |
|
Also available in: Unified diff
ref #8543 more specific xpath for footnotes