diff --git a/app/controllers/HomeController.java b/app/controllers/HomeController.java index 4fdeebf..e11d89b 100644 --- a/app/controllers/HomeController.java +++ b/app/controllers/HomeController.java @@ -183,6 +183,10 @@ public Result authorityDotFormat(final String id, String format) { return authority(id, format); } + public Result authorityPl(String name, String db, int index, int zeilen, String s1) { + return movedPermanently(controllers.routes.HomeController.authority(s1, null)); + } + public Result authority(String id, String format) { SearchHits hits = index .query(String.format("deprecatedUri:\"%s%s\"", AuthorityResource.GND_PREFIX, id), "", "", 0, 1) diff --git a/conf/routes b/conf/routes index bef4c8c..d6d3789 100644 --- a/conf/routes +++ b/conf/routes @@ -25,6 +25,8 @@ GET /dataset controllers.HomeController.dataset(format?="") GET /search controllers.HomeController.search(q ?= "", filter ?= "", sort ?= "", from: Int ?= 0, size: Int ?= 10, format ?= null) +GET /cgi-bin/wwwalleg/:name.pl controllers.HomeController.authorityPl(name, db ?= "rnam", index: Int ?= 1, zeilen: Int ?= 1, s1) + GET /:id.:format controllers.HomeController.authorityDotFormat(id, format) GET /:id controllers.HomeController.authority(id, format ?= null)