2 FOREACH copy_info IN ctx.copies;
3 IF copy_info.call_number_label != '##URI##';
6 IF copy_info.part_label != '';
9 IF has_parts && has_copies;
15 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="item_location_table">
18 <td class="location">[% l('Location') %]</td>
19 <td class="loc_info"> </td>
20 <td class="status">[% l('Status') %]</td>
21 <td class="callnumber">[% l('Call Number') %]</td>
24 FOR copy_info IN ctx.copies;
25 callnum = copy_info.call_number_label;
26 NEXT IF callnum == '##URI##';
28 callnum_prefix = copy_info.call_number_prefix_label;
29 IF callnum_prefix != "";
30 callnum = callnum_prefix _ " " _ callnum;
33 callnum_suffix = copy_info.call_number_suffix_label;
34 IF callnum_suffix != "";
35 callnum = callnum _ " " _ callnum_suffix;
39 <td class="location">[% ctx.get_aou(copy_info.circ_lib).name | html %]</td>
40 <td class="loc_info"><a href="javascript:;">View Library Info</a></td><!-- TODO -->
41 <td class="status">[% copy_info.copy_status | html %]</td>
42 [%- IF has_parts == 'true' %]
43 <td class="callnumber">[% l('[_1] ([_2])', callnum, copy_info.part_label) | html %]</td>
45 <td class="callnumber">[% callnum | html %]</td>
55 [%- IF ctx.copy_offset > 0;
56 new_offset = ctx.copy_offset - ctx.copy_limit;
57 IF new_offset < 0; new_offset = 0; END %]
58 <a href="[% mkurl('', {copy_offset => new_offset, copy_limit => ctx.copy_limit}) %]">« [%
59 l('Previous [_1]', ctx.copy_offset - new_offset) %]</a>
64 [%- IF ctx.copies.size >= ctx.copy_limit %]
65 <a href="[% mkurl('', {copy_offset => ctx.copy_offset + ctx.copy_limit, copy_limit => ctx.copy_limit}) %]">[%
66 l('Next [_1]', ctx.copy_limit) %] »</a>
70 [%- more_copies_limit = 50 %] [%# TODO: config %]
72 [%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
73 <a href="[% mkurl('', {copy_limit => more_copies_limit, copy_offset => 0}) %]">[% l('Show more copies') %]</a>
74 [%- ELSIF ctx.copy_limit == more_copies_limit %]
75 <a href="[% mkurl('', {copy_limit => 0, copy_offset => 0}) %]">[% l('Show fewer copies') %]</a>