diff --git a/Koha/OAI/Server/GetRecord.pm b/Koha/OAI/Server/GetRecord.pm index d4870e3887..a6fa42814b 100644 --- a/Koha/OAI/Server/GetRecord.pm +++ b/Koha/OAI/Server/GetRecord.pm @@ -44,9 +44,10 @@ sub new { my @bind_params = ($biblionumber); if ( $items_included ) { # Take latest timestamp of biblio and any items + # Or timestamp of deleted items where bib not deleted $sql .= " UNION - SELECT timestamp from deleteditems + SELECT deleteditems.timestamp FROM deleteditems JOIN biblio USING (biblionumber) WHERE biblionumber=? UNION SELECT timestamp from items