Fixed SDMX export
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-resources-widget@153278 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
682191d782
commit
38929766da
|
@ -146,5 +146,8 @@ public interface ResourcesMessages extends Messages {
|
|||
@DefaultMessage("Error invalid resource!")
|
||||
String errorInvalidResource();
|
||||
|
||||
@DefaultMessage("Operation not allowed on this type of resource!")
|
||||
String operationNotAllowedOnThisTypeOfResource();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -457,6 +457,11 @@ public class ResourcesPanel extends FramedPanel {
|
|||
|
||||
// set the width of the text input cell
|
||||
if (value != null && value.getResourceType() != null) {
|
||||
sb.appendHtmlConstant("<div style='display:block;float:left;'>");
|
||||
cell.render(context, hasCell.getValue(value), sb);
|
||||
sb.appendHtmlConstant("</div>");
|
||||
|
||||
/*
|
||||
switch (value.getResourceType()) {
|
||||
case CHART:
|
||||
sb.appendHtmlConstant("<div style='display:block;float:left;'>");
|
||||
|
@ -549,7 +554,7 @@ public class ResourcesPanel extends FramedPanel {
|
|||
}
|
||||
break;
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
@ -838,24 +843,28 @@ public class ResourcesPanel extends FramedPanel {
|
|||
requestSaveResource(resourceTDDescriptor, MimeTypeSupport._jpg);
|
||||
break;
|
||||
case CODELIST:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case CSV:
|
||||
requestSaveResource(resourceTDDescriptor, MimeTypeSupport._csv);
|
||||
break;
|
||||
case GUESSER:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case JSON:
|
||||
requestSaveResource(resourceTDDescriptor, MimeTypeSupport._json);
|
||||
break;
|
||||
case MAP:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case SDMX:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case GENERIC_FILE:
|
||||
requestSaveResource(resourceTDDescriptor, MimeTypeSupport._unknow);
|
||||
break;
|
||||
case GENERIC_TABLE:
|
||||
// requestSaveResource(resourceTDDescriptor, MimeTypeSupport._csv);
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -948,12 +957,16 @@ public class ResourcesPanel extends FramedPanel {
|
|||
repquestOpenChart(resourceTDDescriptor);
|
||||
break;
|
||||
case CODELIST:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case CSV:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case GUESSER:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case JSON:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
case MAP:
|
||||
requestOpenMap(resourceTDDescriptor);
|
||||
|
@ -965,6 +978,7 @@ public class ResourcesPanel extends FramedPanel {
|
|||
requestOpenGenericFile(resourceTDDescriptor);
|
||||
break;
|
||||
case GENERIC_TABLE:
|
||||
UtilsGXT3.info(msgsCommon.attention(), msgs.operationNotAllowedOnThisTypeOfResource());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -43,3 +43,4 @@ resourceSortInfo =
|
|||
resourceSortInfo[Name] = Name
|
||||
resourceSortInfo[CreationDate] = Creation Date
|
||||
errorInvalidResource = Error invalid resource!
|
||||
operationNotAllowedOnThisTypeOfResource = Operation not allowed on this type of resource!
|
|
@ -43,4 +43,4 @@ resourceSortInfo=
|
|||
resourceSortInfo[Name]= Nombre
|
||||
resourceSortInfo[CreationDate]= Fecha Creacion
|
||||
errorInvalidResource = Error recurso no válido!
|
||||
|
||||
operationNotAllowedOnThisTypeOfResource = No se permite la operación en este tipo de recurso!
|
||||
|
|
|
@ -43,3 +43,4 @@ resourceSortInfo =
|
|||
resourceSortInfo[Name] = Nome
|
||||
resourceSortInfo[CreationDate] = Data Creazione
|
||||
errorInvalidResource = Errore risorsa non valida!
|
||||
operationNotAllowedOnThisTypeOfResource = Operazione non permessa su questo tipo di risorsa!
|
Loading…
Reference in New Issue