Added check for tags and information for them
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129239 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
60e0d25507
commit
86deeb8ec7
|
@ -20,6 +20,7 @@
|
||||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/gwt-user.jar">
|
<classpathentry kind="lib" path="/home/costantino/Downloads/gwt-2.7.0/gwt-user.jar">
|
||||||
|
|
|
@ -879,6 +879,9 @@ public class CreateDatasetForm extends Composite{
|
||||||
if(!itemBox.getValue().matches("^[a-zA-Z0-9]*$"))
|
if(!itemBox.getValue().matches("^[a-zA-Z0-9]*$"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(itemBox.getValue().length() <= 1)
|
||||||
|
return;
|
||||||
|
|
||||||
final String value = itemBox.getValue();
|
final String value = itemBox.getValue();
|
||||||
final ListItem displayItem = new ListItem();
|
final ListItem displayItem = new ListItem();
|
||||||
displayItem.setStyleName("tag-style");
|
displayItem.setStyleName("tag-style");
|
||||||
|
|
|
@ -87,6 +87,15 @@
|
||||||
<b:TextBox alternateSize="LARGE"
|
<b:TextBox alternateSize="LARGE"
|
||||||
placeholder="Enter one or more tag for the dataset" b:id="tags"
|
placeholder="Enter one or more tag for the dataset" b:id="tags"
|
||||||
ui:field="tagsEnterTextBox" />
|
ui:field="tagsEnterTextBox" />
|
||||||
|
<span style="float:right; width:256px; color: #aaaaaa;">
|
||||||
|
<b:Icon type="INFO_SIGN" size="TWO_TIMES" />
|
||||||
|
Tags are meaningful information that can be associated to the
|
||||||
|
dataset and by means of them
|
||||||
|
it can be retrieved. A tag cannot
|
||||||
|
contain white spaces and can contain only alphanumeric
|
||||||
|
characters.
|
||||||
|
It must be at least of two characters.
|
||||||
|
</span>
|
||||||
</b:Controls>
|
</b:Controls>
|
||||||
</b:ControlGroup>
|
</b:ControlGroup>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue