Skip to content

Commit

Permalink
Canonical id set to ceasn:source for CTDL-ASN framework export
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristin committed Apr 24, 2019
1 parent 69f1911 commit 97a2539
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/resources/c-adapter/ceasn/ceasn.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ function cassFrameworkAsCeasn() {
f["ceterms:ctid"] = "ce-" + f["ceterms:ctid"];

if (f["@id"] != ceasnExportUriTransform(f["@id"])) {
if (f["ceasn:exactAlignment"] != null)
if (EcArray.isArray(f["ceasn:exactAlignment"])) {
f["ceasn:exactAlignment"].push(f["@id"]);
if (f["ceasn:source"] != null)
if (EcArray.isArray(f["ceasn:source"])) {
f["ceasn:source"].push(f["@id"]);
}
else {
f["ceasn:exactAlignment"] = [f["ceasn:exactAlignment"], f["@id"]];
f["ceasn:source"] = [f["ceasn:source"], f["@id"]];
}
else
f["ceasn:exactAlignment"] = f["@id"];
f["ceasn:source"] = f["@id"];
}
f["@id"] = ceasnExportUriTransform(f["@id"]);

Expand Down

0 comments on commit 97a2539

Please sign in to comment.