From 3f3808daa8b8d73bbc3fc80339bffb3c3172b98a Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 15 Nov 2019 08:30:57 -0500 Subject: [PATCH] Display raw code if map entry is missing. --- module/VuFind/src/VuFind/ILS/Driver/Koha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Koha.php b/module/VuFind/src/VuFind/ILS/Driver/Koha.php index 3c3d8b3398a..b57e07abfe2 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Koha.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Koha.php @@ -232,7 +232,7 @@ class Koha extends AbstractBase //Retrieving the location (shelf types) $shelf = $rowItem['LOCATION']; $loc = (null != $shelf) - ? $loc . ": " . $this->locCodes[$shelf] + ? $loc . ": " . ($this->locCodes[$shelf] ?? $shelf) : $loc . ": " . 'Unknown'; //A default value is stored for null -- GitLab