From: Art Rhyno Date: Mon, 14 Apr 2014 22:13:40 +0000 (-0400) Subject: Small clean up - spacing and some comments X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f01bad78e5ed7a86d387f6d2538c44ed26e0ca62;p=syrup%2Fmasslnc.git 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 --- 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.