Commit 7325b1a2 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

feat: remove getter for annotation body text

parent 8ba887d8
......@@ -139,14 +139,12 @@ export default {
annotations.forEach((annotation) => {
const id = this.getAnnotationId(annotation);
const text = this.getAnnotationText(id);
identifiers.push({
id,
contenttype: annotation.body['x-content-type'],
description: annotation.body.value,
selected: this.config.annotations.show,
text,
});
});
......@@ -167,21 +165,6 @@ export default {
return split[split.length - 1];
},
/**
* match annotation against it's text counterpart
* caller: *filterAnnotations()*
*
* @param string id
*
* @return string
*/
getAnnotationText(id) {
const element = document.getElementById(id);
return element !== null
? element.innerText
: false;
},
/**
* get annotations of the current item
* caller: *getItemData()*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment