new_offset = ctx.copy_offset - ctx.copy_limit;
IF new_offset < 0; new_offset = 0; END %]
<td>
- <a href="[% mkurl('', {copy_offset => new_offset, copy_limit => ctx.copy_limit}) %]">« [%
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ ctx.bre_id, {copy_offset => new_offset, copy_limit => ctx.copy_limit}) %]">« [%
l('Previous [_1]', ctx.copy_offset - new_offset) %]</a>
</td>
[% END %]
[% IF ctx.copies.size >= ctx.copy_limit %]
<td>
- <a href="[% mkurl('', {copy_offset => ctx.copy_offset + ctx.copy_limit, copy_limit => ctx.copy_limit}) %]">[%
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ ctx.bre_id, {copy_offset => ctx.copy_offset + ctx.copy_limit, copy_limit => ctx.copy_limit}) %]">[%
l('Next [_1]', ctx.copy_limit) %] »</a>
</td>
[% END %]
[% IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
<div style='margin-top:10px;'>
<img src="[% ctx.media_prefix %]/images/kcls_plus_sign.png" />
- <a href="[% mkurl('', {copy_limit => more_copies_limit, copy_offset => 0}) %]">[% l('Show more copies') %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ ctx.bre_id, {copy_limit => more_copies_limit, copy_offset => 0}) %]">[% l('Show more copies') %]</a>
</div>
[% ELSIF ctx.copy_limit == more_copies_limit %]
<div style='margin-top:10px;'>
<img src="[% ctx.media_prefix %]/images/kcls_minus_sign.png" />
- <a href="[% mkurl('', {copy_limit => 0, copy_offset => 0}) %]">[% l('Show fewer copies') %]</a>
+ <a href="[% mkurl(ctx.opac_root _ '/record/' _ ctx.bre_id, {copy_limit => 0, copy_offset => 0}) %]">[% l('Show fewer copies') %]</a>
</div>
[% END %]
</td>