diff options
| author | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2009-03-22 12:21:30 +0000 |
|---|---|---|
| committer | Steven Murdoch <Steven.Murdoch@cl.cam.ac.uk> | 2009-03-22 12:21:30 +0000 |
| commit | 7fc34c8e0e58963694c1dae4a7fa960818ae3ded (patch) | |
| tree | 133b5fc2d513e9bbe0144e6824e224fb5ae2cb2d /writeHTML.py | |
| parent | ffc5f2cee84d8ccee27629a3d5a186ef1cf739db (diff) | |
| download | anonbib-7fc34c8e0e58963694c1dae4a7fa960818ae3ded.tar.gz | |
When generating full/bibtex.html, reference the correct CSS files
svn:r317
Diffstat (limited to 'writeHTML.py')
| -rwxr-xr-x | writeHTML.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/writeHTML.py b/writeHTML.py index 6855ade..d03d76e 100755 --- a/writeHTML.py +++ b/writeHTML.py @@ -199,10 +199,17 @@ def writePageSet(config, bib, tag): entries = [ (ent.key, ent) for ent in entries ] entries.sort() entries = [ ent[1] for ent in entries ] + + ## Finding the root directory is done by writeHTML(), but + ## the BibTeX file doesn't use that, so repeat the code here + root = "../"*pathLength(config.TAG_DIRECTORIES[tag]) + if root == "": root = "." + header,footer = getTemplate(config.BIBTEX_TEMPLATE_FILE) f = open(os.path.join(outdir,"bibtex.html"), 'w') print >>f, header % { 'command_line' : "", - 'title': config.TAG_TITLES[tag] } + 'title': config.TAG_TITLES[tag], + 'root': root } for ent in entries: print >>f, ( ("<tr><td class='bibtex'><a name='%s'>%s</a>" |
