text="You are not authorized to view this collection",
navmenuid='search')
elifuid>0:
user_preferences=get_user_preferences(uid)
exceptError:
register_exception(req=req,alert_admin=True)
returnpage(title=_("Internal Error"),
body=create_error_box(req,verbose=verbose,ln=ln),
description="%s - Internal Error"%CFG_SITE_NAME,
keywords="%s, Internal Error"%CFG_SITE_NAME,
language=ln,
req=req,
navmenuid='search')
# deduce collection id:
normalised_name=get_coll_normalised_name(c)
colID=get_colID(normalised_name)
iftype(colID)isnotint:
page_body='<p>'+(_("Sorry, collection %(x_colname)s does not seem to exist.",x_colname='<strong>'+str(c)+'</strong>',))+'</p>'
page_body='<p>'+(_("You may want to start browsing from %(x_sitehref)s.",x_sitehref='<a href="'+CFG_SITE_URL+'?ln='+ln+'">'+get_coll_i18nname(CFG_SITE_NAME,ln)+'</a>'))+'</p>'
ifreq.method=='HEAD':
raiseapache.SERVER_RETURN,apache.HTTP_NOT_FOUND
returnpage(title=_("Collection %(x_colname)s Not Found",x_colname=cgi.escape(c)),