dropdown input-type can't be made a required field?

18 views
Skip to first unread message

Mariya M

unread,
Jul 25, 2019, 4:50:24 PM7/25/19
to DSpace Technical Support
Hi. 

I'm on JSPUI 5.9 and I'm trying to make dc.type a required field in input-forms.xml. 

dc.type uses a dropdown input-type with value-pairs. It looks like <required>You must fill this out.</required> does not work with the dropdown input-type. I can make other fields required this way, but not the dc.type field.

This limitation not mentioned in the documentation https://wiki.duraspace.org/display/DSDOC5x/Submission+User+Interface#SubmissionUserInterface-TheStructureofinput-forms.xml. Could anyone confirm that this is the case?

Thank you,

Mariya Maistrovskaya
Digital Publishing Librarian
University of Toronto Libraries

Claudia Jürgen

unread,
Jul 26, 2019, 4:18:35 AM7/26/19
to dspac...@googlegroups.com
Hello Mariya,

we work with 5.4+ and JSPUI and it works fine.

In the form you are actually using for the collection (you may have
configured multiple forms) do you got a field like this?
<field>
<dc-schema>dc</dc-schema>
<dc-element>type</dc-element>
<dc-qualifier></dc-qualifier>
<repeatable>false</repeatable>
<label>Type (DCMI Type)</label>
<input-type value-pairs-name="dcmi_types">dropdown</input-type>
<hint>Select the type(s) of content of the item. To select
more than one value in the list, you may have to hold down the "CTRL" or
"Shift" key.</hint>
<required>Please select a DCMI type.</required>
</field>

How exactly did you perform this customization? Do you have more than
the default form?

Hope this helps

Claudia Jürgen
--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia...@tu-dortmund.de
www.ub.tu-dortmund.de


Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.

Mariya M

unread,
Jul 29, 2019, 12:51:30 PM7/29/19
to DSpace Technical Support, Claudia Jürgen
Thank you, Claudia, for responding. Our form looks similar to yours and we use a default as well as customized forms.

However we were able to resolve the issue thanks to a tip from Kim Shepherd. The issue was with value-pairs used to populate this dropdown.

Copying his tip here in case anyone else runs into a similar problem. We added the N/A value pair and after that the dc.type mandatory status kicked in.

Kim: "... i suspect what might be happening is that even though it is required, the first value in the dropdown essentially becomes the default so it is not considered to have been skipped
the language value-pairs gets around this with a top value-pair that has no stored value:
<pair>
      <displayed-value>N/A</displayed-value>
      <stored-value></stored-value>
    </pair>

Thank you,

Mariya
--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ebacb204-9085-c25a-7c3e-f40a781012a9%40tu-dortmund.de.
Reply all
Reply to author
Forward
0 new messages