File:  [Repository] / ECHO_content / vlp / subCollection_template.zpt
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Dec 5 14:17:59 2005 UTC (18 years, 7 months ago) by dwinter
Branches: MAIN
CVS tags: cleanup, Root_cleanup, HEAD
changes for vlp

    1: <html metal:use-macro="here/main_template/macros/page">
    2: <head>
    3: 	<title tal:content="here/title">VL Literature [lit25146 a0001]</title>
    4: 	
    5:     <!-- SLOT: additional stylesheet -->
    6: 	<style metal:fill-slot="additionalStyles" type="text/css"
    7: 		tal:content="python:'.vario {background-color: ' + here.library.varioColor + ';}'">
    8: 		/* background colors */
    9: 		.vario {background-color: libraryProperty.varioColor;}
   10: 	</style>
   11: </head>
   12: 
   13: 
   14: <body>
   15: 
   16: <tal:block metal:fill-slot="body">
   17: <table 
   18:   	tal:repeat="header python:here.ZSQLSimpleSearch('
   19:   		SELECT * FROM vl_literature 
   20:   		WHERE reference = \'' + here.getId() + '\'')">
   21: 
   22: 	<tr tal:define="global type python:header.referencetype">
   23: 		<th class="thead" >
   24: 			<span tal:replace="python:header.shortreference.decode('latin-1')"/> 
   25: 		</th>
   26: 	</tr>
   27: </table>
   28: <p class="TOClist" 
   29: 	tal:repeat="item python:here.getVLPSubcollectionToc(type)">
   30:      <a 
   31:      	tal:condition="python:here.checkForFrontMatter(item.reference)"
   32:      	tal:attributes="href python:here.vlp_root() + '/library/data/'+item.reference+'/'+item.reference">Table of Contents, Tables, ...</a
   33:      >
   34:      <tal:x condition="not:python:(item.reference==here.getId())">
   35:      <a 
   36:      	tal:condition="python:item.online==1" 
   37:      	tal:attributes="href python:here.vlp_root() + '/references?id='+item.reference"><span 
   38: 			tal:replace="python:item.fullreference.decode('latin-1')"/></a>
   39:      <a 
   40:      	tal:condition="not:python:item.online==1" 
   41:      	><span 
   42: 			tal:replace="python:item.fullreference.decode('latin-1')"/></a>
   43: 			
   44: 	</tal:x>
   45: </p>
   46: </tal:block> 
   47: 
   48: </body>
   49: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>