Hi Tibor, subject says it all.
Thanks, Ferran
Trivial: Add ; to some  . I noted them when debugging some of my pages. Index: cds-invenio-0.92.0/modules/bibformat/lib/bibformat_templates.py =================================================================== --- cds-invenio-0.92.0.orig/modules/bibformat/lib/bibformat_templates.py 2007-01-26 10:22:41.636461075 +0100 +++ cds-invenio-0.92.0/modules/bibformat/lib/bibformat_templates.py 2007-01-26 10:25:29.688622760 +0100 @@ -1455,19 +1455,19 @@ name = format_template['name'] filename = format_template['filename'] out += '''<tr><td><a href="format_template_show?bft=%(filename)s&ln=%(ln)s">%(name)s</a></td> - <td> </td><td> </td></tr>''' % {'filename':filename, - 'name':name, - 'ln':ln} + <td> </td><td> </td></tr>''' % {'filename':filename, + 'name':name, + 'ln':ln} for format_element in format_template['elements']: name = format_element['name'] filename = format_element['filename'] - out += '''<tr><td> </td> + out += '''<tr><td> </td> <td><a href="format_elements_doc?ln=%(ln)s#%(anchor)s">%(name)s</a></td> - <td> </td></tr>''' % {'anchor':name.upper(), - 'name':name, - 'ln':ln} + <td> </td></tr>''' % {'anchor':name.upper(), + 'name':name, + 'ln':ln} for tag in format_element['tags']: - out += '''<tr><td> </td><td> </td> + out += '''<tr><td> </td><td> </td> <td>%(tag)s</td></tr>''' % {'tag':tag} out += ''' Index: cds-invenio-0.92.0/modules/bibharvest/lib/bibharvest_templates.py =================================================================== --- cds-invenio-0.92.0.orig/modules/bibharvest/lib/bibharvest_templates.py 2007-01-26 10:22:41.663457567 +0100 +++ cds-invenio-0.92.0/modules/bibharvest/lib/bibharvest_templates.py 2007-01-26 10:26:35.580059372 +0100 @@ -73,7 +73,7 @@ guidetitle = _("See Guide") titlebar = """<a name="%s">""" % title - titlebar += """ </a>%s   <small>""" % subtitle + titlebar += """ </a>%s <small>""" % subtitle titlebar += """ [<a title="%s" href="%s/%s">?</a>]</small>""" % (guidetitle, weburl, guideurl) return titlebar Index: cds-invenio-0.92.0/modules/bibindex/lib/bibindexadminlib.py =================================================================== --- cds-invenio-0.92.0.orig/modules/bibindex/lib/bibindexadminlib.py 2007-01-26 10:22:41.690454060 +0100 +++ cds-invenio-0.92.0/modules/bibindex/lib/bibindexadminlib.py 2007-01-26 10:27:51.548185829 +0100 @@ -277,7 +277,7 @@ def perform_editindexes(ln=cdslang, callback='yes', content='', confirm=-1): """show a list of indexes that can be edited.""" - subtitle = """<a name="2"></a>2. Edit index   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (weburl) + subtitle = """<a name="2"></a>2. Edit index <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (weburl) fin_output = '' idx = get_idx() @@ -311,7 +311,7 @@ def perform_editfields(ln=cdslang, callback='yes', content='', confirm=-1): """show a list of all logical fields that can be edited.""" - subtitle = """<a name="5"></a>5. Edit logical field   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (weburl) + subtitle = """<a name="5"></a>5. Edit logical field <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (weburl) fin_output = '' @@ -385,7 +385,7 @@ idx_dict = dict(get_def_name('', "idxINDEX")) if idxID and idx_dict.has_key(int(idxID)): idxID = int(idxID) - subtitle = """<a name="2"></a>2. Modify translations for index.   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl + subtitle = """<a name="2"></a>2. Modify translations for index. <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl if type(trans) is str: trans = [trans] @@ -464,7 +464,7 @@ fld_dict = dict(get_def_name('', "field")) if fldID and fld_dict.has_key(int(fldID)): fldID = int(fldID) - subtitle = """<a name="3"></a>3. Modify translations for logical field '%s'   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[fldID], weburl) + subtitle = """<a name="3"></a>3. Modify translations for logical field '%s' <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[fldID], weburl) if type(trans) is str: trans = [trans] @@ -649,7 +649,7 @@ if not fld_dict.has_key(int(fldID)): return """<b><span class="info">Field does not exist</span></b>""" - subtitle = """<a name="4"></a>4. Delete the logical field '%s'   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) + subtitle = """<a name="4"></a>4. Delete the logical field '%s' <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) output = "" if fldID: @@ -685,7 +685,7 @@ """ if idxID: - subtitle = """<a name="4"></a>4. Delete the index.   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl + subtitle = """<a name="4"></a>4. Delete the index. <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl output = "" if confirm in ["0", 0]: @@ -756,7 +756,7 @@ output = "" if idxID not in [-1, "-1"]: - subtitle = """<a name="2"></a>1. Modify index name.   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl + subtitle = """<a name="2"></a>1. Modify index name. <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl if confirm in [-1, "-1"]: idx = get_idx(idxID) idxNAME = idx[0][1] @@ -806,7 +806,7 @@ else: code = str.replace("%s" % code, " ", "") fldID = int(fldID) - subtitle = """<a name="2"></a>1. Modify field code for logical field '%s'   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) + subtitle = """<a name="2"></a>1. Modify field code for logical field '%s' <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) text = """ <span class="adminlabel">Field code</span> @@ -839,7 +839,7 @@ """Modify which logical fields to use in this index..""" output = '' - subtitle = """<a name="3"></a>3. Modify index fields.   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl + subtitle = """<a name="3"></a>3. Modify index fields. <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % weburl output = """<dl> <dt>Menu</dt> @@ -881,7 +881,7 @@ fld_type = get_fld_nametypes() fldID = int(fldID) - subtitle = """<a name="4"></a>3. Modify MARC tags for the logical field '%s'   <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) + subtitle = """<a name="4"></a>3. Modify MARC tags for the logical field '%s' <small>[<a title="See guide" href="%s/admin/bibindex/guide.html">?</a>]</small>""" % (fld_dict[int(fldID)], weburl) output = """<dl> <dt>Menu</dt> <dd><a href="%s/admin/bibindex/bibindexadmin.py/addtag?fldID=%s&ln=%s#4.1">Add MARC tag</a></dd> Index: cds-invenio-0.92.0/modules/webaccess/lib/webaccessadmin_lib.py =================================================================== --- cds-invenio-0.92.0.orig/modules/webaccess/lib/webaccessadmin_lib.py 2007-01-26 10:22:41.718450422 +0100 +++ cds-invenio-0.92.0/modules/webaccess/lib/webaccessadmin_lib.py 2007-01-26 10:29:27.428723450 +0100 @@ -524,7 +524,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="1"></a>1. Access policy.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="1"></a>1. Access policy. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl account_policy = {} account_policy[0] = "Users can register new accounts. New accounts automatically activated." @@ -571,7 +571,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="2"></a>2. Account overview.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="2"></a>2. Account overview. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl output = "" res = run_sql("SELECT COUNT(*) FROM user WHERE email=''") output += "Guest accounts: %s<br>" % res[0][0] @@ -597,7 +597,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="3"></a>3. Create account.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="3"></a>3. Create account. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl output = "" @@ -755,7 +755,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="2"></a>2. Modify baskets.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="2"></a>2. Modify baskets. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl res = run_sql("SELECT id, email, password FROM user WHERE id=%s" % userID) output = "" @@ -796,7 +796,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="1"></a>1. Edit login-data.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="1"></a>1. Edit login-data. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl res = run_sql("SELECT id, email, password FROM user WHERE id=%s" % userID) output = "" @@ -838,7 +838,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="3"></a>3. Modify alerts.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="3"></a>3. Modify alerts. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl res = run_sql("SELECT id, email, password FROM user WHERE id=%s" % userID) output = "" @@ -878,7 +878,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="4"></a>4. Modify preferences.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="4"></a>4. Modify preferences. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl res = run_sql("SELECT id, email, password FROM user WHERE id=%s" % userID) output = "" @@ -924,7 +924,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="5"></a>5. Delete account.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="5"></a>5. Delete account. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl res = run_sql("SELECT id, email, password FROM user WHERE id=%s" % userID) output = "" @@ -989,7 +989,7 @@ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) - subtitle = """<a name="4"></a>4. Edit accounts.   <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl + subtitle = """<a name="4"></a>4. Edit accounts. <small>[<a title="See guide" href="%s/admin/webaccess/guide.html#4">?</a>]</small>""" % weburl output = "" Index: cds-invenio-0.92.0/modules/websearch/lib/websearch_templates.py =================================================================== --- cds-invenio-0.92.0.orig/modules/websearch/lib/websearch_templates.py 2007-01-26 10:22:41.745446914 +0100 +++ cds-invenio-0.92.0/modules/websearch/lib/websearch_templates.py 2007-01-26 10:30:17.161258931 +0100 @@ -2062,12 +2062,12 @@ out += '</table>' if row.has_key ('viewsimilarity'): - out += '<p> ' + out += '<p> ' out += self.tmpl_print_record_list_for_similarity_boxen ( _("People who viewed this page also viewed:"), row ['viewsimilarity'], ln) if row.has_key ('reviews'): - out += '<p> ' + out += '<p> ' out += row['reviews'] if row.has_key ('comments'):