From: Kevin M. Rosenberg Date: Thu, 15 Apr 2004 06:47:23 +0000 (+0000) Subject: r9010: Automated commit for Debian build of pubmed upstream-version-2.1.2 X-Git-Tag: debian-2.1.3-2~6 X-Git-Url: http://git.kpe.io/?p=pubmed.git;a=commitdiff_plain;h=0d98f9cc36ba7d1960a9187e6f066c0edaa6b8f9 r9010: Automated commit for Debian build of pubmed upstream-version-2.1.2 --- diff --git a/debian/changelog b/debian/changelog index d9af6da..e2c918a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cl-pubmed (2.1.2-1) unstable; urgency=low + + * Support proxy server + + -- Kevin M. Rosenberg Thu, 15 Apr 2004 00:47:01 -0600 + cl-pubmed (2.1.1-1) unstable; urgency=low * New upstream diff --git a/package.lisp b/package.lisp index 9ffc3b7..ad4114f 100644 --- a/package.lisp +++ b/package.lisp @@ -59,4 +59,7 @@ #:article-pages #:article-abstract #:article-mesh-headings + + ;; proxy setting + #:*proxy-host* )) diff --git a/pubmed-src.lisp b/pubmed-src.lisp index 72935a9..e53057a 100644 --- a/pubmed-src.lisp +++ b/pubmed-src.lisp @@ -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