... call to open-ils.search.callnumber.browse (count and offset mixed
up)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
return $search->request(
"open-ils.search.callnumber.browse",
- $cn, map { $self->cgi->param($_) } qw/loc cnoffset/, 9
+ $cn, $self->cgi->param("loc"), 9, $self->cgi->param("cnoffset")
)->gather(1);
}
<table class='data_grid bookshelf' width='100%'>
<thead>
<tr>
- <td>[% IF CGI.param("cnoffset") > 0 %]
+ <td>
<a id='cn_browse_prev' class='classic_link' href=">[% ctx.opac_root %]/record/[% ctx.bre_id _ extras_propagator _ '&cnoffset=' _ ((CGI.param('cnoffset') || 0) - 1) _ '&expand=cnbrowse#cnbrowse' %]"<b>[%
l("<< Previous Page")
%]</b></a>
- [% END %]</td>
+ </td>
<td colspan='1' align='center'>[% l("Shelf Browser") %]</td>
- <td>[% IF ctx.browsed_call_numbers.size == 9 %]
+ <td>
<a id='cn_browse_next' class='classic_link' href="[% ctx.opac_root %]/record/[% ctx.bre_id _ extras_propagator _ '&cnoffset=' _ ((CGI.param('cnoffset') || 0) + 1) _ '&expand=cnbrowse#cnbrowse' %]"<b>[%
l("Next Page >>")
%]</b></a>
- [% END %]</td>
+ </td>
</tr>
</thead>
<tbody id='cn_tbody'>