[open-ils-commits] r1223 - in servres/trunk/conifer: static templates/components templates/item (artunit)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 7 22:59:00 EST 2011


Author: artunit
Date: 2011-02-07 22:58:58 -0500 (Mon, 07 Feb 2011)
New Revision: 1223

Modified:
   servres/trunk/conifer/static/main.css
   servres/trunk/conifer/templates/components/site.xhtml
   servres/trunk/conifer/templates/item/item_metadata.xhtml
Log:
clarify status for multiple items

Modified: servres/trunk/conifer/static/main.css
===================================================================
--- servres/trunk/conifer/static/main.css	2011-02-07 19:02:08 UTC (rev 1222)
+++ servres/trunk/conifer/static/main.css	2011-02-08 03:58:58 UTC (rev 1223)
@@ -179,7 +179,7 @@
 
 .itemtree .itemtree { margin-left: 30px; padding-left: 0; }
 
-.an_item {width: 700px; margin: 0;}
+.an_item {width: 750px; margin: 0;}
 .itemtree li { padding-left: 0; margin-left: 0; } 
 
 .itemtree li { margin: 12px 8px; line-height: 115%; }
@@ -358,7 +358,7 @@
 
 .availability {
     float: right; color: darkred; background-color: #eee; 
-    width: 150px; margin-left: 8px; 
+    width: 225px; margin-left: 8px; 
     font-size: 80%;
 }
 .availability div { padding: 2px 4px; }
@@ -367,3 +367,4 @@
 .availability .unavailable { color: darkred; background-color: #edd; }
 .avail_nonphys { background-color: white; }
 .availability .callnumber { margin: 2px 0; }
+.standout { font-weight: bold; }

Modified: servres/trunk/conifer/templates/components/site.xhtml
===================================================================
--- servres/trunk/conifer/templates/components/site.xhtml	2011-02-07 19:02:08 UTC (rev 1222)
+++ servres/trunk/conifer/templates/components/site.xhtml	2011-02-08 03:58:58 UTC (rev 1223)
@@ -58,18 +58,25 @@
                 <span py:if="_circmod == 'RESERVE 4 HOUR'">4 Hour Loan</span>
                 <span py:if="_circmod == 'RESERVE 7 DAY'">7 Day Loan</span>
           </div>
-	  <div class="callnumber">${_callno}</div>
-          <div py:if="_dueinfo">DUE: ${_dueinfo}</div>
+	  <div class="callnumber"><span py:if="_avail &gt; 0">Ask for: </span><span class="standout">${_callno}</span></div>
+          <div py:if="_dueinfo">NEXT DUE: ${_dueinfo}</div>
          </div>
 		  
          <div py:if="not valid" class="unavailable">
 		Availability unknown.
 		<div class="callnumber">${item.call_number()}</div>
-		  
          </div>
-
+    		
          </a>
+      <div py:with="(_lib, _desk, _avail, _callno, _dueinfo, _circmod) = stat">
+         	<div py:if="_desk &gt; 1 and item.bib_id and gethook('bib_id_to_url')"
+			py:with="url=callhook('bib_id_to_url', item.bib_id)">
+			<a py:if="url" href="${url}">View status of all copies in catalogue</a>
+         	</div>
       </div>
+      </div>
+         
+
       <div class="availability avail_nonphys" py:if="item.item_type != 'PHYS'">
       </div>
       <div class="mainline ${item.item_type=='HEADING' and 'headingmainline' or ''}">

Modified: servres/trunk/conifer/templates/item/item_metadata.xhtml
===================================================================
--- servres/trunk/conifer/templates/item/item_metadata.xhtml	2011-02-07 19:02:08 UTC (rev 1222)
+++ servres/trunk/conifer/templates/item/item_metadata.xhtml	2011-02-08 03:58:58 UTC (rev 1223)
@@ -117,6 +117,11 @@
 	</div>
     </div>
 
+    <div py:if="item.bib_id and gethook('bib_id_to_url')"
+	 py:with="url=callhook('bib_id_to_url', item.bib_id)">
+      <a py:if="url" href="${url}">View status of all copies in catalogue</a>
+    </div>
+
     <div py:if="item.marcxml">
       <abbr py:if="item.marcxml" class="unapi-id" title="${item.id}"/>
       <p id="marcdatashow"><a href="javascript:void($('#marcdata').toggle());">Display MARC Record</a></p>
@@ -130,9 +135,5 @@
 	      </table>
 	    </div>
     </div>
-    <div py:if="item.bib_id and gethook('bib_id_to_url')"
-	 py:with="url=callhook('bib_id_to_url', item.bib_id)">
-      <a py:if="url" href="${url}">View catalogue entry</a>
-    </div>
   </body>
 </html>



More information about the open-ils-commits mailing list