Skip to content

Commit

Permalink
Fix #34 (#35)
Browse files Browse the repository at this point in the history
* Updated Front END

* Datalet Synch Icon

* FrontEnd updates

* Adding internazionalization (EN - IT)

* Internazionalization Updates

* Fix Municipality Translation

* Responsivness

* Toggle button fix

* Added About section

* Internationalization Administration Functionalities

* Changes Next Release updated

* WordCloud Fix; SVG logo; disable pass update if Fiware

* Modified Screenshots

* Modified changes next release

* Update Changelog
Merge pull request #1 from OPSILab/master

Updating Fork
Addedd Related Resource to DCATDataset model
Persistence Manager Fix
Updated Front END
Datalet Synch Icon
Updates for Incubated Status

* Reformatted Markdown
* Restructured README according to standard-readme
* Added additional badges to readme and docs front-page
* Added code highlights
* Added FIWARE CSS and favicon

Merge pull request #9 from jason-fox/feature/css-badges-readme

Updates for Incubated Status
FrontEnd updates
Merge remote-tracking branch 'origin/frontend-update'
Merge branch 'master' of https://github.com/robcalla/Idra.git
Adding internazionalization (EN - IT)
Internazionalization Updates
Fix Municipality Translation
Responsivness
Toggle button fix
Added About section
Fixed docker-compose

Dump path for idra_db.sql fixed and wait-for-it script for DB container
added
Internationalization Administration Functionalities
Changes Next Release updated
WordCloud Fix; SVG logo; disable pass update if Fiware
Merge branch 'master' of https://github.com/OPSILab/Idra.git
Transferring API Description file from Apiary.io
Modified Screenshots
Merge branch 'master' of https://github.com/OPSILab/Idra.git
Modified changes next release

* Statistics First Commit

* Statistics Section Updated

* TagCloud update

* Statistics Updated

* Statistics Server Updated

* Statistics updated solr schema

* File Preview First commit

* Update Client Configurations for Preview

* Front End Updates

* Preview fix

* Fix

* Add license scan report and status

Signed-off-by: fossabot <badges@fossa.io>

* Added Support to KML file - resolving #14

* Fix

* Fix geojson preview

* Added Timeout on Preview

* Updated Pom

* Rights Holder minor fix

* Minor Fix

* Updated changes next release

* DCATDumpConnector fix

* Updated Changes Next Release

* Changed Version Property to v1.3.0

* Updated Changes next release

* Junar & OpenDataSoft Fix

* Updated CHANGES_NEXT_RELEASE

* Removed default api-key value

* Fix Idm login issue

* Fix #34 and update
  • Loading branch information
robcalla committed Mar 6, 2019
1 parent ea64e20 commit a6abfe5
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 24 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
v1.3.0
- New Feature: Added Distribution Preview for CSV, JSON, PDF, XML, GEOJSON and KML files
- New Feature: Added Statistics section about catalogues, distribution formats and licenses
- Fix: Minor fix for DCATDumpConnector
- New Feature: Support for OpenDataSoft Catalogues
- New Feature: Support for Junar Catalogues

v1.2.0:
- New Feature: Support for StatPortal OpenData (SPOD) portals
- New Feature: Idra portal - Multilanguage support (EN,IT)
Expand Down
8 changes: 2 additions & 6 deletions CHANGES_NEXT_RELEASE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
v1.3.0
- New Feature: Added Distribution Preview for CSV, JSON, PDF, XML, GEOJSON and KML files
- New Feature: Added Statistics section about catalogues, distribution formats and licenses
- Fix: Minor fix for DCATDumpConnector
- New Feature: Support for OpenDataSoft Catalogues
- New Feature: Support for Junar Catalogues
v1.3.1
- Fix: Idm Login #34
10 changes: 5 additions & 5 deletions Idra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,11 @@

<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-core -->
<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-parsers -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>1.20</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.apache.tika</groupId> -->
<!-- <artifactId>tika-parsers</artifactId> -->
<!-- <version>1.20</version> -->
<!-- </dependency> -->


