[open-ils-commits] r1139 - in servres/trunk/conifer: . templates/components (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 28 16:12:47 EST 2010


Author: gfawcett
Date: 2010-12-28 16:12:42 -0500 (Tue, 28 Dec 2010)
New Revision: 1139

Modified:
   servres/trunk/conifer/TODO
   servres/trunk/conifer/templates/components/site.xhtml
Log:
A more citation-like display of item's metadata on index pages.

It's APA-leaning, but that's okay for now.

Modified: servres/trunk/conifer/TODO
===================================================================
--- servres/trunk/conifer/TODO	2010-12-28 21:00:39 UTC (rev 1138)
+++ servres/trunk/conifer/TODO	2010-12-28 21:12:42 UTC (rev 1139)
@@ -10,6 +10,8 @@
 
 * add/remove individuals in course sites
 
+* make sure volume, issue, source title, etc. are exposed over unAPI.
+
 CRITICAL:
 
 IMPORTANT:

Modified: servres/trunk/conifer/templates/components/site.xhtml
===================================================================
--- servres/trunk/conifer/templates/components/site.xhtml	2010-12-28 21:00:39 UTC (rev 1138)
+++ servres/trunk/conifer/templates/components/site.xhtml	2010-12-28 21:12:42 UTC (rev 1139)
@@ -53,9 +53,13 @@
 		<a href="${item.item_url()}" class="mainlink">${item}</a> 
       </div>
       <div class="author_pub" py:if="item.author or item.publisher or item.published">
-		<span py:if="item.author">${item.author}.</span>
-		<span py:if="item.publisher">${item.publisher}.</span>
-		<span py:if="item.published">${item.published}.</span>
+		<span py:if="item.author">${item.author}<span py:if="item.author[-1]!='.'">.</span></span>
+		<span py:if="item.published">(${item.published}).</span>
+		<span py:if="item.source_title">${item.source_title}.</span>
+		<span py:if="item.volume"><i>${item.volume}</i>(${item.issue}), ${item.pages}.</span>
+		<span py:if="not item.source_title">
+		  <span py:if="item.publisher">${item.publisher}.</span>
+		</span>
       </div>
       <div class="forbidden_notice" py:if="forbidden">Awaiting copyright clearance: Not available to students.</div>
 	  <div>



More information about the open-ils-commits mailing list