From: gfawcett Date: Sun, 5 Apr 2009 18:34:25 +0000 (+0000) Subject: housekeeping, and farting around fruitlessly with yaz-client encoding issue X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7da10a108f0925c4b860d3ee52efeaa2e8678bc2;p=syrup%2Fmasslnc.git housekeeping, and farting around fruitlessly with yaz-client encoding issue git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@276 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/TODO b/conifer/TODO index 1b73ba8..1a4a07e 100644 --- a/conifer/TODO +++ b/conifer/TODO @@ -15,6 +15,8 @@ IMPORTANT: * accented characters in z3950 queries seem to fail. More tests needed. +* need more than 10 results on physical-item search results. + MAYBE: * Generating barcodes in emails, printable screens? (3 of 9 enough?) diff --git a/conifer/libsystems/z3950/yaz_search.py b/conifer/libsystems/z3950/yaz_search.py index 8f1c996..d51f534 100644 --- a/conifer/libsystems/z3950/yaz_search.py +++ b/conifer/libsystems/z3950/yaz_search.py @@ -29,7 +29,8 @@ def search(host, database, query, start=1, limit=None): server = pexpect.spawn('yaz-client', timeout=GENERAL_TIMEOUT, logfile=LOG) #server.expect('Z>') - for line in ('open %s' % host, + for line in ('charset UTF-8', + 'open %s' % host, 'base %s' % database, 'format xml'): server.sendline(line)