Annotation of ECHO_content/vlp/subCollection_template.zpt, revision 1.2

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

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