Skip to content
Snippets Groups Projects

F create xml

Merged Henrik tom Wörden requested to merge f-create-xml into dev
4 files
+ 78
17
Compare changes
  • Side-by-side
  • Inline

Files

+ 5
14
@@ -627,20 +627,11 @@ function getPropertyFromElement(propertyelement, names = undefined) {
if (property.list) {
// list datatypes
let listel;
if (property.reference) {
// list of referernces
listel = findElementByConditions(valel, x => x.classList.contains("caosdb-f-reference-value"),
x => x.classList.contains("caosdb-preview-container"));
for (var j = 0; j < listel.length; j++) {
property.value.push(getIDfromHREF(listel[j]));
}
} else {
// list of anything but references
listel = findElementByConditions(valel, x => x.classList.contains("list-inline-item"),
x => x.classList.contains("caosdb-preview-container"));
for (var j = 0; j < listel.length; j++) {
property.value.push(listel[j].textContent);
}
// list of anything but references
listel = findElementByConditions(valel, x => x.classList.contains("caosdb-f-property-single-raw-value"),
x => x.classList.contains("caosdb-preview-container"));
for (var j = 0; j < listel.length; j++) {
property.value.push(listel[j].textContent);
}
} else if (property.reference && valel.getElementsByTagName("a")[0]) {
// reference datatypes
Loading