[Dspace-tech] Removing the 1st step from submission.

111 views
Skip to first unread message

Blanco, Jose

unread,
Aug 25, 2015, 11:10:05 AM8/25/15
to dspac...@lists.sourceforge.net
I would like to remove the 1st step from the submission. I have already
taken care of the title and publisher questions that appear in the 1st
step, and I would like now to have it assume that there are multiple
files for the submission. I think that the easiest way to do this is to
call the WorkspaceItem.setMultiplefiles method with true, but I'm not
sure from where, since it's normally called when the initial questions
page is processed. Any ideas?

Thanks!
Jose

Tim Donohue

unread,
Aug 25, 2015, 11:10:06 AM8/25/15
to Blanco, Jose, dspac...@lists.sourceforge.net
Jose,

We created a custom "invisible" step in our DSpace 1.5 Submission
process, in order to set some defaults and remove that 1st "Initial
Questions" step. I've attached our InitializationStep.java to this
email, for your usage/modification (and for anyone else interested).
Once you have the source code in place, you should be able to enable it
in your item-submission.xml with the following:

<step>
<processing-class>edu.uiuc.dspace.submit.step.InitializationStep</processing-class>
<workflow-editable>false</workflow-editable>
</step>

(Obviously, don't forget to remove or comment out the configuration for
the "InitialQuestionsStep" in your item-submission.xml)

Yes, I need to writeup a simple little "How-To" on the DSpace Wiki for
this one. But, until then, I thought I'd just send this out via the list :)

- Tim
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> DSpac...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>

--
Tim Donohue
Research Programmer, Illinois Digital Environment for
Access to Learning and Scholarship (IDEALS)
University of Illinois at Urbana-Champaign
tdon...@illinois.edu | (217) 333-4648
InitializationStep.java

Tim Donohue

unread,
Aug 25, 2015, 11:10:08 AM8/25/15
to Blanco, Jose, dspac...@lists.sourceforge.net
Jose,

It looks like you didn't rebuild everything properly. The error is
saying that it cannot find that new Java class. Generally, you should
be doing the following:

(1) Place that file in
"dspace-api/src/main/java/org/dspace/submit/step/". Alternatively, if
you didn't have the 'dspace-api' source checked out, you could place it
in
"[dspace-src]/dspace/modules/xmlui/src/main/java/org/dspace/submit/step/"
(the latter path just adds the java code to the "overlay" for your XMLUI
ONLY!)

(2) Re-package via Maven:
mvn package

(3) Re-Install updated JAR/WAR to your installation location:
cd /dspace/target/dspace-1.5.0-build.dir/
ant update

(4) Copy over the updated item-submission.xml to your installation
directory (i.e. [dspace]/config/item-submission.xml)

(5) Restart Tomcat (Don't forget to copy new WAR over to Tomcat
/webapps, before you restart.)

I hope that helps...

- Tim


Blanco, Jose wrote:
> Tim:
>
> I put the file in
> dspace-api/src/main/java/org/dspace/submit/step/
>
> I configured the file like this:
>
> <step>
>
> <processing-class>org.dspace.submit.step.InitializationStep</processing-
> class>
> <workflow-editable>false</workflow-editable>
> </step>
>
> But I'm getting this error:
>
> 2008-09-03 12:14:57,076 ERROR
> org.dspace.app.webui.servlet.SubmissionController @ Error loading step
> class'org.dspace.submit.step.InitializationStep':
> java.lang.ClassNotFoundException:
> org.dspace.submit.step.InitializationStep
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .java:1363)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .java:1209)
> at
> org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java:
> 124)
> at
> org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionContr
> oller.jav

Blanco, Jose

unread,
Aug 25, 2015, 11:10:08 AM8/25/15
to Tim Donohue, dspac...@lists.sourceforge.net

Blanco, Jose

unread,
Aug 25, 2015, 11:10:09 AM8/25/15
to Tim Donohue, dspac...@lists.sourceforge.net
Tim:

I had

package edu.uiuc.dspace.submit.step;

In the file instead of

org.dspace.submit.step;

Thank you!
Jose

-----Original Message-----
From: Tim Donohue [mailto:tdon...@illinois.edu]
Sent: Wednesday, September 03, 2008 12:29 PM
To: Blanco, Jose
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] Removing the 1st step from submission.

Jose,

Susan Parham

unread,
Aug 25, 2015, 11:10:11 AM8/25/15
to dspac...@lists.sourceforge.net
Thanks for sharing this Tim, as it is something we hope to do soon!

Susan




--
Susan Wells Parham
Head, Digital Library Development
Georgia Institute of Technology
Library & Information Center
404-894-4522
susan....@gatech.edu

Blanco, Jose

unread,
Aug 25, 2015, 11:10:12 AM8/25/15
to Tim Donohue, dspac...@lists.sourceforge.net
Tim:

