View | Details | Raw Unified | Return to bug 14721
Collapse All | Expand All

(-)a/opac/oai.pl (-1 / +16 lines)
Lines 411-416 sub new { Link Here
411
        ) );
411
        ) );
412
    }
412
    }
413
413
414
    # Return error if no results
415
    unless ($count) {
416
        return HTTP::OAI::Response->new(
417
            requestURL => $repository->self_url(),
418
            errors     => [ new HTTP::OAI::Error( code => 'noRecordsMatch' ) ],
419
        );
420
    }
421
414
    return $self;
422
    return $self;
415
}
423
}
416
424
Lines 586-591 sub new { Link Here
586
        }
594
        }
587
    }
595
    }
588
596
597
    # Return error if no results
598
    unless ($count) {
599
        return HTTP::OAI::Response->new(
600
            requestURL => $repository->self_url(),
601
            errors     => [ new HTTP::OAI::Error( code => 'noRecordsMatch' ) ],
602
        );
603
    }
604
589
    return $self;
605
    return $self;
590
}
606
}
591
607
592
- 

Return to bug 14721