my ($sql, undef) = $self->get_param('pools', 'locations', 'mediatypes');
if (CGI::param('expired')) {
+ # we take only expired volumes or purged/recycle ones
$sql = "
-AND ( $self->{sql}->{UNIX_TIMESTAMP}(Media.LastWritten)
- + $self->{sql}->{TO_SEC}(Media.VolRetention)
+AND (
+ ( ($self->{sql}->{UNIX_TIMESTAMP}(Media.LastWritten)
+ + $self->{sql}->{TO_SEC}(Media.VolRetention)
) < NOW()
+ ) OR (
+ Media.VolStatus IN ('Purged', 'Recycle')
+ )
+)
" . $sql ;
}
03Feb09
ebl Add pool parameter to label barcode process
+ebl Add purged and recycle volume to loading procedure when expired=on
20Jan09
ebl Use default age in missing job view
19Jan09