From 10138c1a10efa5eda39af00a9ded1f1b95d23225 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 5 May 2022 13:11:32 +0100 Subject: [PATCH] Bug 29616: (QA follow-up) Use /public endpoints on OPAC This patch updates the new modal to use the /public version of the libraries endpoint for fetching library data. This ensure the feature works as expected prior to patron login. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index f6dc6014a2..f4fd827fa0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1934,7 +1934,7 @@ var branchcode = $(this).data("branchcode"); var url = $(this).attr("href"); $.ajax({ - url: "/api/v1/libraries/" + branchcode, + url: "/api/v1/public/libraries/" + branchcode, type: 'GET', dataType: 'json', success: function(result) { -- 2.39.5