Skip to content

Commit

Permalink
Merge pull request #1206 from research-software-directory/1205-mentio…
Browse files Browse the repository at this point in the history
…n-title-limit

Increase character limit for mention title
  • Loading branch information
ewan-escience authored May 27, 2024
2 parents 1438562 + 7c56679 commit 0f8b7e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
6 changes: 3 additions & 3 deletions database/009-create-mention-table.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- SPDX-FileCopyrightText: 2021 - 2023 Ewan Cahen (Netherlands eScience Center) <[email protected]>
-- SPDX-FileCopyrightText: 2021 - 2023 Netherlands eScience Center
-- SPDX-FileCopyrightText: 2021 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]>
-- SPDX-FileCopyrightText: 2021 - 2024 Netherlands eScience Center
-- SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
-- SPDX-FileCopyrightText: 2022 dv4all
--
Expand Down Expand Up @@ -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,
Expand Down
20 changes: 14 additions & 6 deletions frontend/components/mention/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
},
Expand All @@ -57,16 +57,20 @@ export const mentionModal = {
validation: {
required: false,
maxLength: {
value: 1000,
message: 'Maximum length is 1000'
value: 50000,
message: 'Maximum length is 50000'
}
}
},
publisher: {
label: 'Publisher',
help: 'Name of publisher',
validation: {
required: false
required: false,
maxLength: {
value: 255,
message: 'Maximum length is 255'
}
}
},
journal: {
Expand All @@ -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: {
Expand Down

0 comments on commit 0f8b7e5

Please sign in to comment.