Verified Commit c97961f4 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Rework functions contents to allow review

parent 014b9259
Pipeline #9212 failed with stages
......@@ -173,7 +173,7 @@
}
})
},
getResourceInfo: function(resource) {
$.ajax({
url : "/documentInfo",
......@@ -200,12 +200,12 @@
if (digitalResources) {
for(var i=0; i < digitalResources.length; i++) {
Archive.showDigitalResource(parent, digitalResources[i], hidden);
Archive.mergeDigitalResourceRow(parent, digitalResources[i], hidden);
}
}
},
showDigitalResource: function(parent, digitalResource, hidden) {
mergeDigitalResourceRow: function(parent, digitalResource, hidden) {
template = this.archiveContentTemplate.clone();
template.children('span')
.addClass('document')
......@@ -225,7 +225,7 @@
if (digitalResource.relatedResource) {
for(var i=0; i < digitalResource.relatedResource.length; i++) {
Archive.showDigitalResource(template, digitalResource.relatedResource[i], hidden);
Archive.mergeDigitalResourceRow(template, digitalResource.relatedResource[i], hidden);
}
}
},
......@@ -271,11 +271,6 @@
$(smalls[2]).text(' ' + archive.originatingDate);
}
/*if (!archive.archivalProfileName && !archive.originatorArchiveId && !archive.originatingDate) {
var br = template.find('br');
br.remove();
}*/
BootstrapTree.addNode(parent, template, false);
},
......
Supports Markdown
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