I'm getting a different error now:

2008-09-03 13:27:50,426 ERROR
org.dspace.app.webui.servlet.SubmissionController @ Error loading step
class'org.dspace.submit.step.InitializationStep':
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1278)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1209)
at
org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java:
145)
at org.dspace.app.webui.servlet.SubmissionC

-----Original Message-----
From: Tim Donohue [mailto:tdon...@illinois.edu]
Sent: Wednesday, September 03, 2008 12:29 PM
To: Blanco, Jose
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] Removing the 1st step from submission.

Jose,

> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> er
> .java:1363)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> er

Tim Donohue

unread,
Aug 25, 2015, 11:10:13 AM8/25/15
to Blanco, Jose, dspac...@lists.sourceforge.net
Jose,

It looks like there *may* be a bug in the 1.5.0 JSPUI regarding these
non-interactive steps...though I haven't been able to look at it close
enough to be 100% sure. The InitializationStep I sent you works fine
with the XMLUI (which is what I'm working with). I'll look into the
problems with the JSPUI, though I may not get to it till tomorrow.

I'll let you know what I find out.

Blanco, Jose

unread,
Aug 25, 2015, 11:10:15 AM8/25/15
to Tim Donohue, dspac...@lists.sourceforge.net
Thank you!

-----Original Message-----
From: Tim Donohue [mailto:tdon...@illinois.edu]
Sent: Wednesday, September 03, 2008 2:16 PM
To: Blanco, Jose
Cc: dspac...@lists.sourceforge.net
Subject: Re: [Dspace-tech] Removing the 1st step from submission.

Jose,

It looks like there *may* be a bug in the 1.5.0 JSPUI regarding these
non-interactive steps...though I haven't been able to look at it close
enough to be 100% sure. The InitializationStep I sent you works fine
with the XMLUI (which is what I'm working with). I'll look into the
problems with the JSPUI, though I may not get to it till tomorrow.

I'll let you know what I find out.

- Tim

Blanco, Jose wrote:
> Tim:
>
> I'm getting a different error now:
>
> 2008-09-03 13:27:50,426 ERROR
> org.dspace.app.webui.servlet.SubmissionController @ Error loading step
> class'org.dspace.submit.step.InitializationStep':
> java.lang.NullPointerException
> at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:269)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> er
> .java:1278)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoad
> er
> .java:1209)
> at
>
org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java:

Robert Roggenbuck

unread,
Aug 25, 2015, 11:10:23 AM8/25/15
to Tim Donohue, dspac...@lists.sourceforge.net, Blanco, Jose
Hi Tim,

just to let You know: I applied Your solution with the same "success"
and the same environment (JSPUI 1.5.0).

In general I would like to have things like this more easy to configure
in further releases of DSpace: Switching submit steps off for particular
collections and preset the needed values.

Anyway I am very lucky with Your solution - when it works ;-)

Greetings

Robert


Tim Donohue schrieb:
> Jose,
>
> It looks like there *may* be a bug in the 1.5.0 JSPUI regarding these
> non-interactive steps...though I haven't been able to look at it close
> enough to be 100% sure. The InitializationStep I sent you works fine
> with the XMLUI (which is what I'm working with). I'll look into the
> problems with the JSPUI, though I may not get to it till tomorrow.
>
> I'll let you know what I find out.
>
> - Tim
>

--

===================================
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Osnabrueck
Germany
===================================

Tim Donohue

unread,
Aug 25, 2015, 11:10:30 AM8/25/15
to Blanco, Jose, dspac...@lists.sourceforge.net
Jose & All,

I've verified that there is a *bug* in the *1.5.0 JSPUI* and *1.5.1beta
JSPUI* which means that custom, non-interactive steps (like the
InitializationStep I sent out earlier) do not work properly (i.e. they
will always throw an error when encountered).

I've just fixed this bug in the latest DSpace 1.5.x branch, which means
it will be fixed in the eventual 1.5.1 final release.

This bug doesn't affect the XMLUI, so everything works fine with that
interface in both 1.5.0 and 1.5.1-beta.

If you wanted a fix *before* the 1.5.1 final release, I also uploaded a
patch to SourceForge:

https://sourceforge.net/tracker/index.php?func=detail&aid=2095402&group_id=19984&atid=119984

The only file affected is the org.dspace.app.webui.submit.JSPStepManager
from the 'dspace-jspui-api' module.

- Tim

Blanco, Jose

unread,
Aug 25, 2015, 11:10:34 AM8/25/15
to Tim Donohue, dspac...@lists.sourceforge.net
I just put in the patch and it worked.

Thank you!
-Jose
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>> der
>> .java:1209)
>> at
>>
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
>>> ad
>>> er
>>> .java:1363)
>>> at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
>>> ad
Reply all
Reply to author
Forward
0 new messages