From a1cef8653cf6bb70bde54df0e970a63083d7f803 Mon Sep 17 00:00:00 2001
From: Rasmus Fuhse <fuhse@data-quest.de>
Date: Wed, 5 Apr 2023 07:44:25 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"OERSI=20API-URL=20hat=20sich=20ge?=
 =?UTF-8?q?=C3=A4ndert"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #2512

Merge request studip/studip!1701
---
 lib/models/OERHostOERSI.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/models/OERHostOERSI.php b/lib/models/OERHostOERSI.php
index 750f374bd94..a6b03f64d6c 100644
--- a/lib/models/OERHostOERSI.php
+++ b/lib/models/OERHostOERSI.php
@@ -10,7 +10,7 @@ class OERHostOERSI extends OERHost
      */
     public function fetchRemoteSearch($text = null, $tag = null)
     {
-        $endpoint_url = 'https://oersi.de/resources/api-internal/search/oer_data/_search';
+        $endpoint_url = 'https://oersi.org/resources/api/search/oer_data/_search';
         $appendix = Config::get()->OER_OERSI_ONLY_DOWNLOADABLE ? ' AND _exists_:encoding.contentUrl' : '';
         if ($tag) {
             $endpoint_url .= '?q=' . urlencode("keywords:" . $tag . $appendix);
@@ -87,7 +87,7 @@ class OERHostOERSI extends OERHost
      */
     public function fetchItemData(OERMaterial $material)
     {
-        $endpoint_url = 'https://oersi.de/resources/' . urlencode($material['data']['id']) . '?format=json';
+        $endpoint_url = 'https://oersi.org/resources/' . urlencode($material['data']['id']) . '?format=json';
         $output = @file_get_contents($endpoint_url, false, get_default_http_stream_context($endpoint_url));
         if ($output) {
             $output = json_decode($output, true);
-- 
GitLab