You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
- This XML file contains form definitions, each contained within its own
element. Each
element contains
elements that represent single pages of input. Each
element contains
elements with instructions for creating the fields on that page. This structure is mocked up below, for a single form with a single page.
<form name="traditional">
- The default form has a
attribute whose value is
. To change all submission forms throughout DSpace, edit the XML inside this form.
- To change a submission form for a specific collection, add a new
element with a new and unique collection-related value for the
attribute. (You can copy the XML from the default and edit as desired, as long as you change the
attribute value.)
- Once you've created your new
element, you will have to map it to your specific collection using the
section at the top of the XML:
<name-map collection-handle="default" form-name="traditional" />
- You'll need to create a new
element to "map" your collection's handle to the new
you just created.
- Create all appropriate
elements, numbering them sequentially starting from 1 in the
attribute. Within them, add individual
elements according to this template:
<dc-schema><dc></dc-schema>
<dc-element>identifier</dc-element>
<dc-qualifier>citation</dc-qualifier>
<repeatable>false</repeatable>
<input-type>onebox</input-type>
<hint>Enter the standard citation for the previously issued instance of this item.</hint>
<vocabulary></vocabulary>
- Stop and restart Tomcat (See Quick Restart in Rebuild+DSpace).
- The
element contains the textual hint displayed to the submitter about why the field is required. Leave it empty for optional fields.
- The
element is optional. It allows you to specify the controlled vocabulary (see Use Controlled Vocabularies for more information) that this field should select its values from. This field also has an optional
attribute. If closed is set to true, a user can only select values from the controlled vocabulary. By default, closed is set to false, which allows a user to also enter in free text if he/she chooses. For example:
<vocabulary closed="true">srsc</vocabulary>
- The name of the controlled vocabulary must correspond to the name of the XML file (without ".xml") which contains the vocabulary. So, in the above example,
references the vocabulary specified in the file located at dspace/config/controlled-vocabularies/srsc.xml
- Valid input types (for
) are:
- "date"
- "name" (two text boxes, labeled last and first name)
- "onebox" (a one-line textbox)
- "twobox" (two textboxes on a single line)
- "dropdown" (for which you must specify a
attribute referring to the
list of allowed values, see Change+a+form+value)
- "qualdrop_value" (a textbox, which is preceded by a "qualifying" dropdown of values. Requires a
attribute, similar to "dropdown". Also requires
is set to "true")
- "textarea"
- Setting the
element to "true" creates an "Add more" button, which allows you to add multiple values into that particular field. Examples of this include the authors and keywords fields in the standard DSpace submission process.