From e9d3aa2a824d9005ca672cd2aff0b93e5ba03b20 Mon Sep 17 00:00:00 2001 From: callumlewis05 Date: Fri, 31 Jul 2026 14:32:09 +0200 Subject: [PATCH] improvement(config): import from default config --- ui/src/config.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ui/src/config.js b/ui/src/config.js index 5ce193cc8..e329f5206 100644 --- a/ui/src/config.js +++ b/ui/src/config.js @@ -1,3 +1,5 @@ +import { DOCUMENT_TYPES } from "@inveniosoftware/react-invenio-app-ils"; + export const config = { APP: { LOGO_SRC: null, @@ -152,13 +154,13 @@ export const config = { maxEditable: 30, }, types: [ - { value: "BOOK", text: "Book", label: "Book", order: 1 }, - { value: "PROCEEDINGS", text: "Proceedings", label: "Proceedings", order: 2 }, - { value: "STANDARD", text: "Standard", label: "Standard", order: 3 }, - { value: "SERIAL_ISSUE", text: "Serial issue", label: "Serial issue", order: 4 }, - { value: "ARTICLE", text: "Article", label: "Article", order: 5 }, - { value: "MULTIMEDIA", text: "Multimedia", label: "Multimedia", order: 6 }, - { value: "THESIS", text: "Thesis", label: "Thesis", order: 7 }, + ...DOCUMENT_TYPES, + { + value: "THESIS", + text: "Thesis", + label: "Thesis", + order: DOCUMENT_TYPES.length + 1, + }, ], }, ILL_BORROWING_REQUESTS: {