diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2023-04-05 07:44:25 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2023-04-05 09:50:22 +0200 |
| commit | b4382006d799883d7694a5f8eb0993c41af2f707 (patch) | |
| tree | e5a47d55046e1706b042e3b779807ce392ebb2c8 /lib | |
| parent | b57263ae334ad3f421c62026375c3d9443953aa6 (diff) | |
Resolve "OERSI API-URL hat sich geƤndert"
Closes #2512
Merge request studip/studip!1701
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/models/OERHostOERSI.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/OERHostOERSI.php b/lib/models/OERHostOERSI.php index 3b575d5..1ed025b 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); |
