From 5f29910823b6a7f02249a965267029d44fb60a6b Mon Sep 17 00:00:00 2001 From: "dr.phillips" Date: Mon, 8 Jun 2026 10:37:51 -0400 Subject: [PATCH] [BI-2878] retreive External UID from External Reference, and display it. --- src/breeding-insight/model/Sort.ts | 1 + src/breeding-insight/utils/GermplasmUtils.ts | 1 + src/components/germplasm/GermplasmTable.vue | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/src/breeding-insight/model/Sort.ts b/src/breeding-insight/model/Sort.ts index 08e81aa2d..f3ce72691 100644 --- a/src/breeding-insight/model/Sort.ts +++ b/src/breeding-insight/model/Sort.ts @@ -168,6 +168,7 @@ export enum GermplasmSortField { Pedigree = "pedigree", FemaleParent = "femaleParentGID", MaleParent = "maleParentGID", + ExternalUID = "externalUID", CreatedDate = "createdDate", UserName = "createdByUserName" } diff --git a/src/breeding-insight/utils/GermplasmUtils.ts b/src/breeding-insight/utils/GermplasmUtils.ts index 5415fe46d..15ffa51c7 100644 --- a/src/breeding-insight/utils/GermplasmUtils.ts +++ b/src/breeding-insight/utils/GermplasmUtils.ts @@ -18,6 +18,7 @@ import moment from "moment"; import {Germplasm} from "@/breeding-insight/brapi/model/germplasm"; import {MOMENT_BRAPI_DATE_FORMAT} from "@/breeding-insight/utils/BrAPIDateTime"; +import {ExternalReferences} from "@/breeding-insight/brapi/model/externalReferences"; // The moment.js interpretable format for Date values sent and received via the BI API. export const MOMENT_DATE_PERSISTED_FORMAT = 'DD/MM/YYYY h:mm:ss'; diff --git a/src/components/germplasm/GermplasmTable.vue b/src/components/germplasm/GermplasmTable.vue index b47df5684..ff9d9a385 100644 --- a/src/components/germplasm/GermplasmTable.vue +++ b/src/components/germplasm/GermplasmTable.vue @@ -47,6 +47,9 @@ v-bind:germplasmGID="Pedigree.parsePedigreeStringWithUnknowns(props.row.data.pedigree,props.row.data.additionalInfo.femaleParentUnknown,props.row.data.additionalInfo.maleParentUnknown, props.row.data.accessionNumber).maleParent" > + + {{ GermplasmUtils.getExternalUID(props.row.data) }} + {{ GermplasmUtils.getCreatedDate(props.row.data) }} @@ -134,6 +137,7 @@ export default class GermplasmTable extends Vue { 'seedSource': GermplasmSortField.SeedSource, 'femaleParentGID': GermplasmSortField.FemaleParent, 'maleParentGID': GermplasmSortField.MaleParent, + 'externalUID' : GermplasmSortField.ExternalUID, 'createdDate': GermplasmSortField.CreatedDate, 'createdByUserName': GermplasmSortField.UserName, };