Skip to content

Commit

Permalink
serializer: including marketplace-related fields
Browse files Browse the repository at this point in the history
  • Loading branch information
M3nin0 committed Mar 7, 2024
1 parent 6637852 commit 5004784
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lib/DepositRecordSerializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class RDMDepositRecordSerializer extends DepositRecordSerializer {
locations: new LocationsFieldSerializer({
fieldpath: "metadata.locations.features",
}),
// Custom fields
// Custom fields - General
geo_work_programme_activity: new VocabularyField({
fieldpath: "metadata.geo_work_programme_activity",
deserializedDefault: "",
Expand All @@ -287,6 +287,15 @@ export class RDMDepositRecordSerializer extends DepositRecordSerializer {
relationship: new Field({
fieldpath: "relationship",
}),
// Custom fields - Marketplace
launch_url: new Field({
fieldpath: "metadata.marketplace.launch_url",
deserializedDefault: "",
}),
vendor_contact: new Field({
fieldpath: "metadata.marketplace.vendor_contact",
deserializedDefault: "",
}),
};
}

Expand Down

0 comments on commit 5004784

Please sign in to comment.