Skip to content
Snippets Groups Projects
Commit 4134ebfd authored by Theodoros Theodoropoulos's avatar Theodoros Theodoropoulos Committed by Robert Lange
Browse files

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.
parent 05e32ed4
No related merge requests found
...@@ -1618,12 +1618,11 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements ...@@ -1618,12 +1618,11 @@ class KohaILSDI extends \VuFind\ILS\Driver\AbstractBase implements
} }
$sql = "SELECT b.title, b.biblionumber, $sql = "SELECT b.title, b.biblionumber,
MAX(CONCAT(s.publisheddate, ' / ',s.serialseq)) CONCAT(s.publisheddate, ' / ',s.serialseq)
AS 'date and enumeration' AS 'date and enumeration'
FROM serial s FROM serial s
LEFT JOIN biblio b USING (biblionumber) LEFT JOIN biblio b USING (biblionumber)
WHERE s.STATUS=2 and b.biblionumber = :id WHERE s.STATUS=2 and b.biblionumber = :id
GROUP BY b.biblionumber
ORDER BY s.publisheddate DESC"; ORDER BY s.publisheddate DESC";
$sqlStmt = $this->db->prepare($sql); $sqlStmt = $this->db->prepare($sql);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment