r9011: new policy
[pubmed.git] / pubmed-src.lisp
index 492a9f5a986c2f4627c8ffd8e2410f18a6d6e2cf..e53057a716d70c9f7d7935e6bf9eec5ebe42cf56 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Jun 2001
 ;;;;
-;;;; $Id: pubmed-src.lisp,v 1.3 2003/06/20 08:35:22 kevin Exp $
+;;;; $Id$
 ;;;;
 ;;;; This file, part of cl-pubmed, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -22,6 +22,7 @@
 (defparameter +pubmed-host+ "www.ncbi.nlm.nih.gov")
 (defparameter +pubmed-query-url+ "/entrez/utils/pmqty.fcgi")
 (defparameter +pubmed-fetch-url+ "/entrez/utils/pmfetch.fcgi")
+(defparameter +proxy-host+ nil)
 
 
 (define-condition pubmed-condition ()
@@ -222,7 +223,8 @@ XML string of PubMed search results and XML search status"
     (net.aserve.client:do-http-request
      (format nil "http://~a~a" +pubmed-host+ +pubmed-query-url+)
      :method :get
-     :query query-alist)))
+     :query query-alist
+     :proxy *proxy-host*)))
 
 (defun pubmed-fetch-pmids-xml (pmids)
   "Fetch articles for a list of PubMed ID's and return XML string"
@@ -233,7 +235,8 @@ XML string of PubMed search results and XML search status"
        :method :get
        :query 
        `(("db" . "PubMed") ("report" . "xml") ("mode" . "text")
-        ("id" . ,(list-to-delimited-string pmids #\,))))))
+        ("id" . ,(list-to-delimited-string pmids #\,)))
+       :proxy *proxy-host*)))
 
 ;;; XML Extraction Routines