View | Details | Raw Unified | Return to bug 9458
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-25 / +12 lines)
Lines 212-252 function placeHold () { Link Here
212
212
213
                [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
213
                [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
214
                <th>
214
                <th>
215
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=title&direction=[% new_direction %]">Title</a>
215
                    <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' %]
216
                    [% IF sort == 'title' %]
217
                        [% IF direction == 'asc' %]
217
                        <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 %]
218
                    [% ELSE %]
223
                        <img src="/intranet-tmpl/prog/img/ascdesc.gif" />
219
                        <img src="/intranet-tmpl/prog/img/ascdesc.gif" />
224
                    [% END %]
220
                    [% END %]
225
                </th>
221
                </th>
226
                <th>
222
                <th>
227
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=author&direction=[% new_direction %]">Author</a>
223
                    <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' %]
224
                   [% IF sort == 'author' %]
229
                        [% IF direction == 'asc' %]
225
                        <img src="/intranet-tmpl/prog/img/[% direction %].gif" />
230
                            <img src="/intranet-tmpl/prog/img/asc.gif" />
226
                   [% ELSE %]
231
                        [% ELSIF direction == 'desc' %]
227
                       <img src="/intranet-tmpl/prog/img/ascdesc.gif" />
232
                            <img src="/intranet-tmpl/prog/img/desc.gif" />
228
                   [% END %]
233
                        [% END %]
234
                    [% ELSE %]
235
                        <img src="/intranet-tmpl/prog/img/ascdesc.gif" />
236
                    [% END %]
237
                 </th>
229
                 </th>
238
                <th>Date added</th>
230
                <th>Date added</th>
239
                <th>
231
                <th>
240
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?viewshelf=[% shelfnumber %]&sort=itemcallnumber&direction=[% new_direction %]">Call number</a>
232
                    <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' %]
233
                   [% IF sort == 'itemcallnumber' %]
242
                        [% IF direction == 'asc' %]
234
                        <img src="/intranet-tmpl/prog/img/[% direction %].gif" />
243
                            <img src="/intranet-tmpl/prog/img/asc.gif" />
235
                   [% ELSE %]
244
                        [% ELSIF direction == 'desc' %]
236
                       <img src="/intranet-tmpl/prog/img/ascdesc.gif" />
245
                            <img src="/intranet-tmpl/prog/img/desc.gif" />
237
                   [% END %]
246
                        [% END %]
247
                    [% ELSE %]
248
                        <img src="/intranet-tmpl/prog/img/ascdesc.gif" />
249
                    [% END %]
250
                 </th>
238
                 </th>
251
                <th>&nbsp;</th>
239
                <th>&nbsp;</th>
252
            </tr>
240
            </tr>
253
- 

Return to bug 9458