From 4c9a9a7db9dfd0ef1592e2e3d41671e1f51707c3 Mon Sep 17 00:00:00 2001 From: Thomas Misilo <misilot@users.noreply.github.com> Date: Tue, 27 Sep 2016 10:29:33 -0400 Subject: [PATCH] Adding i.location as a fallback location value (#810) Per Mailing list recommendations adding in support for checking if the item has a location set, even if the authorized value isn't set. --- module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php index 2776e5dd856..1e3f82a19ff 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php @@ -652,7 +652,7 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements $reserves = "N"; $sql = "select i.itemnumber as ITEMNO, i.location, - COALESCE(av.lib_opac,av.lib, av.authorised_value) AS LOCATION, + COALESCE(av.lib_opac,av.lib,av.authorised_value,i.location) AS LOCATION, i.holdingbranch as HLDBRNCH, i.homebranch as HOMEBRANCH, i.reserves as RESERVES, i.itemcallnumber as CALLNO, i.barcode as BARCODE, i.copynumber as COPYNO, i.notforloan as NOTFORLOAN, -- GitLab