Mercurial > hg > documentViewer
view zpt/viewer_xml.zpt @ 546:2928037f9a75
ASSIGNED - # 249: Annotations shared in groups
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/249
author | casties |
---|---|
date | Tue, 28 Aug 2012 20:24:01 +0200 |
parents | 6cdc31e9ed8e |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; rootUrl here/getDocumentViewerURL; numPages docinfo/numPages | nothing;"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> <script type="text/javascript" tal:attributes="src string:$rootUrl/template/jquery_js"></script> <script type="text/javascript"> // <!-- $(document).ready(function() { // autosubmit forms $('form.autosubmit').find('.autosubmit').change(function() { this.form.submit(); }); $('form.autosubmit input[type="submit"]').hide(); }); // --> </script> </head> <body tal:condition="numPages"> <tal:block tal:define="docpath docinfo/textURLPath; pn pageinfo/pn; flowLtr python:docinfo.get('pageFlow','ltr')!='rtl'; textPage python:here.getTextPage(mode='xml', pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';"> <!-- header --> <div class="page-head"> <metal:block metal:use-macro="here/template/common_template/macros/head" /> </div> <div class="page-body" tal:condition="python:here.isAccessible(docinfo)"> <!--table of contents--> <div class="col toc"> <metal:block metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" /> </div> <!-- text page --> <div class="col main"> <div class="ruler top"> <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> </div> <div class="content xml"> <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" tal:content="structure pageinfo/pageHeaderTitle" /> <tal:block tal:replace="structure textPage" /> </div> </div> <!-- col-main --> <!-- right-side options --> <div class="col buttons"> <!--"BEGIN TEXT SIZE"--> <!-- <div class="options"> <h4>Text size</h4> <ul class="fsizer"> <li> <a href="javascript:fontSize(12);" class="fs_sml">S</a> </li> <li> <a href="javascript:fontSize(14);" class="fs_med">M</a> </li> <li> <a href="javascript:fontSize(16);" class="fs_lrg">L</a> </li> </ul> </div> --> <!--"END TEXT SIZE"--> </div> <!-- /col-right --> </div> <!-- /page-body --> <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)"> <div class="errortext">Sorry, access to this document is restricted.</div> </div> <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> <!-- footer --> <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> </tal:block> </tal:block> </body> <body tal:condition="not:numPages"> <div class="errortext">Sorry, document doesn't exist.</div> <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> <!-- footer --> <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> </tal:block> </body> </html>