From 6b72201eeb3caefbbe29fa32e40f92e931d13f54 Mon Sep 17 00:00:00 2001 From: Kristin Date: Mon, 10 Feb 2020 13:55:49 -0500 Subject: [PATCH] Add precaching to CTDL-ASN concept export https://github.com/cassproject/cass-editor/issues/643 --- src/main/resources/c-adapter/ceasn/ceasn.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/c-adapter/ceasn/ceasn.js b/src/main/resources/c-adapter/ceasn/ceasn.js index 62d2024f3..edeceee92 100644 --- a/src/main/resources/c-adapter/ceasn/ceasn.js +++ b/src/main/resources/c-adapter/ceasn/ceasn.js @@ -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 = {}; @@ -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) {