Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into biblioVino
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Dec 13, 2024
2 parents a3dab17 + 76af230 commit e536325
Show file tree
Hide file tree
Showing 10 changed files with 320,099 additions and 236,880 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ RPB-Export_HBZ_ZSS.txt
conf/RPBEXP/*.ZIP
conf/strapi-export.tar.gz
nohup.out*
conf/*.ndjson
conf/*.zip
4 changes: 3 additions & 1 deletion app/controllers/nwbib/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ public static Promise<Result> search(final String q, final String person,
response().setHeader("Pragma", "no-cache");
response().setHeader("Expires", "0");
}
String cacheId = String.format("%s-%s", uuid, request().uri());
String cacheId = request().queryString().isEmpty() ? request().uri()
: String.format("%s-%s", uuid, request().uri());
@SuppressWarnings("unchecked")
Promise<Result> cachedResult = (Promise<Result>) Cache.get(cacheId);
if (cachedResult != null)
Expand Down Expand Up @@ -957,6 +958,7 @@ public static Promise<Result> put(String id, String secret) throws FileNotFoundE
String result = Files.readAllLines(Paths.get(output.getAbsolutePath())).stream().collect(Collectors.joining("\n"));
boolean authorized = !secret.trim().isEmpty() && secret.equals(CONFIG.getString("secret"));
if (authorized) {
Cache.remove(String.format("/%s", id));
String url = "http://weywot3:9200/resources-rpb-test/resource/"
+ URLEncoder.encode("https://lobid.org/resources/" + id, "UTF-8");
WSRequest request = WS.url(url).setHeader("Content-Type", "application/json");
Expand Down
2 changes: 1 addition & 1 deletion app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h1>BiblioVino<br/><small>Bibliographie zur Geschichte und Kultur des Weines <sp
<div class="panel panel-default nwbib-footer">
<div class="panel-body">
@defining(controllers.nwbib.Lobid.getTotalHits("").get(Lobid.API_TIMEOUT)){ hits =>
<img class="media-object pull-left nrw-wappen" src="@controllers.routes.Assets.at("images/wappen.png")" alt="NRW-Wappen">
<img class="media-object pull-left nrw-wappen" src="@controllers.routes.Assets.at("images/wappen.png")" alt="RLP-Wappen">
<img class="media-object pull-right hbz-logo" src="@controllers.routes.Assets.at("images/hbz.png")" alt="hbz-Logo">
BiblioVino enthält aktuell @hits Literaturnachweise | Ein Entwicklungsprojekt von <a href="https://lbz.rlp.de/">lbz</a> &amp; <a href="http://www.hbz-nrw.de/">hbz</a>
}
Expand Down
2 changes: 0 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ lazy val root = (project in file(".")).enablePlugins(PlayJava)

javacOptions ++= Seq("-source", "1.8", "-target", "1.8")

javaOptions += "-Dnet.sf.ehcache.disabled=true"

import com.typesafe.sbteclipse.core.EclipsePlugin.EclipseKeys

EclipseKeys.projectFlavor := EclipseProjectFlavor.Java // Java project. Don't expect Scala IDE
Expand Down
Loading

0 comments on commit e536325

Please sign in to comment.