Skip to content

Commit

Permalink
New ExtraLicenseField for szn license
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarko committed Oct 13, 2023
1 parent 06dac68 commit aaaa47d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public enum ExtraLicenseField {
EXTRA_EMAIL (new EmailValidator(), true, "Please enter a valid email address.", null),
ORGANIZATION (new LengthValidator(), true, "Please enter organization."),
REQUIRED_ORGANIZATION (new RequiredValidator(), true, "Organization is required."),
INTENDED_USE (new LengthValidator(), true, "Please state your intended use of this item.");

INTENDED_USE (new LengthValidator(), true, "Please state your intended use of this item."),
ACA_ORG_NAME_AND_SEAT(new RequiredValidator(), true, "Please fill in the name and the seat of your academic institution organization name and seat.");
private Validator validator = null;
private Action action = null;
private boolean metadata = true;
Expand Down
4 changes: 4 additions & 0 deletions dspace-xmlui/src/main/webapp/i18n/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,8 @@
<message key="xmlui.ExtraLicenseField.LicenseForm.EXTRA_EMAIL">Ask user for another email address</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.ORGANIZATION">Ask user for organization (optional).</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.REQUIRED_ORGANIZATION">Ask user for organization (mandatory).</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.ACA_ORG_NAME_AND_SEAT">Ask for the name and seat
(address) of user's academic institution.</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.INTENDED_USE">Ask user for his intentions with the item.</message>

<!-- These keys will map to the labels for extra license fields during LicenseStep in submission -->
Expand All @@ -1950,6 +1952,8 @@
<message key="xmlui.ExtraLicenseField.submission.EXTRA_EMAIL">Email</message>
<message key="xmlui.ExtraLicenseField.submission.ORGANIZATION">Organization</message>
<message key="xmlui.ExtraLicenseField.submission.REQUIRED_ORGANIZATION">Organization</message>
<message key="xmlui.ExtraLicenseField.submission.ACA_ORG_NAME_AND_SEAT">Name and seat (address) of your
academic institution.</message>
<message key="xmlui.ExtraLicenseField.submission.INTENDED_USE">Intended use</message>

<!-- org.dspace.app.xmlui.administrative.item.FindItemForm -->
Expand Down
2 changes: 2 additions & 0 deletions dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1957,6 +1957,7 @@
<message key="xmlui.ExtraLicenseField.LicenseForm.EXTRA_EMAIL">Vyžádat si další e-mailovou adresu.</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.ORGANIZATION">Vyžádat si uživatelovu organizaci (volitelně).</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.REQUIRED_ORGANIZATION">Vyžádat si uživatelovu organizaci (povinně).</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.ACA_ORG_NAME_AND_SEAT">Zeptat se na název a sídlo vědecké instituce.</message>
<message key="xmlui.ExtraLicenseField.LicenseForm.INTENDED_USE">Vyžádat si plánované použití záznamu.</message>

<!-- These keys will map to the labels for extra license fields during LicenseStep in submission -->
Expand All @@ -1968,6 +1969,7 @@
<message key="xmlui.ExtraLicenseField.submission.EXTRA_EMAIL">E-mail</message>
<message key="xmlui.ExtraLicenseField.submission.ORGANIZATION">Organizace</message>
<message key="xmlui.ExtraLicenseField.submission.REQUIRED_ORGANIZATION">Organizace</message>
<message key="xmlui.ExtraLicenseField.submission.ACA_ORG_NAME_AND_SEAT">Název a sídlo vědecké instituce</message>
<message key="xmlui.ExtraLicenseField.submission.INTENDED_USE">Zamýšlené použití</message>

<!-- org.dspace.app.xmlui.administrative.item.FindItemForm -->
Expand Down

0 comments on commit aaaa47d

Please sign in to comment.