diff --git a/build.gradle b/build.gradle index 29c27b5..328d4de 100644 --- a/build.gradle +++ b/build.gradle @@ -13,5 +13,5 @@ repositories { } dependencies { - compile 'net.opacapp:libopac:5.2.5' + implementation 'net.opacapp:libopac:6.3.8' } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37252ec..056e967 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Apr 14 14:50:22 CEST 2016 +#Tue Mar 02 12:59:57 CET 2021 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip diff --git a/src/main/java/net/opacapp/sample/libopacgradle/HelloOpac.java b/src/main/java/net/opacapp/sample/libopacgradle/HelloOpac.java index 9bdf584..0a63aba 100644 --- a/src/main/java/net/opacapp/sample/libopacgradle/HelloOpac.java +++ b/src/main/java/net/opacapp/sample/libopacgradle/HelloOpac.java @@ -17,7 +17,7 @@ public class HelloOpac { public static String LIBRARY_NAME = "Bremen"; - public static String LIBRARY_CONFIG = "{\"account_supported\":true,\"api\":\"sisis\",\"city\":\"Bremen\",\"country\":\"Deutschland\",\"data\":{\"baseurl\":\"https://opac.stadtbibliothek-bremen.de/webOPACClient\"},\"geo\":[53.07929619999999,8.8016937],\"information\":\"http://www.stadtbibliothek-bremen.de/bibliotheken.php\",\"replacedby\":\"de.opacapp.bremen\",\"state\":\"Bremen\",\"title\":\"Stadtbibliothek\"}"; + public static String LIBRARY_CONFIG = "{\"account_supported\":true,\"api\":\"sisis\",\"city\":\"Bremen\",\"country\":\"Deutschland\",\"data\":{\"baseurl\":\"https://opac.stabi-hb.de/webOPACClient\"},\"geo\":[53.07929619999999,8.8016937],\"information\":\"http://www.stadtbibliothek-bremen.de/bibliotheken.php\",\"replacedby\":\"de.opacapp.bremen\",\"state\":\"Bremen\",\"title\":\"Stadtbibliothek\"}"; public static void main(final String[] args) throws JSONException, OpacApi.OpacErrorException, IOException { System.out.println("Hello OPAC!"); @@ -33,7 +33,7 @@ public static void main(final String[] args) throws JSONException, OpacApi.OpacE List searchFields = api.getSearchFields(); System.out.println("Found a first search field: " + searchFields.get(0).getDisplayName()); - List query = new ArrayList(); + List query = new ArrayList<>(); query.add(new SearchQuery(searchFields.get(0), "Hello")); System.out.println("Searching for 'hello' in this field...");