@@ -, +, @@ ----------------- not mapped to a DB column, so biblio_metadata.timestamp will be modified but not biblioitems.timestamp > select timestamp from biblio where biblionumber=###; > select timestamp from biblio_metadata where biblionumber=###; -- you'll need to change the ###'s based on the biblionumber you remembered in step 1. -- the two timestamps will differ. -- Remember the timestamp of biblio_metadata for step 4. $ sudo koha-shell -c bash kohadev $ export DATE="YYYY-MM-DD HH:mm:SS" -- use the timestamp remembered in step 3. $ ./misc/export_records.pl --date="$DATE" $ ls -la koha.mrc -- the file should be 0 bytes. $ exit $ git bz apply 19730 $ restart_all $ sudo koha-shell -c bash kohadev $ export DATE="YYYY-MM-DD HH:mm:SS" -- use the timestamp remembered in step 3. $ ./misc/export_records.pl --date="$DATE" $ ls -la koha.mrc -- the file should be a lot more than 0 bytes. $ /home/vagrant/qa-test-tools/koha-qa.pl -v 2 -c 1 -- this should pass. --- misc/export_records.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/misc/export_records.pl +++ a/misc/export_records.pl @@ -104,16 +104,16 @@ if ( $record_type eq 'bibs' ) { if ( $timestamp ) { push @record_ids, $_->{biblionumber} for @{ $dbh->selectall_arrayref(q| ( - SELECT biblionumber - FROM biblioitems + SELECT biblio_metadata.biblionumber + FROM biblio_metadata LEFT JOIN items USING(biblionumber) - WHERE biblioitems.timestamp >= ? + WHERE biblio_metadata.timestamp >= ? OR items.timestamp >= ? ) UNION ( - SELECT biblionumber - FROM biblioitems + SELECT biblio_metadata.biblionumber + FROM biblio_metadata LEFT JOIN deleteditems USING(biblionumber) - WHERE biblioitems.timestamp >= ? + WHERE biblio_metadata.timestamp >= ? OR deleteditems.timestamp >= ? ) |, { Slice => {} }, ( $timestamp ) x 4 ); }; --