From 4134ebfd7ac5d6f072c3564c51cdf70305113f44 Mon Sep 17 00:00:00 2001 From: Theodoros Theodoropoulos <sbujam@users.noreply.github.com> Date: Wed, 20 Mar 2019 18:06:04 +0200 Subject: [PATCH] KohaILSDI Fix to return all recieved serial issues (#1353) Fix in KohaILSDI getPurchaseHistory function in order to get as a result an array of ALL recieved issues of a serial. (This behavior better matches the function documentation and is consisntent with getPurchaseHistory results from other ILS drivers) In case one wants to limit the number of displayed issues, this should be ideally handled in the theme template. --- module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php index 49c0bb9c8d6..022f2ed9ecc 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/KohaILSDI.php @@ -1618,12 +1618,11 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements } $sql = "SELECT b.title, b.biblionumber, - MAX(CONCAT(s.publisheddate, ' / ',s.serialseq)) + CONCAT(s.publisheddate, ' / ',s.serialseq) AS 'date and enumeration' FROM serial s LEFT JOIN biblio b USING (biblionumber) WHERE s.STATUS=2 and b.biblionumber = :id - GROUP BY b.biblionumber ORDER BY s.publisheddate DESC"; $sqlStmt = $this->db->prepare($sql); -- GitLab