mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4650 9c30dcfa-912a-0410-8fc2-9e0234be79fd
136 lines
32 KiB
Plaintext
136 lines
32 KiB
Plaintext
|
||
h1. DSpace System Documentation: Customizing and Configuring Submission User Interface
|
||
|
||
This page explains various customization and configuration options that are available within DSpace for the Item Submission user interface.
|
||
|
||
h2. Understanding the Submission Configuration File
|
||
|
||
The _\[dspace\]/config/item-submission.xml_ contains the submission configurations for _both_ the DSpace JSP user interface (JSPUI) or the DSpace XML user interface (XMLUI or Manakin). This configuration file contains detailed documentation within the file itself, which should help you better understand how to best utilize it.
|
||
|
||
h3. The Structure of _item-submission.xml_
|
||
{code}<item-submission>
|
||
<!-- Where submission processes are mapped to specific Collections -->
|
||
<submission-map>
|
||
<name-map collection-handle="default" submission-name="traditional" /> ...
|
||
</submission-map>
|
||
<!-- Where "steps" which are used across many submission processes can be defined in a
|
||
single place. They can then be referred to by ID later. -->
|
||
<step-definitions>
|
||
<step id="collection">
|
||
<processing-class>org.dspace.submit.step.SelectCollectionStep</process;/processing-class>
|
||
<workflow-editable>false</workflow-editable>
|
||
</step>
|
||
...
|
||
</step-definitions>
|
||
<!-- Where actual submission processes are defined and given names. Each <submission-process> has
|
||
many <step> nodes which are in the order that the steps should be in.-->
|
||
<submission-definitions> <submission-process name="traditional">
|
||
...
|
||
<!-- Step definitions appear here! -->
|
||
</submission-process>
|
||
...
|
||
</submission-definitions>
|
||
</item-submission> {code}
|
||
Because this file is in XML format, you should be familiar with XML before editing this file. By default, this file contains the "traditional" Item Submission Process for DSpace, which consists of the following Steps (in this order):
|
||
|
||
_Select Collection -> Initial Questions -> Describe -> Upload -> Verify -> License -> Complete_
|
||
|
||
If you would like to customize the steps used or the ordering of the steps, you can do so within the _<submission-definition>_ section of the _item-submission.xml_ .
|
||
|
||
In addition, you may also specify different Submission Processes for different DSpace Collections. This can be done in the _<submission-map>_ section. The _item-submission.xml_ file itself documents the syntax required to perform these configuration changes.
|
||
|
||
|
||
h3. Defining Steps (_<step>_) within the _item-submission.xml_
|
||
|
||
This section describes how Steps of the Submission Process are defined within the _item-submission.xml_.
|
||
|
||
h4. Where to place your _<step>_ definitions
|
||
|
||
_<step>_ definitions can appear in one of two places within the _item-submission.xml_ configuration file.
|
||
|
||
# Within the _<step-definitions>_ section
|
||
#* This is for globally defined _<step>_ definitions (i.e. steps which are used in multiple _<submission-process>_ definitions). Steps defined in this section *must* define a unique _id_ which can be used to reference this step.
|
||
#* For example: {code}<step-definitions>
|
||
<step id="custom-step">
|
||
...
|
||
</step>
|
||
...
|
||
</step-definitions>{code}
|
||
#* The above step definition could then be referenced from within a _<submission-process>_ as simply _<step id="custom-step"/>_
|
||
# Within a specific _<submission-process>_ definition
|
||
#* This is for steps which are specific to a single _<submission-process>_ definition.
|
||
#* For example: {code}<submission-process>
|
||
<step>
|
||
...
|
||
</step>
|
||
</submission-process>{code}
|
||
|
||
h4. The ordering of _<step>_ definitions *matters*!
|
||
|
||
The ordering of the _<step>_ tags within a _<submission-process>_ definition directly corresponds to the order in which those steps will appear!
|
||
|
||
For example, the following defines a Submission Process where the _License_ step directly precedes the _Initial Questions_ step (more information about the structure of the information under each <step> tag can be found in the section on Structure of the <step> Definition below):
|
||
{code}<submission-process>
|
||
<!--Step 1 will be to Sign off on the License-->
|
||
<step>
|
||
<heading>submit.progressbar.license</heading>
|
||
<processing-class>org.dspace.submit.step.LicenseStep</processing-classing-class>
|
||
<jspui-binding>org.dspace.app.webui.submit.step.JSPLicenseStep</jspui-binding>
|
||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.LicenseStenseStep</xmlui-binding>
|
||
<workflow-editable>false</workflow-editable>
|
||
</step>
|
||
<!--Step 2 will be to Ask Initial Questions-->
|
||
<step>
|
||
<heading>submit.progressbar.initial-questions</heading>
|
||
<processing-class>org.dspace.submit.step.InitialQuestionsStep</process;/processing-class>
|
||
<jspui-binding>org.dspace.app.webui.submit.step.JSPInitialQuestionsSteonsStep</jspui-binding>
|
||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.InitialQutialQuestionsStep</xmlui-binding>
|
||
<workflow-editable>true</workflow-editable>
|
||
</step>
|
||
...[other steps]...
|
||
</submission-process> {code}
|
||
|
||
h4. Structure of the <step> Definition
|
||
|
||
The same <step> definition is used by both the DSpace JSP user interface (JSPUI) an the DSpace XML user interface (XMLUI or Manakin). Therefore, you will notice each <step> definition contains information specific to each of these two interfaces.
|
||
|
||
The structure of the <step> Definition is as follows:
|
||
{code}<step>
|
||
<heading>submit.progressbar.describe</heading>
|
||
<processing-class>org.dspace.submit.step.DescribeStep</processing-classing-class>
|
||
<jspui-binding>org.dspace.app.webui.submit.step.JSPDescribeStep</jspuilt;/jspui-binding>
|
||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.DescribeScribeStep</xmlui-binding>
|
||
<workflow-editable>true</workflow-editable>
|
||
</step>{code}
|
||
Each _step_ contains the following elements. The required elements are so marked:
|
||
|
||
* **heading**: Partial I18N key (defined in _Messages.properties_ for JSPUI or _messages.xml_ for XMLUI) which corresponds to the text that should be displayed in the submission Progress Bar for this step. This partial I18N key is prefixed within either the Messages.properties or messages.xml file, depending on the interface you are using. Therefore, to find the actual key, you will need to search for the partial key with the following prefix:
|
||
** XMLUI: prefix is _xmlui.Submission._ (e.g. "xmlui.Submission.submit.progressbar.describe" for 'Describe' step)
|
||
** JSPUI: prefix is _jsp._ (e.g. "jsp.submit.progressbar.describe" for 'Describe' step)_The 'heading' need not be defined if the step should not appear in the progress bar (e.g. steps which perform automated processing, i.e. non-interactive, should not appear in the progress bar)._
|
||
* **processing-class*_(Required)_*: Full Java path to the Processing Class for this Step. This Processing Class _must_ perform the primary processing of any information gathered in this step, _for both the XMLUI and JSPUI_. All valid step processing classes must extend the abstract `_org.dspace.submit.AbstractProcessingStep_` class (or alternatively, extend one of the pre-existing step processing classes in _org.dspace.submit.step.*_)
|
||
* **jspui-binding**: Full Java path of the JSPUI "binding" class for this Step. This "binding" class should initialize and call the appropriate JSPs to display the step's user interface. A valid JSPUI "binding" class _must_ extend the abstract `_org.dspace.app.webui.submit.JSPStep_` class. _This property need not be defined if you are using the XMLUI interface, or for steps which only perform automated processing, i.e. non-interactive steps._
|
||
* **xmlui-binding**: Full Java path of the XMLUI "binding" class for this Step. This "binding" class should generate the Manakin XML (DRI document) necessary to generate the step's user interface. A valid XMLUI "binding" class _must_ extend the abstract `_org.dspace.app.xmlui.submission.AbstractSubmissionStep_` class. _This property need not be defined if you are using the JSPUI interface, or for steps which only perform automated processing, i.e. non-interactive steps._
|
||
* **workflow-editable**: Defines whether or not this step can be edited during the _Edit Metadata_ process with the DSpace approval/rejection workflow process. Possible values include _true_ and _false_. If undefined, defaults to _true_ (which means that workflow reviewers would be allowed to edit information gathered during that step).
|
||
|
||
|
||
|
||
h2. Reordering/Removing Submission Steps
|
||
|
||
The removal of existing steps and reordering of existing steps is a relatively easy process!
|
||
|
||
*Reordering steps*
|
||
|
||
# Locate the _<submission-process>_ tag which defines the Submission Process that you are using. If you are unsure which Submission Process you are using, it's likely the one with _name="traditional"_, since this is the traditional DSpace submission process.
|
||
# Reorder the _<step>_ tags within that _<submission-process>_ tag. Be sure to move the _entire__<step>_ tag (i.e. everything between and including the opening _<step>_ and closing _</step>_ tags).
|
||
#* _Hint #1:_ The _<step>_ defining the _Review/Verify_ step only allows the user to review information from steps which appear *before* it. So, it's likely you'd want this to appear as one of your last few steps
|
||
#* _Hint #2:_ If you are using it, the _<step>_ defining the _Initial Questions_ step should always appear *before* the _Upload_ or _Describe_ steps since it asks questions which help to set up those later steps.
|
||
*Removing one or more steps*
|
||
|
||
# Locate the _<submission-process>_ tag which defines the Submission Process that you are using. If you are unsure which Submission Process you are using, it's likely the one with _name="traditional"_, since this is the traditional DSpace submission process.
|
||
# Comment out (i.e. surround with <!-- and -->) the _<step>_ tags which you want to remove from that _<submission-process>_ tag. Be sure to comment out the _entire__<step>_ tag (i.e. everything between and including the opening _<step>_ and closing _</step>_ tags).
|
||
#* _Hint #1:_ You cannot remove the _Select a Collection_ step, as an DSpace Item cannot exist without belonging to a Collection.
|
||
#* _Hint #2:_ If you decide to remove the _<step>_ defining the _Initial Questions_ step, you should be aware that this may affect your _Describe_ and _Upload_ steps! The _Initial Questions_ step asks questions which help to initialize these later steps. If you decide to remove the _Initial Questions_ step you may wish to create a custom, automated step which will provide default answers for the questions asked!
|
||
|
||
h2. Assigning a custom Submission Process to a Collection
|
||
|
||
Assigning a custom submission process to a Collection in DSpace involves working with the _submission-map_ section of the _item-submission.xml_. For a review of the structure of the _item-submission.xml_ see the section above on Understanding the Submission Configuration File.
|
||
|
||
Each _name-map_ element within _submission-map_ associates a collection with the name of a submission definition. Its _collection-handle_ attribute is the Handle of the collection. Its _submission-name_ attribute is the submission definition name, which must match the _name_ attribute of a _submission-process_ element (in the _submission-definitions_ section of _item-submission.xml_.
|
||
|
||
For example, the following fragment shows how the collection with handle "12345.6789/42" is assigned the "custom" submission process:
|
||
{code}<submission-map>
|
||
<name-map collection-handle=" 12345.6789/42" submission-name="
|
||
custom" />
|
||
...
|
||
</submission-map>
|
||
|
||
<submission-definitions>
|
||
<submission-process name="
|
||
custom">
|
||
...
|
||
</submission-definitions>
|
||
{code}
|
||
It's a good idea to keep the definition of the _default_ name-map from the example _input-forms.xml_ so there is always a default for collections which do not have a custom form set.
|
||
|
||
h3. Getting A Collection's Handle
|
||
|
||
You will need the _handle_ of a collection in order to assign it a custom form set. To discover the handle, go to the "Communities & Collections" page under "*Browse*" in the left-hand menu on your DSpace home page. Then, find the link to your collection. It should look something like:
|
||
{code}
|
||
http://myhost.my.edu/dspace/handle/
|
||
12345.6789/42{code}
|
||
The underlined part of the URL is the handle. It should look familiar to any DSpace administrator. That is what goes in the _collection-handle_ attribute of your _name-map_ element.
|
||
|
||
|
||
|
||
h2. Custom Metadata-entry Pages for Submission
|
||
|
||
h3. Introduction
|
||
|
||
This section explains how to customize the Web forms used by submitters and editors to enter and modify the metadata for a new item. These metadata web forms are controlled by the _Describe_ step within the Submission Process. However, they are also configurable via their own XML configuration file (_input-forms.xml_).
|
||
|
||
You can customize the "default" metadata forms used by all collections, and also create alternate sets of metadata forms and assign them to specific collections. In creating custom metadata forms, you can choose:
|
||
|
||
* The number of metadata-entry pages.
|
||
* Which fields appear on each page, and their sequence.
|
||
* Labels, prompts, and other text associated with each field.
|
||
* List of available choices for each menu-driven field.
|
||
*N.B.*The cosmetic and ergonomic details of metadata entry fields remain the same as the fixed metadata pages in previous DSpace releases, and can only be altered by modifying the appropriate stylesheet and JSP pages.
|
||
|
||
All of the custom metadata-entry forms for a DSpace instance are controlled by a single XML file, _input-forms.xml_, in the _config_ subdirectory under the DSpace home. DSpace comes with a sample configuration that implements the traditional metadata-entry forms, which also serves as a well-documented example. The rest of this section explains how to create your own sets of custom forms.
|
||
|
||
|
||
h3. Describing Custom Metadata Forms
|
||
|
||
The description of a set of pages through which submitters enter their metadata is called a _form_ (although it is actually a set of forms, in the HTML sense of the term). A form is identified by a unique symbolic _name_. In the XML structure, the _form_ is broken down into a series of _pages_: each of these represents a separate Web page for collecting metadata elements.
|
||
|
||
To set up one of your DSpace collections with customized submission forms, first you make an entry in the _form-map_. This is effectively a table that relates a collection to a form set, by connecting the collection's _Handle_ to the form name. Collections are identified by handle because their names are mutable and not necessarily unique, while handles are unique and persistent.
|
||
|
||
A special map entry, for the collection handle "default", defines the _default_ form set. It applies to all collections which are not explicitly mentioned in the map. In the example XML this form set is named _traditional_ (for the "traditional" DSpace user interface) but it could be named anything.
|
||
|
||
|
||
h3. The Structure of _input-forms.xml_
|
||
|
||
The XML configuration file has a single top-level element, _input-forms_, which contains three elements in a specific order. The outline is as follows:
|
||
{code}
|
||
<input-forms>
|
||
|
||
<-- Map of Collections to Form Sets -->
|
||
<form-map>
|
||
<name-map collection-handle="default" form-name="traditional"
|
||
/>
|
||
...
|
||
</form-map>
|
||
|
||
<-- Form Set Definitions -->
|
||
<form-definitions>
|
||
<form name="traditional">
|
||
...
|
||
</form-definitions>
|
||
|
||
<-- Name/Value Pairs used within Multiple Choice Widgets
|
||
-->
|
||
<form-value-pairs>
|
||
<value-pairs value-pairs-name="common_iso_languages"
|
||
dc-term="language_iso">
|
||
...
|
||
</form-value-pairs>
|
||
</input-forms>
|
||
{code}
|
||
h4. Adding a Collection Map
|
||
|
||
Each _name-map_ element within _form-map_ associates a collection with the name of a form set. Its _collection-handle_ attribute is the Handle of the collection, and its _form-name_ attribute is the form set name, which must match the _name_ attribute of a _form_ element.
|
||
|
||
For example, the following fragment shows how the collection with handle "12345.6789/42" is attached to the "TechRpt" form set:
|
||
{code}
|
||
<form-map>
|
||
<name-map collection-handle=" 12345.6789/42" form-name=" TechRpt"
|
||
/>
|
||
...
|
||
</form-map>
|
||
|
||
<form-definitions>
|
||
<form name="
|
||
TechRept">
|
||
...
|
||
</form-definitions>
|
||
{code}
|
||
It's a good idea to keep the definition of the _default_ name-map from the example _input-forms.xml_ so there is always a default for collections which do not have a custom form set.
|
||
|
||
h5. Getting A Collection's Handle
|
||
|
||
You will need the _handle_ of a collection in order to assign it a custom form set. To discover the handle, go to the "Communities & Collections" page under "*Browse*" in the left-hand menu on your DSpace home page. Then, find the link to your collection. It should look something like:
|
||
{code}
|
||
http://myhost.my.edu/dspace/handle/
|
||
12345.6789/42{code}
|
||
The underlined part of the URL is the handle. It should look familiar to any DSpace administrator. That is what goes in the _collection-handle_ attribute of your _name-map_ element.
|
||
|
||
|
||
|
||
h4. Adding a Form Set
|
||
|
||
You can add a new form set by creating a new _form_ element within the _form-definitions_ element. It has one attribute, _name_, which as seen above must match the value of the _name-map_ for the collections it is to be used for.
|
||
|
||
h5. Forms and Pages
|
||
|
||
The content of the _form_ is a sequence of _page_ elements. Each of these corresponds to a Web page of forms for entering metadata elements, presented in sequence between the initial "Describe" page and the final "Verify" page (which presents a summary of all the metadata collected).
|
||
|
||
A _form_ must contain at least one and at most six pages. They are presented in the order they appear in the XML. Each _page_ element must include a _number_ attribute, that should be its sequence number, e.g.
|
||
{code}
|
||
<page number="1">
|
||
{code}
|
||
The _page_ element, in turn, contains a sequence of _field_ elements. Each field defines an interactive dialog where the submitter enters one of the Dublin Core metadata items.
|
||
|
||
|
||
h5. Composition of a Field
|
||
|
||
Each _field_ contains the following elements, in the order indicated. The required sub-elements are so marked:
|
||
|
||
* **dc-schema*_(Required)_*: Name of metadata schema employed, e.g. _dc_ for Dublin Core. This value must match the value of the _schema_ element defined in _dublin-core-types.xml_
|
||
* **dc-element*_(Required)_*: Name of the Dublin Core element entered in this field, e.g. _contributor_.
|
||
* **dc-qualifier**: Qualifier of the Dublin Core element entered in this field, e.g. when the field is _contributor.advisor_ the value of this element would be _advisor_. Leaving this out means the input is for an unqualified DC element.
|
||
* **repeatable**: Value is _true_ when multiple values of this field are allowed, _false_ otherwise. When you mark a field repeatable, the UI servlet will add a control to let the user ask for more fields to enter additional values. Intended to be used for arbitrarily-repeating fields such as subject keywords, when it is impossible to know in advance how many input boxes to provide.
|
||
* **label*_(Required)_*: Text to display as the label of this field, describing what to enter, e.g. "_Your Advisor's Name_".
|
||
* **input-type*_(Required)_*: Defines the kind of interactive widget to put in the form to collect the Dublin Core value. Content must be one of the following keywords:
|
||
** *onebox* -- A single text-entry box.
|
||
** *twobox* -- A pair of simple text-entry boxes, used for _repeatable_ values such as the DC _subject_ item. _Note:_ The 'twobox' input type is rendered the same as a 'onebox' in the XML-UI, but both allow for ease of adding multiple values.
|
||
** *textarea* -- Large block of text that can be entered on multiple lines, e.g. for an abstract.
|
||
** *name* -- Personal name, with separate fields for family name and first name. When saved they are appended in the format 'LastName, FirstName'
|
||
** *date* -- Calendar date. When required, demands that at least the year be entered.
|
||
** *series* -- Series/Report name and number. Separate fields are provided for series name and series number, but they are appended (with a semicolon between) when saved.
|
||
** *dropdown* -- Choose value(s) from a "drop-down" menu list. *Note:* You must also include a value for the _value-pairs-name_ attribute to specify a list of menu entries from which to choose. Use this to make a choice from a restricted set of options, such as for the _language_ item.
|
||
** *qualdrop_value* -- Enter a "qualified value", which includes _both_ a qualifier from a drop-down menu and a free-text value. Used to enter items like alternate identifiers and codes for a submitted item, e.g. the DC _identifier_ field. *Note:* As for the _dropdown_ type, you must include the _value-pairs-name_ attribute to specify a menu choice list.
|
||
** *list* -- Choose value(s) from a checkbox or radio button list. If the _repeatable_ attribute is set to _true_, a list of checkboxes is displayed. If the _repeatable_ attribute is set to _false_, a list of radio buttons is displayed. *Note:* You must also include a value for the _value-pairs-name_ attribute to specify a list of values from which to choose.
|
||
* **hint*_(Required)_*: Content is the text that will appear as a "hint", or instructions, next to the input fields. Can be left empty, but it must be present.
|
||
* **required**: When this element is included with any content, it marks the field as a required input. If the user tries to leave the page without entering a value for this field, that text is displayed as a warning message. For example, _<required>You must enter a title.</required> Note that leaving the_ required element empty will _not_ mark a field as required, e.g.:_<required></required>_
|
||
* **visibility**: When this optional element is included with a value, it restricts the visibility of the field to the scope defined by that value. If the element is missing or empty, the field is visible in all scopes. Currently supported scopes are:
|
||
** *workflow* : the field will only be visible in the workflow stages of submission. This is good for hiding difficult fields for users, such as subject classifications, thereby easing the use of the submission system.
|
||
** *submit* : the field will only be visible in the initial submission, and not in the workflow stages. In addition, you can decide which type of restriction apply: read-only or full hidden the field (default behaviour) using the _otherwise_ attribute of the _visibility_ XML element. For example:_<visibility otherwise="readonly">workflow</visibility>_ Note that it is considered a configuration error to limit a field's scope while also requiring it - an exception will be generated when this combination is detected.
|
||
Look at the example _input-forms.xml_ and experiment with a a trial custom form to learn this specification language thoroughly. It is a very simple way to express the layout of data-entry forms, but the only way to learn all its subtleties is to use it.
|
||
|
||
For the use of controlled vocabularies see the Configuring Controlled Vocabularies section.
|
||
|
||
|
||
h5. Automatically Elided Fields
|
||
|
||
You may notice that some fields are automatically skipped when a custom form page is displayed, depending on the kind of item being submitted. This is because the DSpace user-interface engine skips Dublin Core fields which are not needed, according to the initial description of the item. For example, if the user indicates there are no alternate titles on the first "Describe" page (the one with a few checkboxes), the input for the _title.alternative_ DC element is automatically elided, _even on custom submission pages._
|
||
|
||
When a user initiates a submission, DSpace first displays what we'll call the "initial-questions page". By default, it contains three questions with check-boxes:
|
||
# *The item has more than one title, e.g. a translated title* Controls _title.alternative_ field.
|
||
# *The item has been published or publicly distributed before* Controls DC fields:
|
||
#* _date.issued_
|
||
#* _publisher_
|
||
#* _identifier.citation_
|
||
# *The item consists of more than one file*_Does not affect any metadata input fields._ The answers to the first two questions control whether inputs for certain of the DC metadata fields will displayed, even if they are defined as fields in a custom page. Conversely, if the metadata fields controlled by a checkbox are not mentioned in the custom form, the checkbox is elided from the initial page to avoid confusing or misleading the user.
|
||
|
||
The two relevant checkbox entries are "The item has more than one title, e.g. a translated title", and "The item has been published or publicly distributed before". The checkbox for multiple titles trigger the display of the field with dc-element equal to 'title' and dc-qualifier equal to 'alternative'. If the controlling collection's form set does not contain this field, then the multiple titles question will not appear on the initial questions page.
|
||
|
||
|
||
|
||
h4. Adding _Value-Pairs_
|
||
|
||
Finally, your custom form description needs to define the "value pairs" for any fields with input types that refer to them. Do this by adding a _value-pairs_ element to the contents of _form-value-pairs_. It has the following required attributes:
|
||
* *value-pairs-name* -- Name by which an _input-type_ refers to this list.
|
||
* *dc-term* -- Qualified Dublin Core field for which this choice list is selecting a value. Each _value-pairs_ element contains a sequence of _pair_ sub-elements, each of which in turn contains two elements:
|
||
* *displayed-value* -- Name shown (on the web page) for the menu entry.
|
||
* *stored-value* -- Value stored in the DC element when this entry is chosen. Unlike the HTML _select_ tag, there is no way to indicate one of the entries should be the default, so the first entry is always the default choice.
|
||
|
||
h5. Example
|
||
|
||
Here is a menu of types of common identifiers:
|
||
{code}
|
||
<value-pairs value-pairs-name="common_identifiers"
|
||
dc-term="identifier">
|
||
<pair>
|
||
<displayed-value>Gov't Doc
|
||
#</displayed-value>
|
||
<stored-value>govdoc</stored-value>
|
||
</pair>
|
||
<pair>
|
||
<displayed-value>URI</displayed-value>
|
||
<stored-value>uri</stored-value>
|
||
</pair>
|
||
<pair>
|
||
<displayed-value>ISBN</displayed-value>
|
||
<stored-value>isbn</stored-value>
|
||
</pair>
|
||
</value-pairs>
|
||
{code}
|
||
It generates the following HTML, which results in the menu widget below. (Note that there is no way to indicate a default choice in the custom input XML, so it cannot generate the HTML _SELECTED_ attribute to mark one of the options as a pre-selected default.) {code}
|
||
<select name="identifier_qualifier_0">
|
||
<option VALUE="govdoc">Gov't Doc
|
||
#</option>
|
||
<option VALUE="uri">URI</option>
|
||
<option VALUE="isbn">ISBN</option>
|
||
</select>
|
||
{code}*Identifiers:*Gov't Doc #URIISBN
|
||
|
||
|
||
|
||
|
||
h3. Deploying Your Custom Forms
|
||
|
||
The DSpace web application only reads your custom form definitions when it starts up, so it is important to remember:
|
||
_*You must always restart Tomcat* (or whatever servlet container you are using) for changes made to the _input-forms.xml_ file take effect._
|
||
Any mistake in the syntax or semantics of the form definitions, such as poorly formed XML or a reference to a nonexistent field name, will cause a fatal error in the DSpace UI. The exception message (at the top of the stack trace in the _dspace.log_ file) usually has a concise and helpful explanation of what went wrong. Don't forget to stop and restart the servlet container before testing your fix to a bug.
|
||
|
||
|
||
|
||
h2. Configuring the File Upload step
|
||
|
||
The _Upload_ step in the DSpace submission process has two configuration options which can be set with your _\[dspace\]/config/dspace.cfg_ configuration file. They are as follows:
|
||
|
||
* _upload.max_ - The maximum size of a file (in bytes) that can be uploaded from the JSPUI (not applicable for the XMLUI). It defaults to 536870912 bytes (512MB). You may set this to -1 to disable any file size limitation.
|
||
** _Note:_ Increasing this value or setting to -1 does *not* guarantee that DSpace will be able to successfully upload larger files via the web, as large uploads depend on many other factors including bandwidth, web server settings, internet connection speed, etc.
|
||
* _webui.submit.upload.required_ - Whether or not all users are _required_ to upload a file when they submit an item to DSpace. It defaults to 'true'. When set to 'false' users will see an option to skip the upload step when they submit a new item.
|
||
|
||
h2. Creating new Submission Steps
|
||
|
||
First, a brief warning: _Creating a new Submission Step requires some Java knowledge, and is therefore recommended to be undertaken by a Java programmer whenever possible_
|
||
|
||
That being said, at a higher level, creating a new Submission Step requires the following (in this relative order):
|
||
|
||
# (*Required*) Create a new Step Processing class
|
||
#* This class *must* extend the abstract _org.dspace.submit.AbstractProcessingStep_ class and implement all methods defined by that abstract class.
|
||
#* This class should be built in such a way that it can process the input gathered from _either_ the XMLUI or JSPUI interface.
|
||
# (_For steps using JSPUI_) Create the JSPs to display the user interface. Create a new JSPUI "binding" class to initialize and call these JSPs.
|
||
#
|
||
#* Your JSPUI "binding" class must extend the abstract class _org.dspace.app.webui.submit.JSPStep_ and implement all methods defined there. It's recommended to use one of the classes in _org.dspace.app.webui.submit.step.*_ as a reference.
|
||
#* Any JSPs created should be loaded by calling the showJSP() method of the _org.dspace.app.webui.submit.JSPStepManager_ class
|
||
#* If this step gathers information to be reviewed, you must also create a Review JSP which will display a read-only view of all data gathered during this step. The path to this JSP must be returned by your getReviewJSP() method. You will find examples of Review JSPs (named similar to _review-\[step\].jsp_) in the JSP _submit/_ directory.
|
||
# (_For steps using XMLUI_) Create an XMLUI "binding" Step Transformer which will generate the DRI XML which Manakin requires.
|
||
#* The Step Transformer must extend and implement all necessary methods within the abstract class _org.dspace.app.xmlui.submission.AbstractSubmissionStep_
|
||
#* It is useful to use the existing classes in _org.dspace.app.xmlui.submission.submit.*_ as references
|
||
# (*Required*) Add a valid Step Definition to the _item-submission.xml_ configuration file.
|
||
#* This may also require that you add an I18N (Internationalization) key for this step's _heading_. See the sections on Configuring Multilingual Support for JSPUI or Configuring Multilingual Support for XMLUI for more details.
|
||
#* For more information on _<step>_ definitions within the _item-submission.xml_, see the section above on Defining Steps (_<step>_) within the _item-submission.xml_.
|
||
h3. Creating a Non-Interactive Step
|
||
|
||
Non-interactive steps are ones that have no user interface and only perform backend processing. You may find a need to create non-interactive steps which perform further processing of previously entered information.
|
||
|
||
To create a non-interactive step, do the following:
|
||
|
||
# Create the required Step Processing class, which extends the abstract _org.dspace.submit.AbstractProcessingStep_ class. In this class add any processing which this step will perform.
|
||
# Add your non-interactive step to your _item-submission.xml_ at the place where you wish this step to be called during the submission process. For example, if you want it to be called _immediately after_ the existing 'Upload File' step, then place its configuration immediately after the configuration for that 'Upload File' step. The configuration should look similar to the following: {code} <step>
|
||
<processing-class>org.dspace.submit.step.MyNonInteractveStep</processi
|
||
/processing-class> <workflow-editable>false</workflow-editable>
|
||
</step>{code}
|
||
Note: Non-interactive steps will not appear in the Progress Bar! Therefore, your submitters will not even know they are there. However, because they are not visible to your users, you should make sure that your non-interactive step does not take a large amount of time to finish its processing and return control to the next step (otherwise there will be a visible time delay in the user interface).
|
||
|
||
|
||
|