[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 8105c78edba3f9a19686bffeb5f9526658740527
Evergreen Git
git at git.evergreen-ils.org
Mon Jun 18 07:33:56 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_2 has been updated
via 8105c78edba3f9a19686bffeb5f9526658740527 (commit)
from 2b8b05e91cc60c0905fc70e81cc5f0439e136c25 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8105c78edba3f9a19686bffeb5f9526658740527
Author: Dan Scott <dan at coffeecode.net>
Date: Fri Jun 15 22:10:15 2012 -0400
TPAC: Add record detail navigation to page bottom
A usability rule of thumb suggests that navigation on long pages should
not require you to scroll back up to the top of the page from the
bottom; that gets old fast. We already do this on search results pages;
bring the same good practice to record details.
Signed-off-by: Dan Scott <dan at coffeecode.net>
Signed-off-by: Dan Wells <dbw2 at calvin.edu>
diff --git a/Open-ILS/src/templates/opac/parts/record/body.tt2 b/Open-ILS/src/templates/opac/parts/record/body.tt2
index b7efd51..183cf16 100644
--- a/Open-ILS/src/templates/opac/parts/record/body.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/body.tt2
@@ -4,49 +4,12 @@
stop_parms = ['expand','cnoffset'];
%]
<div id='canvas_main' class='canvas' itemscope itemtype='[% args.schema.itemtype %]'>
-
- [% IF ctx.search_result_index >= 0 %]
- <div id="rdetail_header">
- <span id="rdetail_results">
- <a href='[% mkurl(ctx.opac_root _ '/results', {}, stop_parms); %]'>[% l('◄ Search Results') %]</a>
- <span id="rdetail_result_count">
- [% l('Showing Item [_1] of [_2]', ctx.search_result_index + 1, ctx.hit_count) %]
- </span>
- </span>
- [%- INCLUDE "opac/parts/pref_lib_display.tt2" %]
- <div id="rdetail_result_nav">
- [%
- IF ctx.prev_search_record;
- prev_args = {};
- IF ctx.search_page > 0 AND
- ctx.search_result_index % ((ctx.page_size * ctx.search_page)) == 0; # first record in the page
- prev_args.page = ctx.search_page - 1;
- END;
- ctx.prev_rec_url = mkurl(ctx.prev_search_record, prev_args, stop_parms);
- %]
- <a class='np_nav_link classic_link' title='[% l("Previous Record") %]'
- href='[% ctx.prev_rec_url %]'>◄ [% l('Previous') %]</a>
- [% END %]
-
- [%
- IF ctx.next_search_record;
- next_args = {};
- IF (ctx.page_size * (ctx.search_page + 1)) == ctx.search_result_index + 1;
- next_args.page = ctx.search_page + 1;
- END;
- ctx.next_rec_url = mkurl(ctx.next_search_record, next_args, stop_parms);
- %]
- <a class='np_nav_link classic_link' title='[% l("Next Record") %]'
- href='[% ctx.next_rec_url %]'>[% l('Next') %] ►</a>
- [% END %]
-
- </div>
- </div>
- [% END %]
+ [%- INCLUDE "opac/parts/record/navigation.tt2" %]
[%- IF ctx.bib_is_dead %]
<div id='rdetail_deleted_exp'>
[% l("This record has been deleted from the database. We recommend that you remove this title from any bookbags it may have been added to.") %]
</div>
[%- END %]
[% INCLUDE "opac/parts/record/summary.tt2" %]
+ [%- INCLUDE "opac/parts/record/navigation.tt2" %]
</div>
diff --git a/Open-ILS/src/templates/opac/parts/record/navigation.tt2 b/Open-ILS/src/templates/opac/parts/record/navigation.tt2
new file mode 100644
index 0000000..29b1106
--- /dev/null
+++ b/Open-ILS/src/templates/opac/parts/record/navigation.tt2
@@ -0,0 +1,38 @@
+[% IF ctx.search_result_index >= 0 %]
+<div class="rdetail_header">
+ <span class="rdetail_results">
+ <a href='[% mkurl(ctx.opac_root _ '/results', {}, stop_parms); %]'>[% l('◄ Search Results') %]</a>
+ <span class="rdetail_result_count">
+ [% l('Showing Item [_1] of [_2]', ctx.search_result_index + 1, ctx.hit_count) %]
+ </span>
+ </span>
+ [%- INCLUDE "opac/parts/pref_lib_display.tt2" %]
+ <div class="rdetail_result_nav">
+ [%
+ IF ctx.prev_search_record;
+ prev_args = {};
+ IF ctx.search_page > 0 AND
+ ctx.search_result_index % ((ctx.page_size * ctx.search_page)) == 0; # first record in the page
+ prev_args.page = ctx.search_page - 1;
+ END;
+ ctx.prev_rec_url = mkurl(ctx.prev_search_record, prev_args, stop_parms);
+ %]
+ <a class='np_nav_link classic_link' title='[% l("Previous Record") %]'
+ href='[% ctx.prev_rec_url %]'>◄ [% l('Previous') %]</a>
+ [% END %]
+
+ [%
+ IF ctx.next_search_record;
+ next_args = {};
+ IF (ctx.page_size * (ctx.search_page + 1)) == ctx.search_result_index + 1;
+ next_args.page = ctx.search_page + 1;
+ END;
+ ctx.next_rec_url = mkurl(ctx.next_search_record, next_args, stop_parms);
+ %]
+ <a class='np_nav_link classic_link' title='[% l("Next Record") %]'
+ href='[% ctx.next_rec_url %]'>[% l('Next') %] ►</a>
+ [% END %]
+
+ </div>
+</div>
+[% END %]
diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css
index 0a33df7..04beae7 100644
--- a/Open-ILS/web/css/skin/default/opac/style.css
+++ b/Open-ILS/web/css/skin/default/opac/style.css
@@ -335,26 +335,26 @@ span.dash_divider {
color: #666;
}
-#rdetail_header {
+.rdetail_header {
padding: 5px 7px 6px 0px;
margin-left: 1em;
border-bottom: 1px dotted #ccc;
}
-#rdetail_results a {
+.rdetail_results a {
color:#007a54;
font-weight:bold;
font-size: 1.2em;
}
-#rdetail_result_count {
+.rdetail_result_count {
color: black;
font-weight: normal;
padding-left: 1em;
display: inline-block;
}
-#rdetail_result_nav {
+.rdetail_result_nav {
font-weight:normal;
padding-left: 1em;
display: inline-block;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/parts/record/body.tt2 | 41 +-------------------
.../src/templates/opac/parts/record/navigation.tt2 | 38 ++++++++++++++++++
Open-ILS/web/css/skin/default/opac/style.css | 8 ++--
3 files changed, 44 insertions(+), 43 deletions(-)
create mode 100644 Open-ILS/src/templates/opac/parts/record/navigation.tt2
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list