mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-23 18:03:11 +00:00
Merged 'item-submission-JSPUI.xml' and 'item-submission-XMLUI.xml' files into a single 'item-submission.xml' configuration file (based on suggestions from Graham Triggs).
Small updates throughout API for Configurable Submission to support this merged configuration file (majority of changes in dspace-api and dspace-jspui modules). Also includes updates to Configurable Submission documentation and small updates to I18N to make the XMLUI and JSPUI keys more parallel. git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2491 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1,178 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE item-submission SYSTEM "item-submission.dtd">
|
||||
|
||||
<!-- XML-UI Configurable Submission configuration file -->
|
||||
|
||||
<!-- This XML configuration file allows you to configure the ordering -->
|
||||
<!-- and number of the steps that occur in the Item Submission Process. -->
|
||||
<item-submission>
|
||||
|
||||
<!-- The process-map maps collection handles to a particular Item -->
|
||||
<!-- Submission Process. This requires that a collection's name be -->
|
||||
<!-- unique, even within a community. DSpace does however insure that each-->
|
||||
<!-- collection's handle is unique. Process-map provides the means to -->
|
||||
<!-- associate a unique collection name with an Item Submission process. -->
|
||||
<!-- The process-map also provides the special handle "default" (which is -->
|
||||
<!-- never a collection), here mapped to "traditional". Any collection -->
|
||||
<!-- which does not appear in this map will be associated with the mapping-->
|
||||
<!-- for handle "default". -->
|
||||
<submission-map>
|
||||
<name-map collection-handle="default" submission-name="traditional" />
|
||||
</submission-map>
|
||||
|
||||
|
||||
|
||||
<!-- The 'step-definitions' allows you to define steps which you may wish -->
|
||||
<!-- to "share" amongst multiple submission-item definitions. In order to-->
|
||||
<!-- share the same step definition, you can refer to it by its unique id -->
|
||||
<!-- defined in this section. EVERY 'step' in this section MUST have a -->
|
||||
<!-- unique identifier in the 'id' attribute! -->
|
||||
<!-- -->
|
||||
<!-- Each <step> REQUIRES the following attributes (@) and properties: -->
|
||||
<!-- @id - The unique identifier for this step -->
|
||||
<!-- <processing-class> - The class which will process all information for-->
|
||||
<!-- this step. The class must extend the -->
|
||||
<!-- 'org.dspace.submit.AbstractProcessingStep' class! -->
|
||||
<!-- This property should reference the full path of the class-->
|
||||
<!-- (e.g. org.dspace.submit.step.MyCustomStep) -->
|
||||
<!-- -->
|
||||
<!-- The following properties are OPTIONAL for each <step>: -->
|
||||
<!-- <heading> - References the message text (from the -->
|
||||
<!-- Messages.xml file) which will be used as this -->
|
||||
<!-- step's heading in the progress-bar. If unspecified, -->
|
||||
<!-- the step does not show up in the Progress Bar. -->
|
||||
<!-- <xml-ui-class> - The class which acts as the XML-UI Transformer -->
|
||||
<!-- for this step. This class must extend the -->
|
||||
<!-- 'org.dspace.app.xmlui.submission.AbstractSubmissionStep'-->
|
||||
<!-- class. This class must generate the body of a valid -->
|
||||
<!-- XML DRI document which can be transformed by Manakin. -->
|
||||
<!-- <workflow-editable> - whether or not this step will appear during the-->
|
||||
<!-- "Edit Metadata" workflow approval process. This field-->
|
||||
<!-- defaults to TRUE (which means it can be edited during -->
|
||||
<!-- the "Edit Metadata" workflow stage) -->
|
||||
<!-- -->
|
||||
<!-- -->
|
||||
<step-definitions>
|
||||
<!-- The "collection" step is a "special step" which is *REQUIRED* to be-->
|
||||
<!-- in this section! In DSpace, all submitted items must be -->
|
||||
<!-- immediately assigned to a collection. This step ensures that a -->
|
||||
<!-- collection is always selected. If a user is already submitting -->
|
||||
<!-- from within a Collection (by clicking the "Submit to This -->
|
||||
<!-- Collection" button) then this step will be automatically skipped. -->
|
||||
<!-- In all other cases, this step ensures that the user *first* selects-->
|
||||
<!-- a collection! -->
|
||||
<!-- Since this is a "special step", it is *automatically* added at the -->
|
||||
<!-- beginning of each 'submission-process' (therefore it should not be -->
|
||||
<!-- referenced by any of the below 'submission-process' tags). Also as-->
|
||||
<!-- a special step, it is currently NEVER editable in a workflow. -->
|
||||
<step id="collection">
|
||||
<heading></heading> <!--can specify heading, if you want it to appear in Progress Bar-->
|
||||
<processing-class>org.dspace.submit.step.SelectCollectionStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.aspect.submission.submit.SelectCollectionStep</xml-ui-class>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!-- The "complete" step is a "special step" which is *REQUIRED* to be -->
|
||||
<!-- in this section! In DSpace, when a submission is completed, -->
|
||||
<!-- a workflow is automatically kicked off (if one exists) -->
|
||||
<!-- This "complete" step performs all backend processing that occurs -->
|
||||
<!-- immediately upon completing the submission. -->
|
||||
<!-- Since this is a "special step", it is *automatically* added at the -->
|
||||
<!-- end of each 'submission-process' (therefore it should not be -->
|
||||
<!-- referenced by any of the below 'submission-process' tags). Also as-->
|
||||
<!-- a special step, it is currently NEVER editable in a workflow. -->
|
||||
<step id="complete">
|
||||
<heading>xmlui.Submission.general.progress.complete</heading>
|
||||
<processing-class>org.dspace.submit.step.CompleteStep</processing-class>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
</step-definitions>
|
||||
|
||||
<!-- The submission-definitions map lays out the detailed definition of -->
|
||||
<!-- all the Item Submission Processes (and the ordering of their steps). -->
|
||||
<!-- Each separate "submission-process" has a unique name as an attribute,-->
|
||||
<!-- which matches one of the names in the process-map. One named -->
|
||||
<!-- "submit-process" has the name "traditional"; as this name suggests, -->
|
||||
<!-- it is the default item submission process, which gets used when -->
|
||||
<!-- the specified collection has no correspondingly named submit-process.-->
|
||||
<!-- -->
|
||||
<!-- Each submit-process contains an ordered set of steps; each step -->
|
||||
<!-- defines one "step" occurring during the process of submitting an -->
|
||||
<!-- item. A step can either be reference by 'id' (in which case it must -->
|
||||
<!-- be defined in <step-definitions> above), or defined completely here. -->
|
||||
<!-- -->
|
||||
<!-- If the step is not referred to by 'id', then the <step> REQUIRES the -->
|
||||
<!-- following properties are defined: -->
|
||||
<!-- <processing-class> - The class which will process all information for-->
|
||||
<!-- this step. The class must extend the -->
|
||||
<!-- 'org.dspace.submit.AbstractProcessingStep' class! -->
|
||||
<!-- This property should reference the full path of the class-->
|
||||
<!-- (e.g. org.dspace.submit.step.MyCustomStep) -->
|
||||
<!-- -->
|
||||
<!-- The following properties are OPTIONAL for each <step>: -->
|
||||
<!-- <heading> - References the message text (from the -->
|
||||
<!-- Messages.xml file) which will be used as this -->
|
||||
<!-- step's heading in the progress-bar. If unspecified, -->
|
||||
<!-- the Step does not show up in the Progress Bar. -->
|
||||
<!-- <xml-ui-class> - The class which acts as the XML-UI Transformer -->
|
||||
<!-- for this step. This class must extend the -->
|
||||
<!-- 'org.dspace.app.xmlui.submission.AbstractSubmissionStep'-->
|
||||
<!-- class. This class must generate the body of a valid -->
|
||||
<!-- XML DRI document which can be transformed by Manakin. -->
|
||||
<!-- <workflow-editable> - whether or not this step will appear during the-->
|
||||
<!-- "Edit Metadata" workflow approval process. This field-->
|
||||
<!-- defaults to TRUE (which means it can be edited during -->
|
||||
<!-- the "Edit Metadata" workflow stage). Set to either -->
|
||||
<!-- "true" or "false". -->
|
||||
<!-- -->
|
||||
<submission-definitions>
|
||||
|
||||
<!--This "traditional" process defines the DEFAULT item submission process-->
|
||||
<submission-process name="traditional">
|
||||
|
||||
<!--Step 1 will be to gather initial information-->
|
||||
<step>
|
||||
<heading>xmlui.Submission.general.progress.initial-questions</heading>
|
||||
<processing-class>org.dspace.submit.step.InitialQuestionsStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.aspect.submission.submit.InitialQuestionsStep</xml-ui-class>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 2 will be to Describe the item.-->
|
||||
<step>
|
||||
<heading>xmlui.Submission.general.progress.describe</heading>
|
||||
<processing-class>org.dspace.submit.step.DescribeStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.aspect.submission.submit.DescribeStep</xml-ui-class>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 3 will be to Upload the item-->
|
||||
<step>
|
||||
<heading>xmlui.Submission.general.progress.upload</heading>
|
||||
<processing-class>org.dspace.submit.step.UploadStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.aspect.submission.submit.UploadStep</xml-ui-class>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 4 will be to Verify everything -->
|
||||
<step>
|
||||
<heading>xmlui.Submission.general.progress.review</heading>
|
||||
<processing-class>org.dspace.submit.step.VerifyStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.aspect.submission.submit.ReviewStep</xml-ui-class>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 5 will be to Sign off on the License-->
|
||||
<step>
|
||||
<heading>xmlui.Submission.general.progress.license</heading>
|
||||
<processing-class>org.dspace.submit.step.LicenseStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.aspect.submission.submit.LicenseStep</xml-ui-class>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
</submission-process>
|
||||
|
||||
</submission-definitions>
|
||||
|
||||
</item-submission>
|
@@ -23,8 +23,8 @@
|
||||
|
||||
<!ELEMENT heading (#PCDATA) >
|
||||
<!ELEMENT processing-class (#PCDATA)>
|
||||
<!ELEMENT xml-ui-class (#PCDATA)>
|
||||
<!ELEMENT review-jsp (#PCDATA)>
|
||||
<!ELEMENT jspui-binding (#PCDATA)>
|
||||
<!ELEMENT xmlui-binding (#PCDATA)>
|
||||
<!ELEMENT workflow-editable (#PCDATA)>
|
||||
|
||||
<!-- 'submission-definitions' must contain at least one -->
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE item-submission SYSTEM "item-submission.dtd">
|
||||
|
||||
<!-- JSP-UI Configurable Submission configuration file -->
|
||||
<!-- Configurable Submission configuration file -->
|
||||
|
||||
<!-- This XML configuration file allows you to configure the ordering -->
|
||||
<!-- and number of the steps that occur in the Item Submission Process. -->
|
||||
@@ -29,27 +29,38 @@
|
||||
<!-- unique identifier in the 'id' attribute! -->
|
||||
<!-- -->
|
||||
<!-- Each <step> REQUIRES the following attributes (@) and properties: -->
|
||||
<!-- @id - The unique identifier for this step -->
|
||||
<!-- @id - The unique identifier for this step -->
|
||||
<!-- -->
|
||||
<!-- <processing-class> - The class which will process all information for-->
|
||||
<!-- this step. The class must implement the -->
|
||||
<!-- 'org.dspace.app.webui.submit.JSPStep' interface AND -->
|
||||
<!-- extend 'org.dspace.submit.AbstractProcessingStep' -->
|
||||
<!-- this step. The class must extend -->
|
||||
<!-- 'org.dspace.submit.AbstractProcessingStep' -->
|
||||
<!-- (or one of the org.dspace.submit.step.* classes) -->
|
||||
<!-- This property should reference the full path of the class-->
|
||||
<!-- (e.g. org.dspace.app.webui.submit.MyCustomJSPStep) -->
|
||||
<!-- (e.g. org.dspace.submit.step.MyCustomStep) -->
|
||||
<!-- -->
|
||||
<!-- The following properties are OPTIONAL for each <step>: -->
|
||||
<!-- <heading> - References the message text (from the -->
|
||||
<!-- Messages.properties file) which will be used as this -->
|
||||
<!-- step's heading in the progress-bar. If unspecified, -->
|
||||
<!-- the step does not show up in the Progress Bar. -->
|
||||
<!-- <review-jsp> - The context path (e.g. /submit/myJSP.jsp) of the JSP -->
|
||||
<!-- which will give a READ-ONLY view of the users answers -->
|
||||
<!-- for this entire step. This JSP is used by the -->
|
||||
<!-- "Verify" step to allow the users to review his/her -->
|
||||
<!-- for each previous step. If the <review-jsp> is -->
|
||||
<!-- unspecified, the user will not be able to review -->
|
||||
<!-- his/her answers for this <step> in the "Verify" step. -->
|
||||
<!-- <heading> - References the message key, from the -->
|
||||
<!-- Messages.properties file (JSP-UI) or messages.xml -->
|
||||
<!-- (XML-UI) which will be used as this step's heading in -->
|
||||
<!-- the progress-bar. If unspecified, the step does not -->
|
||||
<!-- show up in the Progress Bar. Keys in the <heading> -->
|
||||
<!-- are prefixed as follows in the appropriate -->
|
||||
<!-- "messages" file: -->
|
||||
<!-- XML-UI: "xmlui.Submission." prefix -->
|
||||
<!-- JSP-UI: "jsp." prefix -->
|
||||
<!-- <jspui-binding> - JSP-UI binding step class which will generate the JSP-->
|
||||
<!-- based user interface for this step. The class must -->
|
||||
<!-- extend 'org.dspace.app.webui.submit.JSPStep'. -->
|
||||
<!-- This property should reference the full path of the -->
|
||||
<!-- class. It is only necessary if you are using the -->
|
||||
<!-- DSpace JSP-UI, and the step requires user interaction-->
|
||||
<!-- <xmlui-binding> - XML-UI binding step class which will generate the -->
|
||||
<!-- Manakin XML (DRI) structure for this step. The class-->
|
||||
<!-- must extend -->
|
||||
<!-- 'org.dspace.app.xmlui.aspect.submission.StepTransformer'.-->
|
||||
<!-- This property should reference the full path of the -->
|
||||
<!-- class. It is only necessary if you are using the -->
|
||||
<!-- DSpace XML-UI, and the step requires user interaction-->
|
||||
<!-- <workflow-editable> - whether or not this step will appear during the-->
|
||||
<!-- "Edit Metadata" workflow approval process. This field-->
|
||||
<!-- defaults to TRUE (which means it can be edited during -->
|
||||
@@ -71,7 +82,9 @@
|
||||
<!-- a special step, it is currently NEVER editable in a workflow. -->
|
||||
<step id="collection">
|
||||
<heading></heading> <!--can specify heading, if you want it to appear in Progress Bar-->
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPSelectCollectionStep</processing-class>
|
||||
<processing-class>org.dspace.submit.step.SelectCollectionStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPSelectCollectionStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.SelectCollectionStep</xmlui-binding>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
@@ -85,18 +98,18 @@
|
||||
<!-- referenced by any of the below 'submission-process' tags). Also as-->
|
||||
<!-- a special step, it is currently NEVER editable in a workflow. -->
|
||||
<step id="complete">
|
||||
<heading>jsp.submit.progressbar.complete</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPCompleteStep</processing-class>
|
||||
<heading>submit.progressbar.complete</heading>
|
||||
<processing-class>org.dspace.submit.step.CompleteStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPCompleteStep</jspui-binding>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
|
||||
<!-- This is the Sample Step which utilizes the JSPSampleStep class-->
|
||||
<step id="sample">
|
||||
<heading>Sample</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPSampleStep</processing-class>
|
||||
<review-jsp>/submit/sample-review.jsp</review-jsp>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
<heading>Sample</heading>
|
||||
<processing-class>org.dspace.submit.step.SampleStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPSampleStep</jspui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
</step-definitions>
|
||||
|
||||
@@ -124,17 +137,28 @@
|
||||
<!-- (e.g. org.dspace.app.webui.submit.MyCustomJSPStep) -->
|
||||
<!-- -->
|
||||
<!-- The following properties are OPTIONAL for each <step>: -->
|
||||
<!-- <heading> - References the message text (from the -->
|
||||
<!-- Messages.properties file) which will be used as this -->
|
||||
<!-- step's heading in the progress-bar. If unspecified, -->
|
||||
<!-- the Step does not show up in the Progress Bar. -->
|
||||
<!-- <review-jsp> - The context path (e.g. /submit/myJSP.jsp) of the JSP -->
|
||||
<!-- which will give a READ-ONLY view of the users answers -->
|
||||
<!-- for this entire step. This JSP is used by the -->
|
||||
<!-- "Verify" step to allow the users to review his/her -->
|
||||
<!-- for each previous step. If the <review-jsp> is -->
|
||||
<!-- unspecified, the user will not be able to review -->
|
||||
<!-- his/her answers for this <step> in the "Verify" step. -->
|
||||
<!-- <heading> - References the message key, from the -->
|
||||
<!-- Messages.properties file (JSP-UI) or messages.xml -->
|
||||
<!-- (XML-UI) which will be used as this step's heading in -->
|
||||
<!-- the progress-bar. If unspecified, the step does not -->
|
||||
<!-- show up in the Progress Bar. Keys in the <heading> -->
|
||||
<!-- are prefixed as follows in the appropriate -->
|
||||
<!-- "messages" file: -->
|
||||
<!-- XML-UI: "xmlui.Submission." prefix -->
|
||||
<!-- JSP-UI: "jsp." prefix -->
|
||||
<!-- <jspui-binding> - JSP-UI binding step class which will generate the JSP-->
|
||||
<!-- based user interface for this step. The class must -->
|
||||
<!-- extend 'org.dspace.app.webui.submit.JSPStep'. -->
|
||||
<!-- This property should reference the full path of the -->
|
||||
<!-- class. It is only necessary if you are using the -->
|
||||
<!-- DSpace JSP-UI, and the step requires user interaction-->
|
||||
<!-- <xmlui-binding> - XML-UI binding step class which will generate the -->
|
||||
<!-- Manakin XML (DRI) structure for this step. The class-->
|
||||
<!-- must extend -->
|
||||
<!-- 'org.dspace.app.xmlui.aspect.submission.StepTransformer'.-->
|
||||
<!-- This property should reference the full path of the -->
|
||||
<!-- class. It is only necessary if you are using the -->
|
||||
<!-- DSpace XML-UI, and the step requires user interaction-->
|
||||
<!-- <workflow-editable> - whether or not this step will appear during the-->
|
||||
<!-- "Edit Metadata" workflow approval process. This field-->
|
||||
<!-- defaults to TRUE (which means it can be edited during -->
|
||||
@@ -151,41 +175,47 @@
|
||||
|
||||
<!--Step 1 will be to gather initial information-->
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPInitialQuestionsStep</processing-class>
|
||||
<review-jsp>/submit/review-init.jsp</review-jsp>
|
||||
<heading>submit.progressbar.initial-questions</heading>
|
||||
<processing-class>org.dspace.submit.step.InitialQuestionsStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPInitialQuestionsStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.InitialQuestionsStep</xmlui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 2 will be to Describe the item.-->
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPDescribeStep</processing-class>
|
||||
<review-jsp>/submit/review-metadata.jsp</review-jsp>
|
||||
<heading>submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.submit.step.DescribeStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPDescribeStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.DescribeStep</xmlui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 3 will be to Upload the item-->
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.upload</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPUploadStep</processing-class>
|
||||
<review-jsp>/submit/review-upload.jsp</review-jsp>
|
||||
<heading>submit.progressbar.upload</heading>
|
||||
<processing-class>org.dspace.submit.step.UploadStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPUploadStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.UploadStep</xmlui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 4 will be to Verify everything -->
|
||||
<!--(this uses all the "review-jsp" tags set in the above steps to load the "Verify" page).-->
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.verify</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPVerifyStep</processing-class>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
<!--Step 4 will be to Verify/Review everything -->
|
||||
<step>
|
||||
<heading>submit.progressbar.verify</heading>
|
||||
<processing-class>org.dspace.submit.step.VerifyStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPVerifyStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.ReviewStep</xmlui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
|
||||
<!--Step 5 will be to Sign off on the License-->
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.license</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPLicenseStep</processing-class>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
<heading>submit.progressbar.license</heading>
|
||||
<processing-class>org.dspace.submit.step.LicenseStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPLicenseStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.LicenseStep</xmlui-binding>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
</submission-process>
|
@@ -31,21 +31,11 @@
|
||||
<a name="configurationFile" id="configurationFile"></a>
|
||||
<H2>Understanding the Submission Configuration File</H2>
|
||||
|
||||
<p><em>PLEASE NOTE: There are separate submission configuration files based on whether
|
||||
you plan to use the DSpace JSP User Interface (JSP-UI) or the DSpace XML User Interface (XML-UI, aka. Manakin)</em>
|
||||
<ul>
|
||||
<li><code><i>[dspace]</i>/config/item-submission-JSPUI.xml</code> - This is the JSP-UI configuration file</li>
|
||||
<li><code><i>[dspace]</i>/config/item-submission-XMLUI.xml</code> - This is the XML-UI configuration file</li>
|
||||
</ul>
|
||||
<p>The <code>[dspace]/config/item-submission.xml</code> contains the submission configurations for <em>both</em> the DSpace JSP user interface (JSP-UI) or the DSpace XML user interface
|
||||
(XML-UI or Manakin). This configuration file contains detailed documentation within the file itself,
|
||||
which should help you better understand how to best utilize it.
|
||||
</p>
|
||||
|
||||
<p>DSpace will automatically know which <code>item-submission.xml</code> to utilize based on the DSpace user interface being used.
|
||||
<em>However, should you wish to make configuration changes, you must make sure to do so in the correct <code>item-submission.xml</code>
|
||||
file based on the DSpace user interface you are using!</em></p>
|
||||
|
||||
<p>Each of the <code>item-submission.xml</code> configuration files contains detailed documentation within the file itself,
|
||||
which should help you better undertand how to best utilize it.</p>
|
||||
|
||||
<H3>The Structure of <CODE>item-submission.xml</CODE></H3>
|
||||
<pre><code>
|
||||
<item-submission>
|
||||
@@ -91,14 +81,14 @@
|
||||
<a name="#stepDefinitions" id="#stepDefinitions"></a>
|
||||
<H3>Defining Steps (<code><step></code>) within the <CODE>item-submission.xml</CODE></H3>
|
||||
|
||||
<p>This section decribes how Steps of the Submission Process are defined within the <CODE>item-submission.xml</CODE>.</p>
|
||||
<p>This section describes how Steps of the Submission Process are defined within the <CODE>item-submission.xml</CODE>.</p>
|
||||
|
||||
<H4>Where to place your <code><step></code> definitions</H4>
|
||||
<p><code><step></code> definitions can appear in one of two places within the <CODE>item-submission.xml</CODE> configuration file.
|
||||
<ol>
|
||||
<li>Within the <code><step-definitions></code> section
|
||||
<ul>
|
||||
<li>This is for globally definied <code><step></code> definitions
|
||||
<li>This is for globally defined <code><step></code> definitions
|
||||
(i.e. steps which are used in multiple <code><submission-process></code>
|
||||
definitions). Steps defined in this section <strong>must</strong> define
|
||||
a unique <code>id</code> which can be used to reference this step.</li>
|
||||
@@ -136,30 +126,32 @@
|
||||
in which those steps will appear!</p>
|
||||
|
||||
<p>For example, the following defines a Submission Process where the
|
||||
<em>License</em> step directly precedes the <em>Describe</em> step
|
||||
<em>License</em> step directly precedes the <em>Initial Questions</em> step
|
||||
(more information about the structure of the information under each <step>
|
||||
tag can be found in the section on <a href="#stepStructure">Structure of the <step> Definition</a> below):
|
||||
</p>
|
||||
|
||||
<p><em>(PLEASE NOTE: This example uses some syntax that is specific to the DSpace JSP user interface.)</em>
|
||||
|
||||
<pre><code>
|
||||
<submission-process>
|
||||
<em><!--Step 1 will be to Sign off on the License--></em>
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.license</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPLicenseStep</processing-class>
|
||||
<heading>submit.progressbar.license</heading>
|
||||
<processing-class>org.dspace.submit.step.LicenseStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPLicenseStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.LicenseStep</xmlui-binding>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step>
|
||||
|
||||
<em><!--Step 2 will be to Describe the Item--></em>
|
||||
<em><!--Step 2 will be to Ask Initial Questions--></em>
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPDescribeStep</processing-class>
|
||||
<review-jsp>/submit/review-metadata.jsp</review-jsp>
|
||||
<heading>submit.progressbar.initial-questions</heading>
|
||||
<processing-class>org.dspace.submit.step.InitialQuestionsStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPInitialQuestionsStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.InitialQuestionsStep</xmlui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
...
|
||||
|
||||
...[other steps]...
|
||||
</submission-process>
|
||||
</code></pre>
|
||||
</p>
|
||||
@@ -167,59 +159,65 @@
|
||||
<a name="stepStructure" id="stepStructure"></a>
|
||||
<H4>Structure of the <step> Definition</H4>
|
||||
|
||||
<p>The actual structure of the <step> definition differs slightly, based on whether
|
||||
you are using the DSpace JSP user interface (JSP-UI) or the DSpace XML user interface
|
||||
(XML-UI or Manakin). Unfortunately the same structure cannot be shared between
|
||||
these user interfaces, since they each use different manners of generating the user interface.</p>
|
||||
<ul>
|
||||
<li><a href="#stepStructureJSP">Structure of the <step> Definition for the JSP User Interface</a></li>
|
||||
<li><a href="#stepStructureXML">Structure of the <step> Definition for the XML User Interface (Manakin)</a></li>
|
||||
</ul>
|
||||
<p>The same <step> definition is used by both the DSpace JSP user interface (JSP-UI) an the DSpace XML user interface
|
||||
(XML-UI or Manakin). Therefore, you will notice each <step> definition contains information
|
||||
specific to each of these two interfaces.</p>
|
||||
|
||||
<a name="stepStructureJSP" id="stepStructureJSP"></a>
|
||||
<H5>Structure of the <step> Definition for the JSP User Interface</H5>
|
||||
|
||||
<p>The structure of the <step> Definition for the JSP UI is as follows:
|
||||
<p>The structure of the <step> Definition is as follows:
|
||||
<pre><code>
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.app.webui.submit.step.JSPDescribeStep</processing-class>
|
||||
<review-jsp>/submit/review-metadata.jsp</review-jsp>
|
||||
<heading>submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.submit.step.DescribeStep</processing-class>
|
||||
<jspui-binding>org.dspace.app.webui.submit.step.JSPDescribeStep</jspui-binding>
|
||||
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.DescribeStep</xmlui-binding>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
</step>
|
||||
</code></pre>
|
||||
</p>
|
||||
|
||||
<P>Each <CODE>step</CODE> contains the following elements, for the JSP UI. The required elements are so marked:</P>
|
||||
<P>Each <CODE>step</CODE> contains the following elements. The required elements are so marked:</P>
|
||||
|
||||
<DL>
|
||||
<DT><STRONG><CODE>heading</CODE></STRONG></DT>
|
||||
|
||||
<DD>Full I18N key (defined in <code>Messages.properties</code>) which corresponds to
|
||||
the text that should be displayed in the Submission Progress Bar for this step.
|
||||
<em>This need not be defined, if the step should not appear in the progress bar
|
||||
(e.g. steps which are automatic and require no user interaction should not appear
|
||||
in the progress bar).</em></DD>
|
||||
<DD>Partial I18N key (defined in <code>Messages.properties</code> for JSP-UI or <code>messages.xml</code> for XML-UI) 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:
|
||||
<ul>
|
||||
<li>XML-UI: prefix is <code>xmlui.Submission.</code> (e.g. "xmlui.Submission.submit.progressbar.describe" for 'Describe' step)</li>
|
||||
<li>JSP-UI: prefix is <code>jsp.</code> (e.g. "jsp.submit.progressbar.describe" for 'Describe' step)</li>
|
||||
</ul>
|
||||
<em>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).</em>
|
||||
</DD>
|
||||
|
||||
<DT><STRONG><CODE>processing-class</CODE></STRONG> <EM>(Required)</EM></DT>
|
||||
|
||||
<DD>Full Java path to the JSP Processing Class for this Step.
|
||||
All valid JSP step processing classes must implement the interface
|
||||
`<code>org.dspace.app.webui.submit.JSPStep</code>` <strong>AND</strong>
|
||||
extend the abstract `<code>org.dspace.submit.AbstractProcessingStep</code>` class
|
||||
(or alternatively, extend one of the existing step processing classes in
|
||||
<DD>Full Java path to the Processing Class for this Step. This Processing Class
|
||||
<em>must</em> perform the primary processing of any information gathered in this step, <em>for both the XML-UI and JSP-UI</em>.
|
||||
All valid step processing classes must extend the abstract `<code>org.dspace.submit.AbstractProcessingStep</code>` class
|
||||
(or alternatively, extend one of the pre-existing step processing classes in
|
||||
<code>org.dspace.submit.step.*</code>)</DD>
|
||||
|
||||
<DT><STRONG><CODE>review-jsp</CODE></STRONG></DT>
|
||||
<DT><STRONG><CODE>jspui-binding</CODE></STRONG></DT>
|
||||
|
||||
<DD>The relative path to the JSP which displays a read-only version
|
||||
of the information gathered during this step. This JSP should be very
|
||||
simplistic in its form (most just display a simple table listing all
|
||||
gathered information). For examples, see the JSPs beginning with <code>review-</code>
|
||||
that exist within the <code>/jsp/submit</code> directory of DSpace.
|
||||
<em>This need not be defined if the step has no information that should be later reviewed
|
||||
(e.g. The License step doesn't need a review JSP as the act of
|
||||
agreeing to a submission license is not considered reviewable)</em></DD>
|
||||
<DD>Full Java path of the JSP-UI "binding" class for this Step. This "binding" class
|
||||
should initialize and call the appropriate JSPs to display the step's user interface. A valid
|
||||
JSP-UI "binding" class <em>must</em> extend the abstract `<code>org.dspace.app.webui.submit.JSPStep</code>` class.
|
||||
<em>This property need not be defined if you are using the XML-UI interface, or for steps which
|
||||
only perform automated processing, i.e. non-interactive steps.</em>
|
||||
</DD>
|
||||
|
||||
<DT><STRONG><CODE>xmlui-binding</CODE></STRONG></DT>
|
||||
|
||||
<DD>Full Java path of the XML-UI "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
|
||||
XML-UI "binding" class <em>must</em> extend the abstract `<code>org.dspace.app.xmlui.submission.AbstractSubmissionStep</code>` class.
|
||||
<em>This property need not be defined if you are using the JSP-UI interface, or for steps which
|
||||
only perform automated processing, i.e. non-interactive steps.</em>
|
||||
</DD>
|
||||
|
||||
<DT><STRONG><CODE>workflow-editable</CODE></STRONG></DT>
|
||||
|
||||
@@ -230,56 +228,6 @@
|
||||
during that step).</DD>
|
||||
</DL>
|
||||
|
||||
<a name="stepStructureXML" id="stepStructureXML"></a>
|
||||
<H5>Structure of the <step> Definition for the XML User Interface (Manakin)</H5>
|
||||
|
||||
<p>The structure of the <step> Definition for the XML UI is as follows:
|
||||
<pre><code>
|
||||
<step>
|
||||
<heading>jsp.submit.progressbar.describe</heading>
|
||||
<processing-class>org.dspace.submit.step.DescribeStep</processing-class>
|
||||
<xml-ui-class>org.dspace.app.xmlui.submission.submit.DescribeStep</xml-ui-class>
|
||||
<workflow-editable>true</workflow-editable>
|
||||
</step>
|
||||
</code></pre>
|
||||
</p>
|
||||
|
||||
<P>Each <CODE>step</CODE> contains the following elements, for the XML UI. The required elements are so marked:</P>
|
||||
|
||||
<DL>
|
||||
<DT><STRONG><CODE>heading</CODE></STRONG></DT>
|
||||
|
||||
<DD>Full I18N key (defined in Manakin's <code>config/i18n/messages.xml</code>) which corresponds to
|
||||
the text that should be displayed in the Submission Progress Bar for this step.
|
||||
<em>This need not be defined, if the step should not appear in the progress bar
|
||||
(e.g. steps which are automatic and require no user interaction should not appear
|
||||
in the progress bar).</em></DD>
|
||||
|
||||
<DT><STRONG><CODE>processing-class</CODE></STRONG> <EM>(Required)</EM></DT>
|
||||
|
||||
<DD>Full Java path to the Processing Class for this Step.
|
||||
All step processing classes must extend the abstract `<code>org.dspace.submit.AbstractProcessingStep</code>` class,
|
||||
and implement all necessary methods in that class.</DD>
|
||||
|
||||
<DT><STRONG><CODE>xml-ui-class</CODE></STRONG></DT>
|
||||
|
||||
<DD>Full Java path to the XML UI Transformer Class for this Step.
|
||||
The Transformer class is responsible for generating the XML structure
|
||||
which Manakin is able to understand (called DRI: Digital Repository Interface).
|
||||
This class must extend the abstract `<code>org.dspace.app.xmlui.submission.AbstractSubmissionStep</code>` class,
|
||||
and implement all necessary methods in that class.
|
||||
<em>Note: This need not be defined if the step is automated and requires no user interaction (i.e. requires no user interface)</em></DD>
|
||||
|
||||
<DT><STRONG><CODE>workflow-editable</CODE></STRONG></DT>
|
||||
|
||||
<DD>Defines whether or not this step can be edited during the <em>Edit Metadata</em>
|
||||
process with the DSpace approval/rejection workflow process. Possible values include <code>true</code>
|
||||
and <code>false</code>. If undefined, defaults to <code>true</code> (which
|
||||
means that workflow reviewers would be allowed to edit information gathered
|
||||
during that step).</DD>
|
||||
</DL>
|
||||
|
||||
|
||||
<a name="stepOrdering" id="stepOrdering"></a>
|
||||
<H2>Reordering/Removing Submission Steps</H2>
|
||||
|
||||
@@ -677,7 +625,7 @@
|
||||
<a name="createStep" id="createStep"></a>
|
||||
<H2>Creating new Submission Steps</H2>
|
||||
|
||||
<P>First, a warning: <em>Creating a new Submission Step requires some Java knowledge,
|
||||
<P>First, a brief warning: <em>Creating a new Submission Step requires some Java knowledge,
|
||||
and is therefore recommended to be undertaken by a Java programmer whenever possible</em></P>
|
||||
|
||||
<P>That being said, at a higher level, creating a new Submission Step
|
||||
@@ -686,51 +634,38 @@
|
||||
<ol>
|
||||
<li>(<strong>Required</strong>) Create a new Step Processing class
|
||||
<ul>
|
||||
<li><strong>For JSP-UI only:</strong> If you need to create a step which <em>only</em>
|
||||
works with the JSP UI,
|
||||
then your step processing class <strong>must</strong> implement
|
||||
the interface <code>org.dspace.app.webui.submit.JSPStep</code>
|
||||
<strong>AND</strong> extend the abstract
|
||||
<code>org.dspace.submit.AbstractProcessingStep</code> class.</li>
|
||||
<li><strong>For XML-UI only:</strong> If you wish to create a step which <em>only</em>
|
||||
works with the Manakin UI, you just need to extend and
|
||||
implement all necessary methods within the abstract
|
||||
<code>org.dspace.submit.AbstractProcessingStep</code> class.</li>
|
||||
<li><strong>Both JSP-UI and XML-UI:</strong> If you wish to create a step which works
|
||||
with either interface, you just need to create two classes:
|
||||
<ol>
|
||||
<li>First, a generic processing class which extends the
|
||||
<code>org.dspace.submit.AbstractProcessingStep</code> class, which
|
||||
will perform the backend processing for <strong>both</strong> the
|
||||
JSP-UI and the XML-UI.
|
||||
</li>
|
||||
<li>Second, you need to create a JSP-specific processing class
|
||||
which will implement the interface
|
||||
<code>org.dspace.app.webui.submit.JSPStep</code>, and extends the
|
||||
generic processing class you just created in #1 above.</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>This class <strong>must</strong> extend the abstract
|
||||
<code>org.dspace.submit.AbstractProcessingStep</code> class and
|
||||
implement all methods defined by that abstract class.</li>
|
||||
<li>This class should be built in such a way that it can process the
|
||||
input gathered from <em>either</em> the XML-UI or JSP-UI interface.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>(<em>For JSP UI Steps only</em>) Create the JSPs to display
|
||||
the user interface (<em>only necessary if your step requires user interaction</em>).
|
||||
<li>(<em>For steps using JSP-UI</em>) Create the JSPs to display
|
||||
the user interface. Create a new JSP-UI "binding" class to initialize
|
||||
and call these JSPs.</li>
|
||||
<ul>
|
||||
<li>Any JSPs created should be loaded by the Step Processing
|
||||
class by using one of the showJSP() method</li>
|
||||
<li>Your JSP-UI "binding" class must extend the abstract class <code>org.dspace.app.webui.submit.JSPStep</code>
|
||||
and implement all methods defined there. It's recommended to use one
|
||||
of the classes in <code>org.dspace.app.webui.submit.step.*</code> as a reference.</li>
|
||||
<li>Any JSPs created should be loaded by calling the showJSP() method of
|
||||
the <code>org.dspace.app.webui.submit.JSPStepManager</code> class</li>
|
||||
<li>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. You will find examples
|
||||
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 <code>review-<em>[step]</em>.jsp</code>) in the
|
||||
<code><em>[dspace-source]</em>/jsp/submit</code> directory.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>(<em>For XML UI Steps only</em>) Create a Step Transformer
|
||||
which will generate the DRI XML which Manakin requires
|
||||
(<em>only necessary if your step requires user interaction</em>).
|
||||
<li>(<em>For steps using XML-UI</em>) Create an XML-UI "binding" Step Transformer
|
||||
which will generate the DRI XML which Manakin requires.
|
||||
<ul>
|
||||
<li>The Step Transformer must extend and implement
|
||||
all necessary methods within the abstract
|
||||
<code>org.dspace.app.xmlui.submission.AbstractSubmissionStep</code> class.</li>
|
||||
all necessary methods within the abstract class
|
||||
<code>org.dspace.app.xmlui.submission.AbstractSubmissionStep</code></li>
|
||||
<li>It is useful to use the existing classes in
|
||||
<code>org.dspace.app.xmlui.submission.submit.*</code> as references</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>(<strong>Required</strong>) Add a valid Step Definition to the <code>item-submission.xml</code> configuration file.
|
||||
@@ -747,6 +682,37 @@
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<a name="createStep" id="createStep"></a>
|
||||
<H3>Creating a Non-Interactive Step</H3>
|
||||
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
|
||||
<p>To create a non-interactive step, do the following:
|
||||
<ol>
|
||||
<li>Create the required Step Processing class, which extends the abstract
|
||||
<code>org.dspace.submit.AbstractProcessingStep</code> class. In this class
|
||||
add any processing which this step will perform.</li>
|
||||
<li>Add your non-interactive step to your <code>item-submission.xml</code> at
|
||||
the place where you wish this step to be called during the submission process.
|
||||
For example, if you want it to be called <em>immediately after</em> 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:<pre><code><step>
|
||||
<processing-class>org.dspace.submit.step.MyNonInteractveStep</processing-class>
|
||||
<workflow-editable>false</workflow-editable>
|
||||
</step></code></pre>
|
||||
</li>
|
||||
</ol>
|
||||
</p>
|
||||
<p>
|
||||
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).</p>
|
||||
|
||||
<HR>
|
||||
|
||||
|
Reference in New Issue
Block a user