[Koha-bugs] [Bug 21517] OAI returns records outside of specified time range.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 23 00:49:42 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21517
--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I think I got it, the from/until parameters are used to retrieve the
biblionumber of the records we will display. But the "datestamp" value is
filled with the following query (from Koha/OAI/Server/ListBase.pm):
$sql = "
SELECT MAX(timestamp)
FROM (
SELECT timestamp FROM biblio_metadata WHERE biblionumber =
?
UNION
SELECT timestamp FROM deleteditems WHERE biblionumber = ?
UNION
SELECT timestamp FROM items WHERE biblionumber = ?
) bi
";
So my guess is that the bibliographic records have not been modified inside the
date range, but items have been added/modified outside of it (in 2014).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list