From 0931b26cc5c76834ed5342f4afe3197c37fd1107 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Wed, 7 Jun 2017 20:36:01 +0300 Subject: [PATCH] Avoid notice when holdings functionality unsupported (#981) - Return properly formatted results from SolrDefault::getRealTimeHoldings to avoid notices in holdingsils.phtml. - Probably only an issue when Site->hideHoldingsTabWhenEmpty = false. --- module/VuFind/src/VuFind/RecordDriver/SolrDefault.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php index 1d40ee493ba..361f0cfe460 100644 --- a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php +++ b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php @@ -1198,7 +1198,7 @@ class SolrDefault extends AbstractBase public function getRealTimeHoldings() { // Not supported by the Solr index -- implement in child classes. - return []; + return ['holdings' => []]; } /** -- GitLab