From 40b5e85e860b41cbf747cdd7575468ec7e70dfeb Mon Sep 17 00:00:00 2001 From: Joe Corall <joe@libops.io> Date: Sun, 22 Oct 2023 06:51:43 -0400 Subject: [PATCH] Do not render the pdf_url metatag if there is no value --- islandora.tokens.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora.tokens.inc b/islandora.tokens.inc index ab7bb073..31680117 100644 --- a/islandora.tokens.inc +++ b/islandora.tokens.inc @@ -134,7 +134,7 @@ function islandora_tokens($type, $tokens, array $data, array $options, Bubbleabl break; case 'pdf_url': - $replacements[$original] = ' ' . islandora_url_to_service_file_media_by_mimetype($data['node'], 'application/pdf'); + $replacements[$original] = islandora_url_to_service_file_media_by_mimetype($data['node'], 'application/pdf'); break; } }