Switch matchInfo to modern path
Change-Id: Iee347d3394aaaecc4731ae55aa2de129a98a1274
diff --git a/Changes b/Changes
index 08c59f1..ab0f37e 100644
--- a/Changes
+++ b/Changes
@@ -1,8 +1,14 @@
+0.54 2024-05-05
+ - Remove deprecated 'matchInfo' API path. (diewald, margaretha)
+
+ WARNING: This change requires at least Kustvakt v0.61.6.
+
0.53 2024-05-04
- Add openapi url to documentation. (hebasta)
- Solve a potential timing issue in VC rendering. (diewald)
- Update DeReKo link in corpus specific localization. (hebasta)
- - News and announcements are now displayed in Safari (fixes #208). (hebasta)
+ - News and announcements are now displayed in Safari (fixes #208).
+ (hebasta)
- Translate example query documentation. (diewald)
- Fix: The content of blockquote is displayed. (hebasta)
- Upgrade dependency and remove deprecated
diff --git a/dev/js/spec/matchSpec.js b/dev/js/spec/matchSpec.js
index 4016bdc..20fecbd 100644
--- a/dev/js/spec/matchSpec.js
+++ b/dev/js/spec/matchSpec.js
@@ -386,7 +386,7 @@
expect(m.textSigle).toEqual("WPD/UUU/01912");
expect(m.matchID).toEqual("p121-122");
- // /corpus/WPD/UUU.01912/p121-122/matchInfo?spans=false&foundry=*
+ // /corpus/WPD/UUU.01912/p121-122?spans=false&foundry=*
var m = matchClass.create(match);
// Spans:
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index e37b0d8..31cefb6 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -8,7 +8,7 @@
use List::Util qw!none uniq!;
# Minor version - may be patched from package.json
-our $VERSION = '0.53';
+our $VERSION = '0.54';
# Supported version of Backend API
our $API_VERSION = '1.0';
diff --git a/lib/Kalamar/Controller/Search.pm b/lib/Kalamar/Controller/Search.pm
index a14cadc..2876c50 100644
--- a/lib/Kalamar/Controller/Search.pm
+++ b/lib/Kalamar/Controller/Search.pm
@@ -465,8 +465,7 @@
$c->stash('corpus_id'),
$c->stash('doc_id'),
$c->stash('text_id'),
- $c->stash('match_id'),
- 'matchInfo'
+ $c->stash('match_id')
))
);
diff --git a/package.json b/package.json
index 5bba2c2..2a83165 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "Kalamar",
"description": "Mojolicious-based Frontend for KorAP",
"license": "BSD-2-Clause",
- "version": "0.53.1",
+ "version": "0.54.0",
"pluginVersion": "0.2.2",
"engines": {
"node": ">=6.0.0"
diff --git a/t/fixtures.t b/t/fixtures.t
index 8a17bd7..76cefa6 100644
--- a/t/fixtures.t
+++ b/t/fixtures.t
@@ -46,7 +46,7 @@
is(defined $err ? $err->text : '', '');
-$t->get_ok('/v1.0/corpus/WPD15/232/39681/p2133-2134/matchInfo?spans=false&foundry=*')
+$t->get_ok('/v1.0/corpus/WPD15/232/39681/p2133-2134?spans=false&foundry=*')
->status_is(200)
->json_is('/textSigle', 'WPD15/232/39681')
;
diff --git a/t/server/mock.pl b/t/server/mock.pl
index 3b0959f..88ec023 100644
--- a/t/server/mock.pl
+++ b/t/server/mock.pl
@@ -246,7 +246,7 @@
# Matchinfo fixtures
-get '/v1.0/corpus/#corpusId/#docId/#textId/#matchId/matchInfo' => sub {
+get '/v1.0/corpus/#corpusId/#docId/#textId/#matchId' => sub {
my $c = shift;
my $file = join('_', (