Skip to content

Commit

Permalink
Add precaching to CTDL-ASN concept export
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristin committed Feb 10, 2020
1 parent b55f5f4 commit 6b72201
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/c-adapter/ceasn/ceasn.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ function cassConceptSchemeAsCeasn(framework) {
cs.copyFrom(framework);
if (cs["skos:hasTopConcept"] == null) {
cs["skos:hasTopConcept"] = [];
repo.precache(cs["skos:hasTopConcept"], function() {});
}

var concepts = {};
Expand All @@ -533,6 +534,7 @@ function cassConceptSchemeAsCeasn(framework) {
concepts[cs["skos:hasTopConcept"][i]] = concepts[c.id] = c;
if (c["skos:narrower"]) {
function getSubConcepts(c) {
repo.precache(c["skos:narrower"], function() {});
for (var j = 0; j < c["skos:narrower"].length; j++) {
var subC = EcConcept.getBlocking(c["skos:narrower"][j]);
if (subC != null) {
Expand Down

0 comments on commit 6b72201

Please sign in to comment.