diff --git a/database/009-create-mention-table.sql b/database/009-create-mention-table.sql index 9fc2c1bb9..25e7e8b36 100644 --- a/database/009-create-mention-table.sql +++ b/database/009-create-mention-table.sql @@ -1,5 +1,5 @@ --- SPDX-FileCopyrightText: 2021 - 2023 Ewan Cahen (Netherlands eScience Center) --- SPDX-FileCopyrightText: 2021 - 2023 Netherlands eScience Center +-- SPDX-FileCopyrightText: 2021 - 2024 Ewan Cahen (Netherlands eScience Center) +-- SPDX-FileCopyrightText: 2021 - 2024 Netherlands eScience Center -- SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) -- SPDX-FileCopyrightText: 2022 dv4all -- @@ -32,7 +32,7 @@ CREATE TABLE mention ( doi CITEXT UNIQUE CHECK (doi ~ '^10(\.\w+)+/\S+$' AND LENGTH(doi) <= 255), doi_registration_date TIMESTAMPTZ, url VARCHAR(500) CHECK (url ~ '^https?://'), - title VARCHAR(500) NOT NULL, + title VARCHAR(3000) NOT NULL, authors VARCHAR(50000), publisher VARCHAR(255), publication_year SMALLINT, diff --git a/frontend/components/mention/config.ts b/frontend/components/mention/config.ts index 312b710bc..65fec1038 100644 --- a/frontend/components/mention/config.ts +++ b/frontend/components/mention/config.ts @@ -46,8 +46,8 @@ export const mentionModal = { message: 'Minimum length is 5' }, maxLength: { - value: 500, - message: 'Maximum length is 500' + value: 3000, + message: 'Maximum length is 3000' } } }, @@ -57,8 +57,8 @@ export const mentionModal = { validation: { required: false, maxLength: { - value: 1000, - message: 'Maximum length is 1000' + value: 50000, + message: 'Maximum length is 50000' } } }, @@ -66,7 +66,11 @@ export const mentionModal = { label: 'Publisher', help: 'Name of publisher', validation: { - required: false + required: false, + maxLength: { + value: 255, + message: 'Maximum length is 255' + } } }, journal: { @@ -84,7 +88,11 @@ export const mentionModal = { label: 'Page', help: 'Page or page range', validation: { - required: false + required: false, + maxLength: { + value: 50, + message: 'Maximum length is 50' + } } }, mentionType: {