Thanks Tim. El viernes, 20 de diciembre de 2024 a la(s) 5:59:52 a.m. UTC+8, DSpace Technical Support escribió:
> 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 dspace-tech+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/4a205644-2e8b-4f2f-a878-e8b4f35b9cb4n%40googlegroups.com.