@@ -, +, @@ existing bibs when check if bib deleted 1 - Edit/create a file in the koha home dir '/var/lib/koha/{instance}/OAI.yaml 2 - Set sysprefs: OAI-PMH => Enable OAI-PMH:ConfFile => /var/lib/koha/{instace}/OAI.yaml 3 - View a record with items and confirm the items show: http://localhost:8080/cgi-bin/koha/oai.pl?verb=GetRecord&metadataPrefix=marcxml&identifier=KOHA-OAI-TEST:4 4 - Delete the items, then delete the record 5 - Reload the URL from step 3 6 - Internal Server Error: Empty String at /kohadevbox/koha/Koha/OAI/Server/Record.pm line 58. at /usr/share/perl/5.24/Carp.pm line 167 7 - Apply patch 8 - restart_all 9 - Repeat --- Koha/OAI/Server/GetRecord.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/Koha/OAI/Server/GetRecord.pm +++ a/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 --