Merge pull request #63 from gutenbergtools/master

Add footer
pull/1/head^2
Haocheng Zhao 2020-10-21 12:14:30 -04:00 committed by GitHub
commit b6871ad972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 11 deletions

View File

@ -561,8 +561,7 @@ class OpenSearch(object):
self.desktop_url = self.url_carry(host = self.desktop_host, format = None)
self.osd_url = self.qualify('/catalog/osd-books.xml')
if self.end_index==1000:
self.end_index='1000 (max)'
s = cherrypy.session
# write this late so pages can change it
s['search_terms'] = self.search_terms
@ -888,7 +887,7 @@ class SQLSearcher(object):
sql.sort_order = os.sort_order
sql.start_index = os.start_index
#sql.items_per_page = os.items_per_page
sql.items_per_page = os.items_per_page
query, params = sql.build()
query += ' -- ' + os.ip

View File

@ -56,10 +56,6 @@ which contains *all* Project Gutenberg metadata in one RDF/XML file.
rel="next"
title="Next Page"
href="${os.url ('search', start_index = os.next_page_index)}" />
<link py:if="os.show_next_page_link"
rel="last"
title="Last Page"
href="${os.url ('search', start_index = os.last_page_index)}" />
<meta name="totalResults" content="${os.total_results}" />
<meta name="startIndex" content="${os.start_index}" />

View File

@ -123,6 +123,7 @@
<py:def function="site_footer">
<div class="footer" i18n:comment="On the footer of every page.">
<xi:include href="../../footer.html" />
</div>
</py:def>
@ -136,7 +137,9 @@
<a title="Go to the first page of results."
accesskey="a"
href="${os.url_carry (start_index = 1)}">First</a>
</py:if>
<py:if test="os.show_prev_page_link">|
<a title="Go to the previous page of results."
accesskey="-"
href="${os.url_carry (start_index = os.prev_page_index)}">Previous</a>
@ -146,10 +149,6 @@
<a title="Go to the next page of results."
accesskey="+"
href="${os.url_carry (start_index = os.next_page_index)}">Next</a>
<a title="Go to the last page of results."
accesskey="+"
href="${os.url_carry (start_index = os.last_page_index)}">Last</a>
</py:if>
<py:if test="os.show_next_page_link">|
<a title="Go to the last page of results."