From d788d0d845f4226db16955b40e3bdec732e43162 Mon Sep 17 00:00:00 2001 From: Gerhard Gonter <ggonter@gmail.com> Date: Sun, 16 Aug 2020 18:24:38 +0200 Subject: [PATCH] only select objects which have an urn, when in block mode --- lib/IRMA/eprints.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IRMA/eprints.pm b/lib/IRMA/eprints.pm index 2044ea8..ee6e139 100644 --- a/lib/IRMA/eprints.pm +++ b/lib/IRMA/eprints.pm @@ -62,7 +62,7 @@ sub get_eprint_ids_for_block my $m= $self->connect(); - my $conditions= 'eprint_status in ("archive", "buffer") AND eprintid >= ? AND eprintid < ?'; + my $conditions= 'eprintid >= ? AND eprintid < ? AND ((eprint_status="archive" AND urn IS NOT NULL) OR eprint_status="buffer")'; # $m->show_query(1); my $res= $m->get_all_x ('eprint', [$conditions, $begin, $end], 'eprintid'); -- GitLab