revisited the searching result phrase
This commit is contained in:
parent
4b13d849a5
commit
b1a09b39e3
|
@ -286,7 +286,8 @@ public class SearchFacilityUI extends Composite {
|
|||
@Override
|
||||
public void onSuccess(ResultSetPaginatedDataIDs result) {
|
||||
|
||||
appManagerBus.fireEvent(new SearchPerformedEvent(profileID, result.getResultSetProjectIDs(), false));
|
||||
appManagerBus
|
||||
.fireEvent(new SearchPerformedEvent(profileID, result.getResultSetProjectIDs(), false));
|
||||
|
||||
setSearchEnabled(true);
|
||||
latestResult = result;
|
||||
|
@ -304,18 +305,18 @@ public class SearchFacilityUI extends Composite {
|
|||
|
||||
String message = "";
|
||||
if (allItems > returnedItems) {
|
||||
message = "Too many results found. Below are " + returnedItems + " out of " + allItems
|
||||
+ " results";
|
||||
} else if (returnedItems>0){
|
||||
message = "Your query returns too many results (" + allItems
|
||||
+ "). Please find below the top " + returnedItems + ".<br>";
|
||||
} else if (returnedItems > 0) {
|
||||
message = "Found " + returnedItems;
|
||||
message += returnedItems > 0 ? " items" : " item";
|
||||
|
||||
message += ". ";
|
||||
}
|
||||
|
||||
if (returnedItems>0) {
|
||||
message += ". Projects (with a centroid) matching your search are shown on the Map";
|
||||
|
||||
if (returnedItems > 0) {
|
||||
message += "On the map you can see all the projects with a centroid matching the query";
|
||||
}
|
||||
|
||||
|
||||
HTML resultMessage = new HTML(message);
|
||||
resultMessage.getElement().addClassName("search_result_msg");
|
||||
|
||||
|
@ -353,7 +354,7 @@ public class SearchFacilityUI extends Composite {
|
|||
public void onClick(ClickEvent event) {
|
||||
GeoportalItemReferences gir = new GeoportalItemReferences(resultDoc.getProjectID(),
|
||||
profileID);
|
||||
//here
|
||||
// here
|
||||
appManagerBus.fireEvent(new ClosedViewDetailsEvent());
|
||||
appManagerBus.fireEvent(new ShowDetailsEvent(gir, null, true));
|
||||
appManagerBus.fireEvent(new ShowPopupOnCentroiEvent(profileID,
|
||||
|
|
Loading…
Reference in New Issue