Re: [dspace-tech] JSPui in pt DSpace 6.

2016-03-31 Thread Claudia Jürgen

Hello Luiz,

unless this is otherwise inernationalized. For the time being, just add

news-top_[LOCALE].html
news-side_[LOCALE].html


for every Locale you got defined in
[dspace]/config/dspace.cfg
webui.supported.locales= LOCALE, LOCALE, ...

Hope this helps

Claudia


Am 30.03.2016 um 19:25 schrieb Luiz dos Santos:

I got the error in the jspui, I figured out that it is related with the
bean NewsServiceImpl receiving the values news-top.html and news-side.html
as parameter in the constructor.


  
  
  news-top.html
  news-side.html
  
  
  

But when I was debugging, the value in the parameter String newsName was
news-top_pt.html.

@Override
  public boolean validate(String newsName) {
  if (acceptableFilenames != null) {
  return acceptableFilenames.contains(newsName);
  }
  return false;
  }

And as the news-top_pt.html is not in the list acceptableFilenames, the
code below through a exception:

if (!validate(newsFile)) {
  throw new IllegalArgumentException("The file "+ newsFile + " is
not a valid news file");
  }

Now I got lost, I don't if I have to fix it not allowing the
"news-top_pt.html" or adding the "news-top_pt.html" in the bean
configuration file. What should be the approach here?

Best

Luiz



--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] JSPui in pt DSpace 6.

2016-03-30 Thread Luiz dos Santos
I got the error in the jspui, I figured out that it is related with the
bean NewsServiceImpl receiving the values news-top.html and news-side.html
as parameter in the constructor.




news-top.html
news-side.html




But when I was debugging, the value in the parameter String newsName was
news-top_pt.html.

@Override
public boolean validate(String newsName) {
if (acceptableFilenames != null) {
return acceptableFilenames.contains(newsName);
}
return false;
}

And as the news-top_pt.html is not in the list acceptableFilenames, the
code below through a exception:

if (!validate(newsFile)) {
 throw new IllegalArgumentException("The file "+ newsFile + " is
not a valid news file");
 }

Now I got lost, I don't if I have to fix it not allowing the
"news-top_pt.html" or adding the "news-top_pt.html" in the bean
configuration file. What should be the approach here?

Best

Luiz

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.