From: Bill Erickson Date: Wed, 10 Aug 2011 21:07:36 +0000 (-0400) Subject: TTpac: option to view larger sets of copies on record page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=802ae56d4115b36704d18e0d7f6b196dda1ecd3b;p=evergreen%2Fequinox.git TTpac: option to view larger sets of copies on record page On record details page, added a "Show More Copies" option to show more (50) copies per page of copies than the default (10). Also added a "Show Fewer Copies" option to return to the default copy page size. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/images/minus_sign.png b/Open-ILS/web/images/minus_sign.png new file mode 100644 index 0000000000..0d612b180a Binary files /dev/null and b/Open-ILS/web/images/minus_sign.png differ diff --git a/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 b/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 index dea346171b..5cd6344547 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 @@ -198,6 +198,28 @@ [% END %] + + + [% more_copies_limit = 50 %] [%# TODO: config %] + [% IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %] +
+ + [% cgi = CGI(); + SET x = cgi.param('copy_limit', more_copies_limit); + SET x = cgi.param('copy_offset', 0); %] + 1, "-query" => 1) %]">[% l('Show more copies') %] +
+ [% ELSIF ctx.copy_limit == more_copies_limit %] +
+ + [% cgi = CGI(); + SET x = cgi.param('copy_limit', '0'); # 0 == fall back to default + SET x = cgi.param('copy_offset', '0'); %] + 1, "-query" => 1) %]">[% l('Show fewer copies') %] +
+ [% END %] + +