|
|
|
@ -242,19 +242,19 @@ public class SearchFacilityUI extends Composite {
|
|
|
|
|
FlexTable ft = new FlexTable();
|
|
|
|
|
ft.getElement().setClassName("table-results");
|
|
|
|
|
int i = 1;
|
|
|
|
|
ft.setWidget(0, i, new HTML("Name"));
|
|
|
|
|
ft.setWidget(0, i, new HTML("Nome Progetto"));
|
|
|
|
|
|
|
|
|
|
String selValue = listBoxSearchFor.getSelectedValue().toLowerCase();
|
|
|
|
|
|
|
|
|
|
boolean addIntroduction = false;
|
|
|
|
|
if(selValue.startsWith("name") || selValue.startsWith("any")) {
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Introduction"));
|
|
|
|
|
if(selValue.startsWith("proj") || selValue.startsWith("any")) {
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Introduzione"));
|
|
|
|
|
addIntroduction = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean addStaff = false;
|
|
|
|
|
if(selValue.startsWith("direttore")) {
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Authors"));
|
|
|
|
|
if(selValue.startsWith("director")) {
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Autori"));
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Responsabile"));
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Editore"));
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Titolari"));
|
|
|
|
@ -262,7 +262,7 @@ public class SearchFacilityUI extends Composite {
|
|
|
|
|
addStaff = true;
|
|
|
|
|
}
|
|
|
|
|
boolean addParole = false;
|
|
|
|
|
if(selValue.startsWith("parola")) {
|
|
|
|
|
if(selValue.startsWith("keyword")) {
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Parole Libere"));
|
|
|
|
|
ft.setWidget(0, ++i, new HTML("Parole Cronologia"));
|
|
|
|
|
addParole = true;
|
|
|
|
@ -292,7 +292,7 @@ public class SearchFacilityUI extends Composite {
|
|
|
|
|
|
|
|
|
|
ft.setWidget(i, ++j, new HTML(concessione.getNome()));
|
|
|
|
|
if(addIntroduction)
|
|
|
|
|
ft.setWidget(i, ++j, new HTML(StringUtil.ellipsize(concessione.getIntroduzione(), 100)));
|
|
|
|
|
ft.setWidget(i, ++j, new HTML(StringUtil.ellipsize(concessione.getIntroduzione(), 200)));
|
|
|
|
|
|
|
|
|
|
if(addStaff) {
|
|
|
|
|
ft.setWidget(i, ++j, new HTML(toDisplayList(concessione.getAuthors())));
|
|
|
|
|