Hi Mark,
I tried copying the suggested file (DescribeStep.java) to
[dspace-src]/dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java,
however now on submission the following error is triggered:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
java.lang.NoSuchMethodError:
org.dspace.submit.step.DescribeStep.getInputsReader(Ljava/lang/String;)Lorg/dspace/app/util/DCInputsReader;
org.dspace.app.webui.submit.step.JSPDescribeStep.showEditMetadata(JSPDescribeStep.java:241)
org.dspace.app.webui.submit.step.JSPDescribeStep.doPreProcessing(JSPDescribeStep.java:144)
org.dspace.app.webui.submit.JSPStepManager.doStepStart(JSPStepManager.java:315)
org.dspace.app.webui.submit.JSPStepManager.processStep(JSPStepManager.java:278)
This would appear to be because, AFAICS, the patch file compared to my current
production file removes two code blocks:
The first is:
// Only check for required fields if user clicked the "next", the "previous" or
the "progress bar" button
if (buttonPressed.equals(NEXT_BUTTON)
|| buttonPressed.startsWith(PROGRESS_BAR_PREFIX)
|| buttonPressed.equals(PREVIOUS_BUTTON)
|| buttonPressed.equals(CANCEL_BUTTON))
{
The second (and troublesome one in this instance) is:
/**
* @param filename
* file to get the input reader for
* @return the current DCInputsReader
*/
public static DCInputsReader getInputsReader(String filename) throws
ServletException
{
inputsReader = new DCInputsReader(filename);
return inputsReader;
}
Thus the above exception is thrown. I presume this DCInputsReader method is
being called from somewhere – do I need to make changes to or replace any
other classes?
Thanks
Gary
GARY BROWNE | Development Programmer
Library IT Services | University Library
THE UNIVERSITY OF SYDNEY
T +61 2 9351 5946 | F +61 2 9036 0000
From: mdigg...@gmail.com [mailto:mdigg...@gmail.com] On Behalf Of Mark Diggory
Sent: Thursday, 14 January 2010 3:39 PM
To: Gary Browne
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Display order of authors doesn't match submission
order
Gary,
On Wed, Jan 13, 2010 at 3:32 PM, Gary Browne <gary.bro...@sydney.edu.au> wrote:
Hi all,
I'm running dspace 1.5.2. After submitting an item, the author listing is not
preserved in the same order as the submission order. Is there some
configuration in dspace.cfg which applies to this? I note that there is the
jira issue DS-153 but I'm not clear whether this applies to 1.5.2. If so, are
there instructions somewhere about applying patches to DSpace? I found this:
http://wiki.dspace.org/index.php/ApplyingPatches
but it doesn't actually describe the technical process.
Quick, dirty solution.
Take the following patched version of the file
http://dspace.svn.sourceforge.net/viewvc/dspace/branches/dspace-1_5_x/dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java?revision=3394&pathrev=3394
and place it in one of three possible locations:
If using the full source distribution, you can replace the contents of the
class directly...
[dspace-src]/dspace-api/src/main/java/org/dspace/submit/step/DescribeStep.java
or if using either distribution you cna choose one of the two following
locations:
if using jspui
[dspace-src]/dspace/modules/jspui/src/main/java/org/dspace/submit/step/DescribeStep.java
or if using xmlui
[dspace-src]/dspace/modules/xmlui/src/main/java/org/dspace/submit/step/DescribeStep.java
The later two place the class only within the webapplication you are building.
While the first option will put the class into all webapplications and the lib
directory used for the commandline functionality.
...
Furthermore, I am running another (unpatched) 1.5.2 instance of dspace
which doesn't suffer from this problem - how can that be?
Without reviewing the code, I recall the order of the authors is actually
driven off the order of database records within the metadatavalue table in
database. (someone correct me if I'm in error). Thus differences in behavior
may actually be an artifact of the database behavior. Or perhaps your running
the 1.5.x branch from svn which has this patch applied?
Unfortunately, this is an area where flat old DC records and conversely DSpace
do not have particularly strong support. I suspect that capturing the priority
of authors could possibly best be held in textual form within an additional
field such as dc.identifier.bibliographicCitation field as an unambiguous
original citation for the resource.
I was reading...
http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg05213.html
Which might make things "look" ok in the UI, but I wonder if its of any benefit
in other parts of DSpace like crosswalks or oai. Relying on the order of XML
fields for semantic detail about which is the first, second, third,... author
is going to be both impossible to validate and preserve across disparate
technologies/systems...
See the Dublin Core usage guide, section 3...
http://dublincore.org/documents/usageguide/
Each Dublin Core element is optional and repeatable, and there is no defined
order of elements. The ordering of multiple occurrences of the same element
(e.g., Creator) may have a significance intended by the provider, but ordering
is not guaranteed to be preserved in every user environment. Ordering or
sequencing may be syntax dependent; for instance, RDF/XML supports ordering,
but HTML does not.
Best attempt to preserve this ordering detail in some field such as I've
recommended with dc.identifier.bibliographicCitation, even though the usage
here is not going to get recorded perfectly by your users in all cases it will
be obvious at least somewhere in the record.
Best Regards,
Mark
Mark R. Diggory
Head of U.S. Operations - @mire
http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech