Hi Diego,

I don't believe this is currently supported in DSpace at this time.  DSpace 
assumes that each metadata field (e.g. dc.contributor.author) will only 
have one form field associated.  Associating multiple fields may cause odd 
behavior.

That said, maybe someone else on this list has found a way to work around 
this?

My only immediate thoughts would be to consider storing these values in 
separate "dc" metadata fields.  Otherwise, it'd likely require custom Java 
code to create a new type of form field which supports both a dropdown & 
text entry.

Tim

On Thursday, December 19, 2024 at 2:27:00 AM UTC-6 Diego Brice wrote:

> Hi!. I needed a form to add contributor.author from a drop-down list but 
> also to have the option to write the author's name in case it is not in the 
> list. So I defined the following fields:
>
> <row>
>                 <field>
>
>
> *                    <dc-schema>dc</dc-schema>                    
> <dc-element>contributor</dc-element>                    
> <dc-qualifier>author</dc-qualifier>*
>                     <repeatable>true</repeatable>
>                     <label>Autor</label>
>     <style>col-sm-4</style>
>                     *<input-type 
> value-pairs-name="autores">dropdown</input-type>*
>                     <hint>Nombre del autor.</hint>
>                     <required>Obligatorio</required>
>                 </field>
>                 <field>
>
>
> *                    <dc-schema>dc</dc-schema>                    
> <dc-element>contributor</dc-element>                    
> <dc-qualifier>author</dc-qualifier>*
>                     <repeatable>true</repeatable>
>                     <label>Autor</label>
>     <style>col-sm-4</style>
>                     *<input-type>onebox</input-type>*
>                     <hint>Nombre del autor.</hint>
>                     <required></required>
>                 </field>
>             </row> 
>
> Everything is OK if I set values for only one of those fields. If I set 
> values for both, the result is that the record only has the values from the 
> onebox field as you can see in the images.[image: figure1.png]
> [image: figure2.png]
>
> Thanks for any help!
>
> Diego
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/62e18a10-aa5f-42f9-ad78-5623eb2b8cc4n%40googlegroups.com.

Reply via email to