From f07ed5bf664aa324c49e09dd2ac7b9ed86168b9d Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Mon, 14 Apr 2014 19:12:51 -0400 Subject: [PATCH] Add status link for all copies for multipart titles A status link for multiparts makes the layout more consistent. Also moved the "revert parms" content to its own div so that it doesn't disappear if a title does not have an author. Signed-off-by: Art Rhyno --- conifer/integration/evergreen_site.py | 6 +++- conifer/templates/components/site.xhtml | 59 +++++++++++++++------------------ 2 files changed, 31 insertions(+), 34 deletions(-) diff --git a/conifer/integration/evergreen_site.py b/conifer/integration/evergreen_site.py index dd08f8e..8f32713 100644 --- a/conifer/integration/evergreen_site.py +++ b/conifer/integration/evergreen_site.py @@ -488,7 +488,11 @@ class EvergreenIntegration(object): if len(allcalls) == 0 and dueid[1] != LOCKED and copy.syrup_id != -1: dueid = [copy.syrup_id,DUE] - alldisplay = '%s (DUE: %s)' % (callno,time.strftime(self.DUE_FORMAT,earliestdue)) + if copy.part_label: + alldisplay = '%s - %s (DUE: %s)' % (callno, + copy.part_label,time.strftime(self.DUE_FORMAT,earliestdue)) + else: + alldisplay = '%s (DUE: %s)' % (callno,time.strftime(self.DUE_FORMAT,earliestdue)) if len(allcalls) > 0: if allcalls[len(allcalls) - 1][1] != LOCKED: diff --git a/conifer/templates/components/site.xhtml b/conifer/templates/components/site.xhtml index bb48b28..14ca98e 100644 --- a/conifer/templates/components/site.xhtml +++ b/conifer/templates/components/site.xhtml @@ -44,9 +44,6 @@ searchtext = _('search this site...')
-
${_avail} copy available
${_avail} copies of ${_desk} available
@@ -70,39 +67,36 @@ searchtext = _('search this site...') ${j} Ask for: ${j}
-
NEXT DUE: ${_dueinfo}
+
NEXT DUE: ${_dueinfo}
Availability unknown.
${item.call_number()}
-
-
- - - + + +
@@ -151,7 +145,9 @@ searchtext = _('search this site...') (${item.published}). ${item.source_title}. ${item.volume}(${item.issue}), ${item.pages}. -
+
+ +
Revert Parms: @@ -170,8 +166,6 @@ searchtext = _('search this site...') ${v} - -
Awaiting copyright clearance: Not available to students.
@@ -262,4 +256,3 @@ searchtext = _('search this site...')
- -- 2.11.0