Start of MassLNC status display modifications.
authorArt Rhyno <art632000@yahoo.ca>
Fri, 24 Jun 2011 04:28:45 +0000 (00:28 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Fri, 24 Jun 2011 04:28:45 +0000 (00:28 -0400)
Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/templates/components/site.xhtml

index eb1c2e6..d346eab 100644 (file)
@@ -44,7 +44,11 @@ searchtext = _('search this site...')
        <div py:if="valid" py:with="(_lib, _desk, _avail, _callno, _dueinfo, _circmod, _alldues) = stat"
             class="${_avail &gt; 0 and 'available' or 'unavailable'}"
             title="${_avail} of ${_desk} copies available at reserves desk; ${_lib} total copies in library system">
+          <!--
           <div>${_avail and 'Available' or 'Unavailable'} (${_avail}/${_desk})</div>
+          -->
+          <div py:if="_avail == 1">${_avail} copy available</div>
+          <div py:if="_avail &gt; 1 or _avail == 0">${_avail} copies available</div>
           <div py:if="_circmod">
                <span py:if="_circmod == 'RSV2'">2 Hour Loan</span>
                <span py:if="_circmod == 'RSV3'">3 Day Loan</span>