From a7366fd291104f6fc5d9dd9d03fe73844c33ff2b Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Wed, 2 Oct 2013 14:12:49 -0400 Subject: [PATCH] Add prefix support to record fulltext urls. --- module/VuFind/src/VuFind/View/Helper/Root/Record.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Record.php b/module/VuFind/src/VuFind/View/Helper/Root/Record.php index c7f7eed78ea..187a5af66e5 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Record.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Record.php @@ -465,10 +465,15 @@ class Record extends AbstractHelper } } + // Apply prefix if found + if (isset($link['prefix'])) { + $link['url'] = $link['prefix'] . $link['url']; + } // Use URL as description if missing: if (!isset($link['desc'])) { $link['desc'] = $link['url']; } + return $link; }; -- GitLab