.
The Open Protein Structure Annotation Network
PDB Keyword
.

ESearch

    Table of contents
    No headers
    /***
        Copyright 2009 - MindTouch
    
        USAGE:
    
        PubMedESearch(query : str, max : num?)
            Use PubMed eSearch to find publications and articles.
    
        PARAMETERS:
    
        query : str
            Search terms for PubMed eSearch service.
    
        max: num
            (optional, default: 10) Maximum number of results to return.
    
    ***/
    
    // read parameter
    var query = $0 ?? $query;
    var max = $1 ?? $max ?? 10;
    
    // execute search on PubMed eSearch
    var esearch = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&tool=topsan";
    var doc = web.xml(esearch & { term: query, retmax: max });
    var ids = string.join(xml.list(doc, "IdList/Id"), ",");
    
    // show results
    template('PubMed/ESummary', [ids, 'brief']);
    

    Reviews

    References

     

    No references found.

    Tag page
    • No tags

    Files (0)

     
    You must login to post a comment.
    All content on this site is licensed under a Creative Commons Attribution 3.0 License
    Powered by MindTouch