Revert "add last page"

This reverts commit 8cc8bc8d5a.
gutenberg2
eric 2020-09-22 16:19:42 -04:00
parent 4eaf9d38a6
commit fc0fb1cf46
3 changed files with 1 additions and 10 deletions

View File

@ -887,7 +887,7 @@ class SQLSearcher(object):
sql.sort_order = os.sort_order sql.sort_order = os.sort_order
sql.start_index = os.start_index 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, params = sql.build()
query += ' -- ' + os.ip query += ' -- ' + os.ip

View File

@ -56,10 +56,6 @@ which contains *all* Project Gutenberg metadata in one RDF/XML file.
rel="next" rel="next"
title="Next Page" title="Next Page"
href="${os.url ('search', start_index = os.next_page_index)}" /> 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="totalResults" content="${os.total_results}" />
<meta name="startIndex" content="${os.start_index}" /> <meta name="startIndex" content="${os.start_index}" />

View File

@ -149,11 +149,6 @@
accesskey="+" accesskey="+"
href="${os.url_carry (start_index = os.next_page_index)}">Next</a> href="${os.url_carry (start_index = os.next_page_index)}">Next</a>
</py:if> </py:if>
<py:if test="os.show_next_page_link">|
<a title="Go to the last page of results."
accesskey="+"
href="${os.url_carry (start_index = os.last_page_index)}">Next</a>
</py:if>
</span> </span>
</py:def> </py:def>