From ef19d6e6ffdcc5ea552a2ac5ceb7e01c1e00bef9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 10 Jul 2007 18:42:56 +0000 Subject: r13683@catbus: nickm | 2007-07-10 14:42:53 -0400 Patch from George to add citation-rank-based icons to anonbib output. Hacked up a bit so that "cache" and "generate page" are separate, so that the image urls are no longer hardwired to ~george, so output locations are configurable, etc. svn:r234 --- writeHTML.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'writeHTML.py') diff --git a/writeHTML.py b/writeHTML.py index 3184ef0..934b46b 100755 --- a/writeHTML.py +++ b/writeHTML.py @@ -29,7 +29,7 @@ def pathLength(s): s = parent return n -def writeBody(f, sections, section_urls, cache_path): +def writeBody(f, sections, section_urls, cache_path, base_url): '''f: an open file sections: list of (sectionname, [list of BibTeXEntry]) section_urls: map from sectionname to external url''' @@ -45,7 +45,7 @@ def writeBody(f, sections, section_urls, cache_path): BibTeX.url_untranslate(s),sDisp)) print >>f, "" def writeHTML(f, sections, sectionType, fieldName, choices, @@ -104,7 +104,8 @@ def writeHTML(f, sections, sectionType, fieldName, choices, header, footer = getTemplate(config.TEMPLATE_FILE) print >>f, header%fields - writeBody(f, sections, section_urls, cache_path=cache_url_path) + writeBody(f, sections, section_urls, cache_path=cache_url_path, + base_url=root) print >>f, footer%fields def writePageSet(config, bib, tag): -- cgit v1.2.3-70-g09d2