Hi Corey,
In order to add an extra step, some implementation work is required. This
cannot be achieved simply using configuration.
What you need to do first is create 2 java classes for this.
The first one will be for the processing of the step. Create this class in
the package "org.dspace.submit.step".
This class must extend the "AbstractProcessingStep" which requires two
methods:
* doProcessing(Context context, HttpServletRequest request,
HttpServletResponse response, SubmissionInfo subInfo)
* getNumberOfPages(HttpServletRequest request, SubmissionInfo subInfo)
The only thing you need to do for the doProcessing method is return
STATUS_COMPLETE and for the method geNumberOfPages you need to return 1 (or
more if you want more static pages).
public int doProcessing(Context context, HttpServletRequest request,
HttpServletResponse response, SubmissionInfo subInfo) throws
ServletException, IOException, SQLException, AuthorizeException {
return STATUS_COMPLETE;
}
public int getNumberOfPages(HttpServletRequest request, SubmissionInfo
subInfo) throws ServletException {
return 1;
}
The second class needs to be created in the package
"org.dspace.app.xmlui.aspect.submission.submit" assuming you're using the
Manakin UI.
This class must extend the "AbstractSubmissionStep" which requires one
method the addReviewSection(List reviewList). The only thing this method
needs to do (for a static page) is return null.
public List addReviewSection(List reviewList) throws SAXException,
WingException, UIException, SQLException, IOException, AuthorizeException {
return null;
}
Now the method you need to add all your static content is addBody(Body
body). The manditory java code in this method is listed below.
public void addBody(Body body) throws SAXException, WingException,
UIException, SQLException, IOException, AuthorizeException {
Collection collection = submission.getCollection();
String actionURL = contextPath + "/handle/"+collection.getHandle() +
"/submit";
Division div = body.addInteractiveDivision("test-step", actionURL,
Division.METHOD_POST,"primary submission");
/*
PUT YOUR STATIC PAGE CONTENT HERE
*/
// add standard control/paging buttons
List form = div.addList("resume-submission",List.TYPE_FORM);
addControlButtons(form);
div.addDivision("hidden").addHidden("submission-continue").setValue(knot.getId());
}
Now that you have all the java code in order, you need to let the submission
process know of your added step. Open the item-submission.xml file which can
be found in {dspace.dir}/config.
You need to add a line between "Step 4 will be to Verify/Review everything"
and Step 5 will be to Sign off on the License. An example can be found
below:
<step>
<heading>submit.progressbar.test</heading>
<processing-class>org.dspace.submit.step.testStep</processing-class>
<xmlui-binding>org.dspace.app.xmlui.aspect.submission.submit.testStep</xmlui-binding>
<workflow-editable>true</workflow-editable>
</step>
The heading is the title of your step (put this is messages.xml).
The processing-class is the class referred to in this e-mail as the first
class
The xmlui-binding is the class referred to in this e-mail as the second
class
Hope this helps and if you have any further questions about this please
don't hesitate to ask.
Kind regards,
Kevin Van de Velde
@mire - www.atmire.com
533 2nd Street - Encinitas, CA 92024 - USA
Technologielaan 9 - 3001 Heverlee - Belgium
http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther
2009/6/2 Corey Davis <[email protected]>
> Hi all,
>
> I'd like to add an "information page" to our XMLUI submission process,
> basically just some static content between the Review and the License
> section.
>
> Any insights?
>
> Thanks,
> Corey
>
> Corey Davis, MLIS
> Technical Services Librarian
> Royal Roads University
> 2005 Sooke Rd. Victoria, B.C. Canada V9B 5Y2
> (250) 391 2575
> [email protected]
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech