r9010: Automated commit for Debian build of pubmed upstream-version-2.1.2
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 15 Apr 2004 06:47:23 +0000 (06:47 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 15 Apr 2004 06:47:23 +0000 (06:47 +0000)
debian/changelog
package.lisp
pubmed-src.lisp

index d9af6da459564de8be7af02d52a606a69730e162..e2c918a281df8b89bbe625c3a2197c5e8b0f7ba5 100644 (file)
@@ -1,3 +1,9 @@
+cl-pubmed (2.1.2-1) unstable; urgency=low
+
+  * Support proxy server
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Thu, 15 Apr 2004 00:47:01 -0600
+
 cl-pubmed (2.1.1-1) unstable; urgency=low
 
   * New upstream
 cl-pubmed (2.1.1-1) unstable; urgency=low
 
   * New upstream
index 9ffc3b775474842d27d7b9287908bbcf68e15e8c..ad4114f2a7fafe8e0e2750271a03e219cbbb36ac 100644 (file)
@@ -59,4 +59,7 @@
    #:article-pages
    #:article-abstract
    #:article-mesh-headings
    #:article-pages
    #:article-abstract
    #:article-mesh-headings
+
+   ;; proxy setting
+   #:*proxy-host*
    ))
    ))
index 72935a992748ac76e57fd7213ac804685872b899..e53057a716d70c9f7d7935e6bf9eec5ebe42cf56 100644 (file)
@@ -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 +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 ()
 
 
 (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
     (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"
 
 (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")
        :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
 
 
 ;;; XML Extraction Routines