Changeset 536:abd36d4d97b8 in documentViewer for zpt/viewer_index.zpt


Ignore:
Timestamp:
Jul 26, 2012, 7:22:56 PM (12 years ago)
Author:
casties
Branch:
default
Message:

new version of index page. improvements for digilib page and thumbnail overview.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer_index.zpt

    r535 r536  
    1313</head>
    1414<body tal:condition="numPages">
    15   <h1>Document information</h1>
     15  <!-- header -->
     16  <div class="page-head">
     17    <metal:block metal:use-macro="here/template/common_template/macros/head" />
     18  </div>
     19 
     20  <!-- main -->
     21  <div class="page-body">
    1622
    17   <div class="index-image">
     23  <div class="col index-image">
    1824    <!-- image -->
    19     <a tal:define="tp docinfo/titlePage | nothing"
    20       tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img
    21       tal:condition="tp" border="0"
    22       tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
     25    <a tal:define="tp docinfo/titlePage | nothing" tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img
     26      tal:condition="tp" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
    2327      tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
    2428  </div>
    2529
     30  <div class="col">
    2631  <div class="index-info">
    2732    <table border="0"
     
    7075  </div>
    7176
    72   <div>
    73     <div>
    74       <a class="openbutton"
    75         tal:attributes="href python:context.getLink('viewMode','auto')">Access Book</a>
     77  <div class="index-actions">
     78    <div class="action">
     79      <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Access Book</a>
    7680    </div>
    77     <div tal:condition="docpath">
     81    <div class="action" tal:condition="docpath">
    7882      Download as <a
    7983        tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
    80         target="_blank">html</a> / <a
    81         tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)"
    82         target="_blank">xml</a>
     84        target="_blank">&#8594;HTML</a> or <a
     85        tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
    8386    </div>
    84     <div>
     87    <div class="action">
    8588      <!--BEGIN search -->
    8689      <form tal:condition="docpath" tal:attributes="action python:here.getLink()">
    87         <input type="hidden" tal:define="params python:here.getParams('viewMode', None)"
    88           tal:repeat="param params"
    89           tal:attributes="name param; value python:params[param]" /> <input
    90           class="textMain" name="query" onfocus="this.select();" type="text"
    91           tal:attributes="value query" /> <input type="submit" class="buttonMain"
    92           value="Search in Book" />
     90        <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
     91          tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" onfocus="this.select();"
     92          type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" value="Search in Book" />
    9393      </form>
    9494      <!-- END search-->
    9595    </div>
    9696  </div>
    97   <!-- DEBUG -->
    98   <!-- <p tal:content="python:repr(docinfo)" /> -->
     97  </div>
     98  </div>
    9999</body>
    100100<body tal:condition="not:numPages">
Note: See TracChangeset for help on using the changeset viewer.