[Blends-commit] r1874 - blends/trunk/webtools/templates

Debian Pure Blends Subversion Commit noreply at alioth.debian.org
Thu Sep 3 20:43:10 UTC 2009


Author: tille
Date: Thu Sep  3 20:43:10 2009
New Revision: 1874
URL: http://svn.debian.org/viewsvn/blends?rev=1874&view=rev

Log:
Implement rendering of DOI information


Modified:
   blends/trunk/webtools/templates/tasks.xhtml

Modified: blends/trunk/webtools/templates/tasks.xhtml
URL: http://svn.debian.org/viewsvn/blends/blends/trunk/webtools/templates/tasks.xhtml?rev=1874&view=diff&r1=1874&r2=1873&p1=blends/trunk/webtools/templates/tasks.xhtml&p2=blends/trunk/webtools/templates/tasks.xhtml
==============================================================================
--- blends/trunk/webtools/templates/tasks.xhtml	(original)
+++ blends/trunk/webtools/templates/tasks.xhtml	Thu Sep  3 20:43:10 2009
@@ -169,6 +169,16 @@
 		     <span py:otherwise=""><a href="${project.properties['published']['url']}">Link
 			 to publication</a></span>
 		   </span>
+                   <span py:if="project.properties['published'].has_key('doi')">(<a href="http://dx.doi.org/${project.properties['published']['doi']}">DOI</a>)
+                   </span>
+		 </span>
+		 <span py:when="project.properties['published'].has_key('doi')">
+		   <span py:choose="">
+                     <span class="title"
+			   py:when="project.properties['published'].has_key('title')"><a href="http://dx.doi.org/${project.properties['published']['doi']}">${project.properties['published']['title']}.</a></span>
+		     <span py:otherwise=""><a href="http://dx.doi.org/${project.properties['published']['doi']}">Link
+			 to publication</a></span>
+		   </span>
 		 </span>
 		 <span py:otherwise=""><span class="title" py:if="project.properties['published'].has_key('title')">${project.properties['published']['title']}</span>
 		 </span>



More information about the Blends-commit mailing list