Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Update sample to make it work again #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ repositories {
}

dependencies {
compile 'net.opacapp:libopac:5.2.5'
implementation 'net.opacapp:libopac:6.3.8'
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/main/java/net/opacapp/sample/libopacgradle/HelloOpac.java
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand All @@ -33,7 +33,7 @@ public static void main(final String[] args) throws JSONException, OpacApi.OpacE
List<SearchField> searchFields = api.getSearchFields();
System.out.println("Found a first search field: " + searchFields.get(0).getDisplayName());

List<SearchQuery> query = new ArrayList<SearchQuery>();
List<SearchQuery> query = new ArrayList<>();
query.add(new SearchQuery(searchFields.get(0), "Hello"));
System.out.println("Searching for 'hello' in this field...");

Expand Down