From f01bad78e5ed7a86d387f6d2538c44ed26e0ca62 Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Mon, 14 Apr 2014 18:13:40 -0400 Subject: [PATCH] Small clean up - spacing and some comments Slowly clearing out tabs in the templates. Also added a comment about the memoize decorator. Signed-off-by: Art Rhyno --- conifer/integration/evergreen_site.py | 10 ++++++++-- conifer/templates/components/site.xhtml | 31 ++++++++++++++++--------------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/conifer/integration/evergreen_site.py b/conifer/integration/evergreen_site.py index 1b30ac9..dd08f8e 100644 --- a/conifer/integration/evergreen_site.py +++ b/conifer/integration/evergreen_site.py @@ -183,8 +183,14 @@ class EvergreenIntegration(object): idlist = make_obj_string(ids) return self._item_status(item.bib_id, item.barcode, bclist, idlist) - #in general, you want to cache this for a few minutes - #but bump this value to 0 or something low for debugging + """ + in general, you want to cache this for a few minutes + but bump this value to 0 or something low for debugging + the count is in seconds, default is 2 + + see: http://code.activestate.com/recipes/325905/ + """ + CACHE_TIME = 300 @memoize(timeout=CACHE_TIME) diff --git a/conifer/templates/components/site.xhtml b/conifer/templates/components/site.xhtml index 9e31b3e..bb48b28 100644 --- a/conifer/templates/components/site.xhtml +++ b/conifer/templates/components/site.xhtml @@ -145,32 +145,33 @@ searchtext = _('search this site...') -
+
[${vt}] - ${item.author}. - (${item.published}). - ${item.source_title}. - ${item.volume}(${item.issue}), ${item.pages}. -
+ ${item.author}. + (${item.published}). + ${item.source_title}. + ${item.volume}(${item.issue}), ${item.pages}. +
Revert Parms: - + - ${v} + ${v} - ${item.orig_callno} - + ${item.orig_callno} + - ${v} + ${v} - (${item.circ_modifier}) - + (${item.circ_modifier}) + - ${v} + ${v} -
+ +
Awaiting copyright clearance: Not available to students.
-- 2.11.0