def records(opts = {})
      opts = @opts.merge(opts)
      request_with_sets(opts) do |set_opts|
        client.list_records(set_opts).full.lazy.flat_map do |rec|
          begin
            @record_class.build(mint_id(get_identifier(rec)),
                                record_xml(rec))
          rescue => e
            Krikri::Logger.log(:error, e.message)
            next
          end
        end
      end
    end
def records(opts = {})
      opts = @opts.merge(opts)
      request_with_sets(opts) do |set_opts|
        client.list_records(set_opts).full.lazy.flat_map do |rec|
          begin
            @record_class.build(mint_id(get_identifier(rec)),
                                record_xml(rec))
          rescue => e
            Krikri::Logger.log(:error, e.message)
            next
          end
        end
      end
    end
Sends ListRecords requests lazily.

 The following will only send requests to the endpoint until it
 has 1000 records:

     records.take(1000)

 @param opts [Hash] opts to pass to OAI::Client
 @see #expected_opts