[open-ils-commits] [GIT] Evergreen ILS branch master updated. eaba45621b11324ea40b49e60d435c9977428299

Evergreen Git git at git.evergreen-ils.org
Wed Dec 14 23:39:38 EST 2011


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, master has been updated
       via  eaba45621b11324ea40b49e60d435c9977428299 (commit)
      from  00294ea6d3f4482b502cdc4cb68b7791c4c531a6 (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 eaba45621b11324ea40b49e60d435c9977428299
Author: bott <bott at grpl.org>
Date:   Wed Dec 14 12:31:30 2011 -0500

    Allow for the page offset when listing the "Result x of y" values.
    
    The record details page did not show the page offset correctly, so
    result 13 would show up as "Result 3 of ###", and result 23 would also
    show up as "Result 3 of ###".
    
    Signed-off-by: bott <bott at grpl.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/web/opac/skin/default/js/rdetail.js b/Open-ILS/web/opac/skin/default/js/rdetail.js
index dfc4c7d..ee77624 100644
--- a/Open-ILS/web/opac/skin/default/js/rdetail.js
+++ b/Open-ILS/web/opac/skin/default/js/rdetail.js
@@ -85,6 +85,10 @@ function rdetailSetPaging(ids) {
 			break;
 		}
 	}
+	var cgi = new CGI();   // add the offset if we're not on the first page of results
+	var offset = parseInt(cgi.param('o'));
+	if (offset)
+		i = i + offset;
 
 	$('np_offset').appendChild(text(i + 1));
 	$('np_count').appendChild(text(getHitCount()));

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/opac/skin/default/js/rdetail.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list