From 5a08d96f48ce1c03e5af6487639ea676a0d0a44c Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Fri, 26 Jul 2024 09:46:53 +0200 Subject: [PATCH 1/2] MIR-1333 Added placeholder for username input field in new-author.xed --- .../META-INF/resources/authorization/new-author-includes.xed | 4 ++-- .../src/main/resources/config/mir/messages_de.properties | 1 + .../src/main/resources/config/mir/messages_en.properties | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mir-module/src/main/resources/META-INF/resources/authorization/new-author-includes.xed b/mir-module/src/main/resources/META-INF/resources/authorization/new-author-includes.xed index dbcc35a9a2..4dfc932f55 100644 --- a/mir-module/src/main/resources/META-INF/resources/authorization/new-author-includes.xed +++ b/mir-module/src/main/resources/META-INF/resources/authorization/new-author-includes.xed @@ -7,7 +7,7 @@ + required="true" matches="[a-z0-9\._-]*" maxlength="16" placeholder="mir.register.username.placeholder"/> @@ -45,4 +45,4 @@ - \ No newline at end of file + diff --git a/mir-module/src/main/resources/config/mir/messages_de.properties b/mir-module/src/main/resources/config/mir/messages_de.properties index 2944979edb..b3b5d1b88c 100644 --- a/mir-module/src/main/resources/config/mir/messages_de.properties +++ b/mir-module/src/main/resources/config/mir/messages_de.properties @@ -605,6 +605,7 @@ mir.publisher.station = Sender: mir.publisherOrganization = Herausgebende Einrichtung mir.register.email = your.mail@address.de mir.register.realName = Vorname Nachname +mir.register.username.placeholder = maximal 16 Zeichen, erlaubte Zeichen sind a-z, 0-9 sowie ._- mir.relatedItem = Verbundene Quelle mir.relatedItem.alreadyLinked = Das ausgew\u00E4hlte Dokument wurde bereits mit diesem Dokument verkn\u00FCpft. mir.relatedItem.doesNotExist = Referenz kann nicht angezeigt werden oder wurde gel\u00F6scht diff --git a/mir-module/src/main/resources/config/mir/messages_en.properties b/mir-module/src/main/resources/config/mir/messages_en.properties index 25d9b053e1..3fe9e76eab 100644 --- a/mir-module/src/main/resources/config/mir/messages_en.properties +++ b/mir-module/src/main/resources/config/mir/messages_en.properties @@ -864,3 +864,4 @@ subselect.category.cancel = Cancel subselect.category.title = Choose category user.profile.id.orcid = Your ORCID iD +mir.register.username.placeholder = maximum of 16 characters, allowed characters are a-z, 0-9 and ._- From 4a92d243260ddbbb6fdb2f4bd39793109cf59106 Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Wed, 31 Jul 2024 08:21:08 +0200 Subject: [PATCH 2/2] MIR-1333 Changed position of i18n --- mir-module/src/main/resources/config/mir/messages_en.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mir-module/src/main/resources/config/mir/messages_en.properties b/mir-module/src/main/resources/config/mir/messages_en.properties index 3fe9e76eab..f4c131f7d5 100644 --- a/mir-module/src/main/resources/config/mir/messages_en.properties +++ b/mir-module/src/main/resources/config/mir/messages_en.properties @@ -580,6 +580,7 @@ mir.publisher.station = Broadcasting Station: mir.publisherOrganization = Publishing organization mir.register.email = your.mail@address.com mir.register.realName = First name Surname +mir.register.username.placeholder = maximum of 16 characters, allowed characters are a-z, 0-9 and ._- mir.relatedItem = Related item mir.relatedItem.alreadyLinked = The currently selected document is already linked to this document. mir.relatedItem.doesNotExist = Reference can not be displayed or was deleted @@ -864,4 +865,3 @@ subselect.category.cancel = Cancel subselect.category.title = Choose category user.profile.id.orcid = Your ORCID iD -mir.register.username.placeholder = maximum of 16 characters, allowed characters are a-z, 0-9 and ._-