<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
Expand Down
18 changes: 10 additions & 8 deletions Idra/src/main/java/it/eng/idra/api/ClientAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.ArrayList;
Expand All @@ -67,7 +68,6 @@
import java.util.List;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import javax.servlet.http.HttpServletRequest;
Expand Down Expand Up @@ -101,8 +101,6 @@

import org.apache.logging.log4j.*;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.tika.parser.txt.CharsetDetector;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;

@Path("/client")
Expand Down Expand Up @@ -559,8 +557,12 @@ public Response downloadFromUri(@Context HttpServletRequest httpRequest, @QueryP

logger.info("Download file API: "+downloadFile);
String compiledUri = url;
client = ClientBuilder.newBuilder().connectTimeout(5, TimeUnit.SECONDS).readTimeout(5, TimeUnit.SECONDS).build();
// client = ClientBuilder.newClient();
//client = ClientBuilder.newBuilder().readTimeout(10, TimeUnit.SECONDS).build();

client = ClientBuilder.newClient();
client.property(ClientProperties.CONNECT_TIMEOUT, 5000);
client.property(ClientProperties.READ_TIMEOUT, 5000);

try {
WebTarget webTarget = client.target(compiledUri);
Response request = webTarget.request().get();
Expand All @@ -571,9 +573,9 @@ public Response downloadFromUri(@Context HttpServletRequest httpRequest, @QueryP

if(StringUtils.isNotBlank(format) && format.toLowerCase().contains("csv")) {
InputStream stream = new BufferedInputStream((InputStream) request.getEntity());
CharsetDetector charDetector = new CharsetDetector();
charDetector.setText(stream);
responseBuilder.entity(new InputStreamReader(stream,charDetector.detect().getName()));
// CharsetDetector charDetector = new CharsetDetector();
// charDetector.setText(stream);
responseBuilder.entity(new InputStreamReader(stream,StandardCharsets.ISO_8859_1));
}else {
responseBuilder.entity(new StreamingOutput() {
@Override
Expand Down
4 changes: 2 additions & 2 deletions Idra/src/main/resources/configuration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------
################# PLATFORM API ###################################
idra.version=1.3.0
idra.release.timestamp=2019-02-27T13:00:00Z
idra.version=1.3.1
idra.release.timestamp=2019-03-06T17:00:00Z

################# PERSISTENCE MANAGER CONFIGURATION ##############
#&rewriteBatchedStatements\=true
Expand Down
4 changes: 2 additions & 2 deletions IdraPortal/src/main/webapp/catalogues/single_catalogue.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
homepageInvalid:false,
refreshPeriod:"",
description:"",
APIKey: 'prova-api-key',
APIKey: '',
location:"",
locationDescription:"",
dcatProfile:'',
Expand Down Expand Up @@ -363,7 +363,7 @@ angular.module("IdraPlatform").controller('CatalogueCtrl',['$scope','$http','con
location:"",
dcatProfile:'',
locationDescription:"",
APIKey: 'prova-api-key',
APIKey: '',
image: {
imageData: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAABuNJREFUeAHtXFtIV00QHzUtTeyeaT4oFUU3kJIkItGXyh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IIN+IGe0KIASBusRDCjbjBnhBiAIhbLIRwI26wJ4QYAOIWCyHciBvsCSEGgLjFQgg34gZ7QogBIG6xEMKNuMGeEGIAiFsshHAjbrAnhBgA4hYLIdyIG+z9A3SkySJaRUI8AAAAAElFTkSuQmCC"
},
Expand Down
2 changes: 1 addition & 1 deletion IdraPortal/src/main/webapp/css/bootstrap-restyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ a {
/* CONTENT */

#content {
padding-top: 8em;
padding-top: 6em;
/*padding-top: 5.5em;*/
}

Expand Down

0 comments on commit a6abfe5

Please sign in to comment.