Lines 204-210
function placeHold () {
Link Here
|
204 |
<span class="clearall"></span></p> |
204 |
<span class="clearall"></span></p> |
205 |
[% END %] |
205 |
[% END %] |
206 |
|
206 |
|
207 |
[% IF direction == 'asc' %][% SET new_direction = 'desc' %][% ELSE %][% SET new_direction = 'asc' %][% END %] |
207 |
[% IF direction == 'asc' %] |
|
|
208 |
[% SET new_direction = 'desc' %] |
209 |
[% ELSE %] |
210 |
[% SET direction = 'desc' %] |
211 |
[% SET new_direction = 'asc' %] |
212 |
[% END %] |
213 |
|
208 |
<div class="pages">[% pagination_bar %]</div> |
214 |
<div class="pages">[% pagination_bar %]</div> |
209 |
<table> |
215 |
<table> |
210 |
<tr> |
216 |
<tr> |
Lines 212-252
function placeHold () {
Link Here
|
212 |
|
218 |
|
213 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %] |
219 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %] |
214 |
<th> |
220 |
<th> |
215 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% new_direction %]">Title</a> |
221 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% IF sort != 'title' %]asc[% ELSE %][% new_direction %][% END %]">Title</a> |
216 |
[% IF sort == 'title' %] |
222 |
[% IF sort == 'title' %] |
217 |
[% IF direction == 'asc' %] |
223 |
<img src="/intranet-tmpl/prog/img/[% direction %].gif" /> |
218 |
<img src="/intranet-tmpl/prog/img/asc.gif" /> |
|
|
219 |
[% ELSIF direction == 'desc' %] |
220 |
<img src="/intranet-tmpl/prog/img/desc.gif" /> |
221 |
[% END %] |
222 |
[% ELSE %] |
224 |
[% ELSE %] |
223 |
<img src="/intranet-tmpl/prog/img/ascdesc.gif" /> |
225 |
<img src="/intranet-tmpl/prog/img/ascdesc.gif" /> |
224 |
[% END %] |
226 |
[% END %] |
225 |
</th> |
227 |
</th> |
226 |
<th> |
228 |
<th> |
227 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% new_direction %]">Author</a> |
229 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% IF sort != 'author' %]asc[% ELSE %][% new_direction %][% END %]">Author</a> |
228 |
[% IF sort == 'author' %] |
230 |
[% IF sort == 'author' %] |
229 |
[% IF direction == 'asc' %] |
231 |
<img src="/intranet-tmpl/prog/img/[% direction %].gif" /> |
230 |
<img src="/intranet-tmpl/prog/img/asc.gif" /> |
232 |
[% ELSE %] |
231 |
[% ELSIF direction == 'desc' %] |
233 |
<img src="/intranet-tmpl/prog/img/ascdesc.gif" /> |
232 |
<img src="/intranet-tmpl/prog/img/desc.gif" /> |
234 |
[% END %] |
233 |
[% END %] |
|
|
234 |
[% ELSE %] |
235 |
<img src="/intranet-tmpl/prog/img/ascdesc.gif" /> |
236 |
[% END %] |
237 |
</th> |
235 |
</th> |
238 |
<th>Date added</th> |
236 |
<th>Date added</th> |
239 |
<th> |
237 |
<th> |
240 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% new_direction %]">Call number</a> |
238 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% IF sort != 'itemcallnumber' %]asc[% ELSE %][% new_direction %][% END %]">Call number</a> |
241 |
[% IF sort == 'itemcallnumber' %] |
239 |
[% IF sort == 'itemcallnumber' %] |
242 |
[% IF direction == 'asc' %] |
240 |
<img src="/intranet-tmpl/prog/img/[% direction %].gif" /> |
243 |
<img src="/intranet-tmpl/prog/img/asc.gif" /> |
241 |
[% ELSE %] |
244 |
[% ELSIF direction == 'desc' %] |
242 |
<img src="/intranet-tmpl/prog/img/ascdesc.gif" /> |
245 |
<img src="/intranet-tmpl/prog/img/desc.gif" /> |
243 |
[% END %] |
246 |
[% END %] |
|
|
247 |
[% ELSE %] |
248 |
<img src="/intranet-tmpl/prog/img/ascdesc.gif" /> |
249 |
[% END %] |
250 |
</th> |
244 |
</th> |
251 |
<th> </th> |
245 |
<th> </th> |
252 |
</tr> |
246 |
</tr> |
253 |
- |
|
|