Skip to content

Commit

Permalink
Added 'Copied From' list of concept set ids for concept set annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-odysseus authored and alex-odysseus committed Oct 29, 2024
1 parent 965b08d commit b121c02
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion js/pages/concept-sets/components/tabs/conceptset-annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ define([
},
sortable: false
},
{
title: ko.i18n('columns.originConceptSets', 'Origin Concept Sets'),
render: (d, t, r) => {
if (r.copiedFromConceptSetIds === null || r.copiedFromConceptSetIds === undefined) {
return 'N/A';
} else {
return `<p>${r.copiedFromConceptSetIds}</p>`
}
},
sortable: false
},
{
title: ko.i18n('columns.action', 'Action'),
sortable: false,
Expand All @@ -101,7 +112,7 @@ define([

objectMap(obj) {
const newObject = {};
const keysNotToParse = ['createdBy', 'createdDate', 'vocabularyVersion', 'conceptSetVersion', 'searchData'];
const keysNotToParse = ['createdBy', 'createdDate', 'vocabularyVersion', 'conceptSetVersion', 'copiedFromConceptSetIds', 'searchData'];
Object.keys(obj).forEach((key) => {
if (typeof obj[key] === 'string' && !keysNotToParse.includes(key)) {
newObject[key] = JSON.parse(obj[key] || null);
Expand Down

0 comments on commit b121c02

Please sign in to comment.