Example #1
0
def esearch_and_other(request, other_fn, other_ptr):
    record = EntrezCache.esearch(request.entrezajax_developer_registration, **keywords('esearch', request.GET))
    logging.info(record)
    if not record["IdList"]:
        response = HttpResponse(mimetype="application/json")
        dump_result(request, response, record)
        return response
    else:
        args = keywords('esummary', request.GET)
        id_list = paginate(request, record["IdList"])
        
        args['id'] = ",".join(id_list)
        logging.info(args)
        return handle_request(request, args, other_fn, other_ptr,
                              {
                               'count' : record["Count"],
                               'retmax' : record["RetMax"]
                              })