Changeset 221
- Timestamp:
- 11/09/08 14:19:45 (2 months ago)
- Files:
-
- trunk/shakespeare/templates/guide.html (modified) (1 diff)
- trunk/shakespeare/templates/index.html (modified) (1 diff)
- trunk/shakespeare/templates/layout.html (modified) (1 diff)
- trunk/shakespeare/templates/search/index.html (modified) (1 diff)
- trunk/shakespeare/templates/stats/index.html (modified) (1 diff)
- trunk/shakespeare/templates/stats/text.html (modified) (1 diff)
- trunk/shakespeare/templates/stats/word.html (modified) (1 diff)
- trunk/shakespeare/templates/text/index.html (modified) (1 diff)
- trunk/shakespeare/templates/text/info.html (modified) (1 diff)
- trunk/shakespeare/templates/text/view.html (modified) (1 diff)
- trunk/shakespeare/templates/view_annotate.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/shakespeare/templates/guide.html
Revision 220 Revision 221 1 <html xmlns:py="http://genshi.edgewall.org/" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 lang="en"> 3 7 4 <py:def function="page_title">Guide to the Web Interface</py:def> 8 <py:def function="page_title">Guide to the Web Interface</py:def> 5 9 6 <div py:match="content"> 10 <div py:match="content"> 7 <h2>Guide to the Web Interface</h2> 11 <h2>Guide to the Web Interface</h2> 8 <p> 12 <p> 9 This page provides a guide to the features of the web interface. 13 This page provides a guide to the features of the web interface. 10 </p> 14 </p> 11 <h2> 15 <h2> 12 The Index 16 The Index 13 </h2> 17 </h2> 14 <p> 18 <p> 15 The <a href="${h.url_for(controller='text', action='index')}">text index 19 The <a href="${h.url_for(controller='text', action='index')}">text index 16 page</a> contains a list of all of the material on the system. 20 page</a> contains a list of all of the material on the system. 17 </p> 21 </p> 18 <h2> 22 <h2> 19 Viewing Works 23 Viewing Works 20 </h2> 24 </h2> 21 <p> 25 <p> 22 You can view works by clicking on the link available from the index page. 26 You can view works by clicking on the link available from the index page. 23 If you know the 'name/id' of a text you can view it directly by visiting the 27 If you know the 'name/id' of a text you can view it directly by visiting the 24 url: ${h.url_for(controller='text', action='view', id='name')} (you can work 28 url: ${h.url_for(controller='text', action='view', id='name')} (you can work 25 out id names by looking at the link urls on the index page). 29 out id names by looking at the link urls on the index page). 26 </p> 30 </p> 27 31 28 <h3>Viewing in different formats</h3> 32 <h3>Viewing in different formats</h3> 29 <p> 33 <p> 30 You can view a given text in a different format by setting the format 34 You can view a given text in a different format by setting the format 31 argument in the url query string like so: 35 argument in the url query string like so: 32 </p> 36 </p> 33 <pre> 37 <pre> 34 ${h.url_for(controller='text', action='view', id='name', format='format_name')} 38 ${h.url_for(controller='text', action='view', id='name', format='format_name')} 35 </pre> 39 </pre> 36 <p> 40 <p> 37 So to view the text with name id 'hamlet_gut' with line numbers shown you 41 So to view the text with name id 'hamlet_gut' with line numbers shown you 38 would visit (this link will only work if that text is indeed available on 42 would visit (this link will only work if that text is indeed available on 39 your system!): 43 your system!): 40 </p> 44 </p> 41 <blockquote><p> 45 <blockquote><p> 42 <a href="${h.url_for(controller='text', action='view', id='hamlet_gut', format='lineno')}"> 46 <a href="${h.url_for(controller='text', action='view', id='hamlet_gut', format='lineno')}"> 43 ${h.url_for(controller='text', action='view', id='hamlet_gut', format='lineno')}</a> 47 ${h.url_for(controller='text', action='view', id='hamlet_gut', format='lineno')}</a> 44 </p></blockquote> 48 </p></blockquote> 45 <p> 49 <p> 46 Available formats are: 50 Available formats are: 47 </p> 51 </p> 48 <ul> 52 <ul> 49 <li>format=plain - plain version of the file (default)</li> 53 <li>format=plain - plain version of the file (default)</li> 50 <li>format=raw - raw file returned as text/plain</li> 54 <li>format=raw - raw file returned as text/plain</li> 51 <li>format=lineno - text with line numbers added</li> 55 <li>format=lineno - text with line numbers added</li> 52 </ul> 56 </ul> 53 57 54 <h3>Multiviews</h3> 58 <h3>Multiviews</h3> 55 <p> 59 <p> 56 You can view mutiple texts at once by concatenating the name-ids 60 You can view mutiple texts at once by concatenating the name-ids 57 separated by '+'. For example to see the Gutenberg folio and non-folio 61 separated by '+'. For example to see the Gutenberg folio and non-folio 58 Othello side-by-side you would visit: <a 62 Othello side-by-side you would visit: <a 59 href="${h.url_for(controller='text', action='view', id=None, name='othello_gut_f othello_gut')}"> 63 href="${h.url_for(controller='text', action='view', id=None, name='othello_gut_f othello_gut')}"> 60 ${h.url_for(controller='text', action='view', id=None, name='othello_gut_f othello_gut')} 64 ${h.url_for(controller='text', action='view', id=None, name='othello_gut_f othello_gut')} 61 </a> 65 </a> 62 </p> 66 </p> 63 67 64 <h2> 68 <h2> 65 Search 69 Search 66 </h2> 70 </h2> 67 <p> 71 <p> 68 See the <a href="${h.url_for(controller='search', action='index')}">search section</a>. 72 See the <a href="${h.url_for(controller='search', action='index')}">search section</a>. 69 </p> 73 </p> 70 74 71 <h2> 75 <h2> 72 Stats 76 Stats 73 </h2> 77 </h2> 74 <p> 78 <p> 75 See the <a href="${h.url_for(controller='stats', action='index')}">stats section</a>. 79 See the <a href="${h.url_for(controller='stats', action='index')}">stats section</a>. 76 </p> 80 </p> 77 81 78 82 79 <h2>Comments</h2> 83 <h2>Comments</h2> 80 <p> 84 <p> 81 If you wish to comment on this guide (or help improve it!) please drop a 85 If you wish to comment on this guide (or help improve it!) please drop a 82 line to the Open Shakespeare team via at info [at] okfn [dot] org. 86 line to the Open Shakespeare team via at info [at] okfn [dot] org. 83 </p> 87 </p> 84 </div> 88 </div> 85 89 86 <xi:include href="layout.html" /> 90 <xi:include href="layout.html" /> 87 < /html>91 <!--</html>--> trunk/shakespeare/templates/index.html
Revision 220 Revision 221 1 <html xmlns:py="http://genshi.edgewall.org/" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 lang="en"> 3 7 4 <py:def function="page_title">Home</py:def> 8 <py:def function="page_title">Home</py:def> 5 9 6 <div py:match="content"> 10 <div py:match="content"> 7 <h2>Welcome to ${c.site_title}</h2> 11 <h2>Welcome to ${c.site_title}</h2> 8 <p> 12 <p> 9 Welcome to the ${c.site_title} web interface. This site provides access 13 Welcome to the ${c.site_title} web interface. This site provides access 10 to many, but by no means all, of the facilities of the ${c.site_title} 14 to many, but by no means all, of the facilities of the ${c.site_title} 11 <a 15 <a 12 href="http://knowledgeforge.net/shakespeare/trac/"><strong>package</strong></a>. 16 href="http://knowledgeforge.net/shakespeare/trac/"><strong>package</strong></a>. 13 For example you can: 17 For example you can: 14 </p> 18 </p> 15 <ul> 19 <ul> 16 <li><a href="${h.url_for(controller='text', action=None)}">Read a variety 20 <li><a href="${h.url_for(controller='text', action=None)}">Read a variety 17 of texts (plays, poems etc) as well as ancillary material</a></li> 21 of texts (plays, poems etc) as well as ancillary material</a></li> 18 <li><a href="${h.url_for(controller='site', action='guide')}">Compare two 22 <li><a href="${h.url_for(controller='site', action='guide')}">Compare two 19 versions of the same text side-by-side</a></li> 23 versions of the same text side-by-side</a></li> 20 <li><a href="${h.url_for(controller='stats', 24 <li><a href="${h.url_for(controller='stats', 21 action='index')}">Analyze text or word statistics</a></li> 25 action='index')}">Analyze text or word statistics</a></li> 22 <li><a href="${h.url_for(controller='search', 26 <li><a href="${h.url_for(controller='search', 23 action='index')}">Search any text</a></li> 27 action='index')}">Search any text</a></li> 24 </ul> 28 </ul> 25 29 26 <p>More information on using this web interface can be found in the <a 30 <p>More information on using this web interface can be found in the <a 27 href="${h.url_for(controller='site', action='guide')}">guide</a>.</p> 31 href="${h.url_for(controller='site', action='guide')}">guide</a>.</p> 28 32 29 <h3>Why Open Shakespeare</h3> 33 <h3>Why Open Shakespeare</h3> 30 <p> 34 <p> 31 If you type 'Shakespeare' into Google you find thousands of websites why do we need another? First off, unlike most other sites, everything you find here is <a href="http://opendefinition.org/">open</a> – that is you're free to use, reuse, and redistribute it without any need to seek permission.</p> 35 If you type 'Shakespeare' into Google you find thousands of websites why do we need another? First off, unlike most other sites, everything you find here is <a href="http://opendefinition.org/">open</a> – that is you're free to use, reuse, and redistribute it without any need to seek permission.</p> 32 <p> 36 <p> 33 However, more importantly, <strong>this website is only a small part of what we're about</strong>. It serves to demonstrate what you can do with the Open Shakespeare package – a set of material and tools for exploring Shakespeare's life and work. The website demonstrates a few of the ways in which the Open Shakespeare package can be used. <strong>We actively encourage you to take and modify it to do things we haven't yet done</strong> – or even thought of! Some suggestions: 37 However, more importantly, <strong>this website is only a small part of what we're about</strong>. It serves to demonstrate what you can do with the Open Shakespeare package – a set of material and tools for exploring Shakespeare's life and work. The website demonstrates a few of the ways in which the Open Shakespeare package can be used. <strong>We actively encourage you to take and modify it to do things we haven't yet done</strong> – or even thought of! Some suggestions: 34 </p> 38 </p> 35 <ul> 39 <ul> 36 <li>Line by line comparisons of different Shakespeare editions – scholars have spent years poring over the different Folios, now its your turn!</li> 40 <li>Line by line comparisons of different Shakespeare editions – scholars have spent years poring over the different Folios, now its your turn!</li> 37 <li>Our statistics are crude and simple. Maybe you'd like to look at the average length of minor characters speeches in the comedies, or simply find the text in which love and death are mentioned the most.</li> 41 <li>Our statistics are crude and simple. Maybe you'd like to look at the average length of minor characters speeches in the comedies, or simply find the text in which love and death are mentioned the most.</li> 38 <li>Produce your own critical edition: annotate and edit a play as you see fit not Arden!</li> 42 <li>Produce your own critical edition: annotate and edit a play as you see fit not Arden!</li> 39 <li>Search for secret messages that show that Shakespeare was really Ben Jonson (or even Walter Raleigh!) ... </li> 43 <li>Search for secret messages that show that Shakespeare was really Ben Jonson (or even Walter Raleigh!) ... </li> 40 </ul> 44 </ul> 41 </div> 45 </div> 42 46 43 <xi:include href="layout.html" /> 47 <xi:include href="layout.html" /> 44 </html> 48 </html> trunk/shakespeare/templates/layout.html
Revision 220 Revision 221 1 <html xmlns="http://www.w3.org/1999/xhtml" 1 <html xmlns="http://www.w3.org/1999/xhtml" 2 xmlns:py="http://genshi.edgewall.org/" 2 xmlns:py="http://genshi.edgewall.org/" 3 xmlns:xi="http://www.w3.org/2001/XInclude"> 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 xmlns:doap="http://usefulinc.com/ns/doap" 5 xmlns:foaf="http://xmlns.com/foaf/0.1/"> 4 6 5 <head> 7 <head> 6 <title>${c.site_title} - ${page_title()}</title> 8 <title>${c.site_title} - ${page_title()}</title> 7 9 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9 <link rel="stylesheet" href="/css/master.css" type="text/css" media="screen, print" title="Master stylesheet" charset="utf-8" /> 11 <link rel="stylesheet" href="/css/master.css" type="text/css" media="screen, print" title="Master stylesheet" charset="utf-8" /> 10 <script type="text/javascript" src="/scripts/prototype.js"></script> 12 <script type="text/javascript" src="/scripts/prototype.js"></script> 11 <script type="text/javascript" src="/scripts/behaviour.js"></script> 13 <script type="text/javascript" src="/scripts/behaviour.js"></script> 12 <script type="text/javascript" src="/scripts/master.js"></script> 14 <script type="text/javascript" src="/scripts/master.js"></script> 13 <style type="text/css"> 15 <style type="text/css"> 14 /* remove login info at top-right */ 16 /* remove login info at top-right */ 15 #top-bar { display: none; } 17 #top-bar { display: none; } 16 /* mess with standard ckan theme to remove second submenu for time being */ 18 /* mess with standard ckan theme to remove second submenu for time being */ 17 #subnav { background: transparent; height: 1px; } 19 #subnav { background: transparent; height: 1px; } 18 #subnav * { display: none; } 20 #subnav * { display: none; } 19 #main { margin-top: 5px; } 21 #main { margin-top: 5px; } 20 </style> 22 </style> 21 23 22 <py:if test="defined('page_specific_css')"> 24 <py:if test="defined('page_specific_css')"> 23 ${page_specific_css()} 25 ${page_specific_css()} 24 </py:if> 26 </py:if> 25 </head> 27 </head> 26 28 27 <body> 29 <body> 28 <div id="airlock"> 30 <div id="airlock"> 29 <!--[if IE]> 31 <!--[if IE]> 30 <hr class="holder" /> 32 <hr class="holder" /> 31 <![endif]--> 33 <![endif]--> 32 <div id="top"> 34 <div id="top"> 33 <div id="top-inner"> 35 <div id="top-inner"> 34 <div id="top-bar"> 36 <div id="top-bar"> 35 < topbar>37 <!--<topbar>--> 36 38 37 <py:choose> 39 <py:choose> 38 <py:when test="c.user"> 40 <py:when test="c.user"> 39 <p> 41 <p> 40 Logged in as <strong>${c.user}</strong> 42 Logged in as <strong>${c.user}</strong> 41 | <a href="/account/logout/">Logout</a> 43 | <a href="/account/logout/">Logout</a> 42 </p> 44 </p> 43 </py:when> 45 </py:when> 44 <py:otherwise> 46 <py:otherwise> 45 <p> 47 <p> 46 <a href="/account/">Register</a> or 48 <a href="/account/">Register</a> or 47 <a href="/account/login/">Login</a> 49 <a href="/account/login/">Login</a> 48 </p> 50 </p> 49 </py:otherwise> 51 </py:otherwise> 50 </py:choose> 52 </py:choose> 51 < /topbar>53 <!--</topbar>--> 52 </div><!-- /top-bar --> 54 </div><!-- /top-bar --> 53 <h1><a href="${h.url_for(controller='site', action='home')}" title="${c.site_title} Home">${c.site_title}</a></h1> 55 <h1><a href="${h.url_for(controller='site', action='home')}" title="${c.site_title} Home">${c.site_title}</a></h1> 54 56 55 </div><!-- /top-inner --> 57 </div><!-- /top-inner --> 56 58 57 <h3 class="hidden">Sections:</h3> 59 <h3 class="hidden">Sections:</h3> 58 <ul id="navigation"> 60 <ul id="navigation"> 59 <li><a href="${h.url_for('/')}">Home</a></li> 61 <li><a href="${h.url_for('/')}">Home</a></li> 60 <li><a href="${h.url_for(controller='text', action='index')}">Texts</a></li> 62 <li><a href="${h.url_for(controller='text', action='index')}">Texts</a></li> 61 <li><a href="${h.url_for(controller='search', action='index')}">Search</a></li> 63 <li><a href="${h.url_for(controller='search', action='index')}">Search</a></li> 62 <li><a href="${h.url_for(controller='stats', action='index')}">Stats</a></li> 64 <li><a href="${h.url_for(controller='stats', action='index')}">Stats</a></li> 63 <li><a href="${h.url_for(controller='site', action='guide')}">Guide</a></li> 65 <li><a href="${h.url_for(controller='site', action='guide')}">Guide</a></li> 64 <li><a href="http://blog.openshakespeare.org">Blog</a></li> 66 <li><a href="http://blog.openshakespeare.org">Blog</a></li> 65 </ul> 67 </ul> 66 <h3 class="hidden">In this section:</h3> 68 <h3 class="hidden">In this section:</h3> 67 <ul id="subnav"> 69 <ul id="subnav"> 68 < minornavigation>70 <!--<minornavigation>--> 69 <li><a href="${h.url_for(controller='site', action='index')}">Home</a></li> 71 <li><a href="${h.url_for(controller='site', action='index')}">Home</a></li> 70 <py:choose> 72 <py:choose> 71 <py:when test="c.user"> 73 <py:when test="c.user"> 72 <li><a href="/account/logout/">Logout</a></li> 74 <li><a href="/account/logout/">Logout</a></li> 73 </py:when> 75 </py:when> 74 <py:otherwise> 76 <py:otherwise> 75 <li><a href="/account/">Register</a></li> 77 <li><a href="/account/">Register</a></li> 76 <li><a href="/account/login/">Login</a></li> 78 <li><a href="/account/login/">Login</a></li> 77 </py:otherwise> 79 </py:otherwise> 78 </py:choose> 80 </py:choose> 79 <li><a href="/package/new/">New Package</a></li> 81 <li><a href="/package/new/">New Package</a></li> 80 < /minornavigation>82 <!--</minornavigation>--> 81 </ul> 83 </ul> 82 84 83 <!--[if IE]> 85 <!--[if IE]> 84 <hr class="holder" /> 86 <hr class="holder" /> 85 <![endif]--> 87 <![endif]--> 86 88 87 </div><!-- /top --> 89 </div><!-- /top --> 88 90 89 <p class="hidden"><a href="#main" title="Skip to page content">[ Skip to main content ]</a></p> 91 <p class="hidden"><a href="#main" title="Skip to page content">[ Skip to main content ]</a></p> 90 92 91 <div id="primary" class="sidebar"> 93 <div id="primary" class="sidebar"> 92 <div class="box"> 94 <div class="box"> 93 <h2>Further Assistance</h2> 95 <h2>Further Assistance</h2> 94 <p>For information on using ${c.site_title} check out the 96 <p>For information on using ${c.site_title} check out the 95 <a href="${h.url_for(action='guide')}">Guide</a>. 97 <a href="${h.url_for(action='guide')}">Guide</a>. 96 If you have a question or have found a bug please post to the <a href="http://lists.okfn.org/mailman/listinfo/okfn-help">okfn-help</a> mailing list.98 If you have a question or have found a bug please post to the <a rel="doap:mailing-list" href="http://lists.okfn.org/mailman/listinfo/okfn-help">okfn-help</a> mailing list. 97 </p> 99 </p> 98 </div> 100 </div> 99 < primarysidebar>101 <!-- <primarysidebar> 100 <!-- Primary Side Bar Goes Here -->102 Primary Side Bar Goes Here 101 </primarysidebar> 103 </primarysidebar>--> 102 104 103 <!--[if IE]> 105 <!--[if IE]> 104 <hr class="primary" /> 106 <hr class="primary" /> 105 <![endif]--> 107 <![endif]--> 106 108 107 </div><!-- /primary --> 109 </div><!-- /primary --> 108 110 109 <div id="main"> 111 <div id="main"> 110 <div id="content"> 112 <div id="content"> 111 <content> 113 <content> 112 <p>Master content template placeholder … please replace me.</p> 114 <p>Master content template placeholder … please replace me.</p> 113 </content> 115 </content> 114 </div> 116 </div> 115 117 116 <div id="footer"> 118 <div id="footer"> 117 <p> 119 <p> 118 <a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.1">XHTML</a> 120 <a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.1">XHTML</a> 119 | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> 121 | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> 120 | <a href="http://www.okfn.org/shakespeare/">Project Home Page</a>122 | <a rel="doap:homepage" href="http://www.okfn.org/shakespeare/">Project Home Page</a> 121 | <a href="mailto:info@okfn.org">Contact Us</a>123 | <a rel="foaf:mbox" href="mailto:info@okfn.org">Contact Us</a> 122 </p> 124 </p> 123 <p> 125 <p> 124 <img style="margin-bottom: -5px;" src="http://m.okfn.org/images/logo/okf_logo_white_and_green_tiny.png" /> An <a href="http://www.okfn.org/">Open Knowledge Foundation</a> Project 126 <img style="margin-bottom: -5px;" src="http://m.okfn.org/images/logo/okf_logo_white_and_green_tiny.png" /> An <a href="http://www.okfn.org/">Open Knowledge Foundation</a> Project 125 </p> 127 </p> 126 <p> 128 <p> 127 (c) Open Knowledge Foundation 129 (c) Open Knowledge Foundation 128 | All material available under an <a href="/license/">open license</a>130 | All material available under an <a rel="license" href="/license/">open license</a> 129 | <a href="http://www.opendefinition.org/1.0/"><img 131 | <a href="http://www.opendefinition.org/1.0/"><img 130 style="border: none; margin-bottom: -4px;" 132 style="border: none; margin-bottom: -4px;" 131 src="http://m.okfn.org/images/ok_buttons/ok_90x15_blue.png" 133 src="http://m.okfn.org/images/ok_buttons/ok_90x15_blue.png" 132 alt="This Content and Data is Open" /></a> 134 alt="This Content and Data is Open" /></a> 133 </p> 135 </p> 134 </div><!-- /footer --> 136 </div><!-- /footer --> 135 137 136 <!--[if IE]> 138 <!--[if IE]> 137 <hr class="main" /> 139 <hr class="main" /> 138 <![endif]--> 140 <![endif]--> 139 141 140 </div><!-- /main --> 142 </div><!-- /main --> 141 143 142 </div><!-- /airlock --> 144 </div><!-- /airlock --> 143 </body> 145 </body> 144 </html> 146 </html> trunk/shakespeare/templates/search/index.html
Revision 220 Revision 221 1 <html xmlns:py="http://genshi.edgewall.org/" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 lang="en"> 3 7 4 <py:def function="page_title">Search Material</py:def> 8 <py:def function="page_title">Search Material</py:def> 5 9 6 <div py:match="content"> 10 <div py:match="content"> 7 <h2>Search Available Material</h2> 11 <h2>Search Available Material</h2> 8 <form name="test" method="GET" action=""> 12 <form name="test" method="GET" action=""> 9 <input type="text" name="query" /> 13 <input type="text" name="query" /> 10 <input type="submit" name="submit" value="Submit" /> 14 <input type="submit" name="submit" value="Submit" /> 11 </form> 15 </form> 12 16 13 <div class="search-results" py:if="c.total >= 0"> 17 <div class="search-results" py:if="c.total >= 0"> 14 <h3>Search Results For: ${c.query}</h3> 18 <h3>Search Results For: ${c.query}</h3> 15 There were ${c.total} results. 19 There were ${c.total} results. 16 <ul> 20 <ul> 17 <li py:for="m in c.results"> 21 <li py:for="m in c.results"> 18 Work: ${m.title}, Line: ${m.lineno} 22 Work: ${m.title}, Line: ${m.lineno} 19 <blockquote> 23 <blockquote> 20 <pre>${m.snippet}</pre> 24 <pre>${m.snippet}</pre> 21 </blockquote> 25 </blockquote> 22 </li> 26 </li> 23 </ul> 27 </ul> 24 </div> 28 </div> 25 </div> 29 </div> 26 30 27 <xi:include href="../layout.html" /> 31 <xi:include href="../layout.html" /> 28 </html> 32 </html> trunk/shakespeare/templates/stats/index.html
Revision 220 Revision 221 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1 <html xmlns:py="http://genshi.edgewall.org/" 3 <html xmlns:py="http://genshi.edgewall.org/" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 4 xmlns:xi="http://www.w3.org/2001/XInclude"> 3 5 4 <py:def function="page_title">Stats</py:def> 6 <py:def function="page_title">Stats</py:def> 5 7 6 <div py:match="content"> 8 <div py:match="content"> 7 <h2>Statistical Information</h2> 9 <h2>Statistical Information</h2> 8 <p>This section provides statistical information about the various textual 10 <p>This section provides statistical information about the various textual 9 materials available on the site. 11 materials available on the site. 10 </p> 12 </p> 11 <p> 13 <p> 12 Currently information is provided organized by: 14 Currently information is provided organized by: 13 </p> 15 </p> 14 <ul> 16 <ul> 15 <li> 17 <li> 16 <a href="${h.url_for(controller='stats', action='text', 18 <a href="${h.url_for(controller='stats', action='text', 17 id=None)}">Text</a> 19 id=None)}">Text</a> 18 </li> 20 </li> 19 <li> 21 <li> 20 <a href="${h.url_for(controller='stats', action='word', 22 <a href="${h.url_for(controller='stats', action='word', 21 id=None)}">Word</a> 23 id=None)}">Word</a> 22 </li> 24 </li> 23 </ul> 25 </ul> 24 </div> 26 </div> 25 27 26 <xi:include href="../layout.html" /> 28 <xi:include href="../layout.html" /> 27 </html> 29 </html> trunk/shakespeare/templates/stats/text.html
Revision 220 Revision 221 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1 <html xmlns:py="http://genshi.edgewall.org/" 3 <html xmlns:py="http://genshi.edgewall.org/" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 4 xmlns:xi="http://www.w3.org/2001/XInclude"> 3 5 4 <py:def function="page_title">Stats - Text - ${c.text.title}</py:def> 6 <py:def function="page_title">Stats - Text - ${c.text.title}</py:def> 5 7 6 <div py:match="content"> 8 <div py:match="content"> 7 <h2>Statistics: ${c.text.title}</h2> 9 <h2>Statistics: ${c.text.title}</h2> 8 <p py:if="not c.stats"> 10 <p py:if="not c.stats"> 9 Sorry, no statistics are available for ${c.text.ftitle}. Note that, in general, we do not compute statistics for texts using non-standardized spelling. 11 Sorry, no statistics are available for ${c.text.ftitle}. Note that, in general, we do not compute statistics for texts using non-standardized spelling. 10 </p> 12 </p> 11 13 12 <img style="float: left;" 14 <img style="float: left;" 13 src="${c.img_url}" 15 src="${c.img_url}" 14 alt="Word Statistics Bar Chart" /> 16 alt="Word Statistics Bar Chart" /> 15 17 16 <table> 18 <table> 17 <thead> 19 <thead> 18 <tr> 20 <tr> 19 <th>Index</th> 21 <th>Index</th> 20 <th> 22 <th> 21 Word 23 Word 22 </th> 24 </th> 23 <th> 25 <th> 24 Frequency 26 Frequency 25 </th> 27 </th> 26 </tr> 28 </tr> 27 </thead> 29 </thead> 28 <tbody> 30 <tbody> 29 <tr py:for="index, stat in enumerate(c.stats)"> 31 <tr py:for="index, stat in enumerate(c.stats)"> 30 <td> 32 <td> 31 ${index + 1} 33 ${index + 1} 32 </td> 34 </td> 33 <td> 35 <td> 34 <a href="${h.url_for(controller='stats', action='word', id=stat.word)}"> 36 <a href="${h.url_for(controller='stats', action='word', id=stat.word)}"> 35 ${stat.word}</a> 37 ${stat.word}</a> 36 </td> 38 </td> 37 <td> 39 <td> 38 ${stat.freq} 40 ${stat.freq} 39 </td> 41 </td> 40 </tr> 42 </tr> 41 </tbody> 43 </tbody> 42 </table> 44 </table> 43 </div> 45 </div> 44 46 45 <xi:include href="../layout.html" /> 47 <xi:include href="../layout.html" /> 46 </html> 48 </html> trunk/shakespeare/templates/stats/word.html
Revision 220 Revision 221 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1 <html xmlns:py="http://genshi.edgewall.org/" 3 <html xmlns:py="http://genshi.edgewall.org/" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 4 xmlns:xi="http://www.w3.org/2001/XInclude"> 3 5 4 <py:def function="page_title">Stats - Word</py:def> 6 <py:def function="page_title">Stats - Word</py:def> 5 7 6 <div py:match="content"> 8 <div py:match="content"> 7 <h2>Statistics for '${c.word}'</h2> 9 <h2>Statistics for '${c.word}'</h2> 8 <img style="float: left;" 10 <img style="float: left;" 9 src="${c.img_url}" 11 src="${c.img_url}" 10 alt="Word Statistics Bar Chart" /> 12 alt="Word Statistics Bar Chart" /> 11 13 12 <p py:if="not c.stats"> 14 <p py:if="not c.stats"> 13 Sorry, no statistics are available for ${c.word} (NB: words are stemmed for stats purposes, so loved becomes love, bloody becomes blood etc). 15 Sorry, no statistics are available for ${c.word} (NB: words are stemmed for stats purposes, so loved becomes love, bloody becomes blood etc). 14 </p> 16 </p> 15 <table> 17 <table> 16 <thead> 18 <thead> 17 <tr> 19 <tr> 18 <th>Index</th> 20 <th>Index</th> 19 <th> 21 <th> 20 Text 22 Text 21 </th> 23 </th> 22 <th> 24 <th> 23 Frequency 25 Frequency 24 </th> 26 </th> 25 </tr> 27 </tr> 26 </thead> 28 </thead> 27 <tbody> 29 <tbody> 28 <tr py:for="index, stat in enumerate(c.stats)"> 30 <tr py:for="index, stat in enumerate(c.stats)"> 29 <td> 31 <td> 30 ${index + 1} 32 ${index + 1} 31 </td> 33 </td> 32 <td> 34 <td> 33 ${stat.text.title} 35 ${stat.text.title} 34 </td> 36 </td> 35 <td> 37 <td> 36 ${stat.freq} 38 ${stat.freq} 37 </td> 39 </td> 38 </tr> 40 </tr> 39 </tbody> 41 </tbody> 40 </table> 42 </table> 41 </div> 43 </div> 42 44 43 <xi:include href="../layout.html" /> 45 <xi:include href="../layout.html" /> 44 </html> 46 </html> trunk/shakespeare/templates/text/index.html
Revision 220 Revision 221 1 <html xmlns:py="http://genshi.edgewall.org/" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 lang="en"> 3 7 4 <py:def function="page_title">Texts - Index</py:def> 8 <py:def function="page_title">Texts - Index</py:def> 5 9 6 <div py:match="content"> 10 <div py:match="content"> 7 <h2>Texts Available</h2> 11 <h2>Texts Available</h2> 8 <table border="1"> 12 <table border="1"> 9 <thead> 13 <thead> 10 <tr> 14 <tr> 11 <th> 15 <th> 12 Title 16 Title 13 </th> 17 </th> 14 <th>Author</th> 18 <th>Author</th> 15 <th>Other Information</th> 19 <th>Other Information</th> 16 </tr> 20 </tr> 17 </thead> 21 </thead> 18 <tbody> 22 <tbody> 23 <div xmlns:dc="http://purl.org/dc/elements/1.1/"> 19 <tr py:for="item in c.works_index"> 24 <tr py:for="item in c.works_index"> 20 <td >25 <td property="dc:title"> 21 <a href="${h.url_for(controller='text', action='info', id=item.name)}"> 26 <a href="${h.url_for(controller='text', action='info', id=item.name)}"> 22 ${item.title}</a> 27 ${item.title}</a> 23 (<a href="${h.url_for(controller='text', action='view', id=item.name, 28 (<a href="${h.url_for(controller='text', action='view', id=item.name, 24 format='lineno')}">view</a>) 29 format='lineno')}">view</a>) 25 </td> 30 </td> 26 <td >31 <td property="dc:creator"> 27 ${item.creator} 32 ${item.creator} 28 </td> 33 </td> 29 <td >34 <td property="dc:source"> 30 <a href="${h.url_for(controller='stats', action='text', 35 <a href="${h.url_for(controller='stats', action='text', 31 id=item.name)}"> 36 id=item.name)}"> 32 Text statistics</a> 37 Text statistics</a> 33 </td> 38 </td> 34 </tr> 39 </tr> 40 </div> 35 </tbody> 41 </tbody> 36 </table> 42 </table> 37 </div> 43 </div> 38 44 39 <xi:include href="../layout.html" /> 45 <xi:include href="../layout.html" /> 40 </html> 46 </html> trunk/shakespeare/templates/text/info.html
Revision 220 Revision 221 1 <html xmlns:py="http://genshi.edgewall.org/" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 lang="en"> 3 7 4 <py:def function="page_title">Text - Info - ${c.material.ftitle}</py:def> 8 <py:def function="page_title">Text - Info - ${c.material.ftitle}</py:def> 5 9 6 <div py:match="content" >10 <div py:match="content" xmlns:dc="http://purl.org/dc/elements/1.1/"> 7 <h2 >${c.material.title}</h2>11 <h2 property="dc:title">${c.material.title}</h2> 8 <h3>Actions</h3> 12 <h3>Actions</h3> 9 <ul> 13 <ul> 10 <li><a href="${h.url_for(controller='text', action='view', 14 <li><a href="${h.url_for(controller='text', action='view', 11 id=c.material.name)}">View</a> 15 id=c.material.name)}">View</a> 12 </li> 16 </li> 13 <li> 17 <li> 14 <a href="${h.url_for(controller='stats', action='text', 18 <a href="${h.url_for(controller='stats', action='text', 15 id=c.material.name)}"> 19 id=c.material.name)}"> 16 Statistics</a> 20 Statistics</a> 17 </li> 21 </li> 18 </ul> 22 </ul> 19 23 20 <h3>Metadata</h3> 24 <h3>Metadata</h3> 21 <ul> 25 <ul> 22 <li py:for="attr in ['creator', 'name', 'format', 'notes']"> 26 <li py:for="attr in ['creator', 'name', 'format', 'notes']"> 23 <strong>${attr.capitalize()}:</strong> 27 <strong>${attr.capitalize()}:</strong> 24 ${getattr(c.material, attr)} 28 ${getattr(c.material, attr)} 25 </li> 29 </li> 26 </ul> 30 </ul> 27 </div> 31 </div> 28 32 29 <xi:include href="../layout.html" /> 33 <xi:include href="../layout.html" /> 30 </html> 34 </html> trunk/shakespeare/templates/text/view.html
Revision 220 Revision 221 1 <html xmlns:py="http://genshi.edgewall.org/" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 xmlns:xi="http://www.w3.org/2001/XInclude"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:xi="http://www.w3.org/2001/XInclude" 6 lang="en"> 3 7 4 <py:def function="page_title">View Texts</py:def> 8 <py:def function="page_title">View Texts</py:def> 5 <head> 9 <head> 6 <style type="text/css" py:def="page_specific_css"> 10 <style type="text/css" py:def="page_specific_css"> 7 body 11 body 8 { 12 { 9 margin: 0; 13 margin: 0; 10 padding: 0; 14 padding: 0; 11 } 15 } 12 16 13 .sidebar 17 .sidebar 14 { 18 { 15 display: none; 19 display: none; 16 } 20 } 17 21 18 #main 22 #main 19 { 23 { 20 width: 98%; 24 width: 98%; 21 height: 100%; 25 height: 100%; 22 } 26 } 23 27 24 div.frame 28 div.frame 25 { 29 {
