Skip to content

Commit

Permalink
fix(samenwerkende-catalogi): rename description to abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Oct 26, 2023
1 parent 9e9a01f commit a8448c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"type": "customField",
"customField": "plugin::uniform-product-name.uniform-product-name"
},
"description": {
"abstract": {
"type": "text",
"required": true
}
Expand Down
2 changes: 1 addition & 1 deletion apps/pdc-frontend/src/query/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const GET_SAMENWERKENDECATALOGI_FETCH = gql(`
updatedAt
catalogiMeta {
uniformProductName
description
abstract
spatial {
scheme
resourceIdentifier
Expand Down
4 changes: 2 additions & 2 deletions packages/samenwerkende-catalogi/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type CatalogiMetaType = {
audience: AudienceType[];
onlineRequest: OnlineRequestType;
uniformProductName?: string;
description: string;
abstract: string;
};

type AudienceType = {
Expand Down Expand Up @@ -110,7 +110,7 @@ export const convertJsonToXML = (data: SamenWerkendeCatalogiDataType[], frontend
language: attributes.locale,
modified: attributes.updatedAt,
productId: id,
abstract: attributes.catalogiMeta?.description,
abstract: attributes.catalogiMeta?.abstract,
onlineAanvragen: attributes.catalogiMeta?.onlineRequest.type,
identifier,
spatial,
Expand Down

0 comments on commit a8448c7

Please sign in to comment.