Added how-to to search facility

task/19600
francesco 4 years ago
parent 0aebe0d4c3
commit a84d2b7124

@ -23,6 +23,9 @@ public interface WsPortletResources extends ClientBundle {
@Source("shareablelinks-howto.txt")
TextResource publicLinkHowTo();
@Source("search-howto.txt")
TextResource searchHowTo();
// @Source("sharelink-howto.txt")
// TextResource shareLinkkHowTo();
}

@ -0,0 +1,10 @@
<div style='text-align:justify'>
You can use the search facility typing a 'text' to search for name (files and folders) saved in the Workspace.
As advanced option, you can type the wildcard % (percent sign) that matches zero or more characters (except white space):
<ul>
<li>used at the end of a root word (as suffix)</li>
You are able to search for any text ending of a root word. For example: searching for data% the results will include dataminer, datasets, etc.
<li>used at the start of a root word (as prefix)</li>
You are able to search for any text starting of a root word. For example: searching for %data the results will include mydata, personaldata, etc.
</ul>
</div>

@ -58,7 +58,7 @@ public class WorkspaceFeaturesView extends Composite {
@UiField Label shf; //Share Folders & Files
private Popover overShF= new Popover();
private Popover overShF = new Popover();
@UiField Label upl; //UPLOAD
@ -68,14 +68,15 @@ public class WorkspaceFeaturesView extends Composite {
private Popover overPlk = new Popover();
// @UiField Label flk; //FOLDER PUBLIC LINK
// private Popover overFolderlk = new Popover();
@UiField Label versioning; //VERSIONING
private Popover overversioninglk = new Popover();
@UiField Label srh; //search
private Popover overSearch = new Popover();
@UiField
FlowPanel fp1;
@ -134,11 +135,13 @@ public class WorkspaceFeaturesView extends Composite {
// ck_features_show_again.getElement().getFirstChildElement().setId("check_features_donotshowagain");
ck_features_show_again.addStyleName("margin-right-10");
srh.addStyleName("margin-right-10");
shf.addStyleName("margin-right-10");
upl.addStyleName("margin-right-10");
// flk.addStyleName("margin-right-10");
plk.addStyleName("margin-right-10");
initPopupShareFeature();
initPopupSearchFeature();
// initPopupFlkFeature();
initPopupUploadFeature();
initPopupPlkFeature();
@ -169,6 +172,8 @@ public class WorkspaceFeaturesView extends Composite {
});
}
/**
*Inits the popup versioning feature.
*/
@ -216,6 +221,19 @@ public class WorkspaceFeaturesView extends Composite {
overShF.reconfigure();
}
private void initPopupSearchFeature() {
overSearch.setAnimation(true);
overSearch.setWidget(srh);
String icon = "<span style=\"margin-right:5px\">"+Resources.getIconSearchWs().getSafeHtml().asString()+"</span>";
overSearch.setHeading(icon+"Search into Workspace");
overSearch.setText(WsPortletResources.INSTANCE.searchHowTo().getText());
overSearch.setHtml(true);
overSearch.setPlacement(Placement.BOTTOM);
overSearch.setTrigger(Trigger.HOVER);
overSearch.reconfigure();
}
/**
* Inits the popup upload feature.
*/

@ -27,7 +27,7 @@
<g:FlowPanel ui:field="fp2">
<g:HorizontalPanel ui:field="ws_features"
verticalAlignment="middle">
<b:Label ui:field="srh" text="Search"></b:Label>
<b:Label ui:field="shf" text="Share"></b:Label>
<!-- <b:Label ui:field="flk" text="Share Link"></b:Label> -->
<b:Label ui:field="plk" text="Shareable Links"></b:Label>

Loading…
Cancel
Save