I'm having the same sort of problem. 
We have a custom entity that I want to be linked in the submission form, 
being the field required and not repeatable.
However, I can type anything in the input box after selecting an entity, 
and also select multiple entities despite the field being not repeatable.

Is the desired behavior even possible or I will need to create some CT task 
to post-process the submitted form?

Em segunda-feira, 5 de junho de 2023 às 12:34:04 UTC-3, Jorge Costa 
escreveu:

> Im attempting to use entities . Person as author with the built in 
> relations etc
> When inserting an author I want the open text field to not allow 
> random/free text.
> I want the author insertion to be mandatory but only from the Person 
> Entity collection I have.
> This is what I have in my submission forms
> <form name="publicationStep">
>             <row>
>                 <relation-field>
>                     
> <relationship-type>isAuthorOfPublication</relationship-type>
>                     <search-configuration>person</search-configuration>
>                     <repeatable>true</repeatable>
>                     <label>Author</label>
>                     <hint>Enter the author's name (Family name, Given 
> names).</hint>
>                     <linked-metadata-field>
>                         <dc-schema>dc</dc-schema>
>                         <dc-element>contributor</dc-element>
>                         <dc-qualifier>author</dc-qualifier>
>                         <input-type>onebox</input-type>
>                     </linked-metadata-field>
>                     <externalsources>orcid</externalsources>
>                     <required></required>
>                     <!-- You may choose to validate author names via a 
> Regular Expression if it's appropriate for
>                          your institution. The below regex requires a 
> comma to be present in the author field.
>                          However, this is disabled by default to support 
> organizations as authors, etc. -->
>                     <!--<regex>\w+(,)+\w+</regex>-->
>                 </relation-field>
>             </row>
>
> This works but users can insert free text into the onebox ...
>
> If i however delete the the linked meta data field and attempt to select 2 
> authors , the "add more" option gets greyed out .... even though the field 
> is repeatable.
> If I attempt to select 2 or more authors at once via the looking glass on 
> the right when inserting a new submission ... it bugs out even more.
> You select 2 authors and when you check the full item page for details 
> after submitting , only ONE author and ONE relation.isAuthorOfPublication 
> field.
> It only adds one ....
>
> How do i remove the free text field , have dc.author filled , allow user 
> to only select from the person entity collection and be able to add more 
> than  1 author ?
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/85dafcdc-bb1a-47b4-9d02-37b863edf943n%40googlegroups.com.

Reply via email to