Hello Mateusz,
Am 06.07.2011 14:59, schrieb Mateusz Neumann:
> * modifying org.dspace.submit.step.DescribeStep.getInputsReader() so
> it would use I18nUtil.getInputFormsFileName(locale) to get the
> actual filename for input-forms (input-forms_pl.xml or
> input-forms.xml in my case)
I think some more changes are necesseary to
[dspace-source]/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/DescribeStep.java
Change
private static void initializeInputsReader()
to pass in a Locale and use it.
private static void initializeInputsReader(Locale locale) throws
DCInputsReaderException
{
INPUTS_READER = new
DCInputsReader(I18nUtil.getInputFormsFileName(locale));
}
Remove the intitialization of the InputReader from
public DescribeStep()
and move it to a new setup method like
public void setup(SourceResolver resolver, Map objectModel, String src,
Parameters parameters)
throws ProcessingException, SAXException, IOException
{
super.setup(resolver,objectModel,src,parameters);
this.locale = context.getCurrentLocale();
//Ensure that the InputsReader is initialized.
try
{
initializeInputsReader(locale);
}
catch (DCInputsReaderException e)
{
throw new ProcessingException(e);
}
}
Note that for each language configured as support even English you need
an input-forms_LOCALE.xml file.
Hope that helps
Claudia Jürgen
--
Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel