From b3f392ea76f723c8d5f6033ef43709b654336280 Mon Sep 17 00:00:00 2001 From: JustusHenke <119817909+JustusHenke@users.noreply.github.com> Date: Thu, 23 May 2024 14:43:35 +0200 Subject: [PATCH] Update amb-dido.php --- amb-dido.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/amb-dido.php b/amb-dido.php index 06bcddd..a61df7b 100644 --- a/amb-dido.php +++ b/amb-dido.php @@ -637,7 +637,8 @@ function amb_dido_add_json_ld_to_header() { 'audience' => get_post_meta($post->ID, 'amb_audience', true) ?: $defaults['amb_audience'], 'educationalLevel' => get_post_meta($post->ID, 'amb_educationalLevel', true) ?: $defaults['amb_educationalLevel'], 'aboutSubject' => get_post_meta($post->ID, 'amb_hochschulfaechersystematik', true) ?: $defaults['amb_hochschulfaechersystematik'], - 'aboutContext' => get_post_meta($post->ID, 'amb_organisationalContext', true) ?: $defaults['amb_organisationalContext'] + 'aboutContext' => get_post_meta($post->ID, 'amb_organisationalContext', true) ?: $defaults['amb_organisationalContext'], + 'aboutUseCase' => get_post_meta($post->ID, 'amb_didacticUseCase', true) ?: $defaults['amb_didacticUseCase'] ]; // Kombinieren der Felder "aboutSubject" und "aboutContext" @@ -648,6 +649,9 @@ function amb_dido_add_json_ld_to_header() { if ($amb_data['aboutContext']) { $about[] = ["type" => "Concept", "name" => $amb_data['aboutContext']]; } + if ($amb_data['aboutUseCase']) { + $about[] = ["type" => "Concept", "name" => $amb_data['aboutUseCase']]; + } // JSON-LD-Struktur vorbereiten