From 802ae56d4115b36704d18e0d7f6b196dda1ecd3b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 10 Aug 2011 17:07:36 -0400 Subject: [PATCH] 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 --- Open-ILS/web/images/minus_sign.png | Bin 0 -> 469 bytes .../default/opac/parts/record/summary.tt2 | 22 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Open-ILS/web/images/minus_sign.png diff --git a/Open-ILS/web/images/minus_sign.png b/Open-ILS/web/images/minus_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..0d612b180a00ad3ade3eb12d0c7280c0f244c33c GIT binary patch literal 469 zcmV;`0V@89P)?gVCZ? zMe)xhI6CQ81l`2JRd-jvfFD2?KZFk2FW}svpePPXv85D?SZHX|L|QMG+<9-XQ!*s& z3l9kommg2K_aUbb4s`3Ui^l5aHPzBZAY=yOj+D0Wd3j)dpOsFwK8do@$EB~kCesgl zOn@h1qd=noMux&#mY4633dNN2^u`bDn#_fy [% 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 %] + + -- 2.11.0