diff --git a/src/breeding-insight/model/Sort.ts b/src/breeding-insight/model/Sort.ts index 08e81aa2..f3ce7269 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 5415fe46..15ffa51c 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 b47df568..ff9d9a38 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, };