Lines 159-202
Link Here
|
159 |
</div> |
159 |
</div> |
160 |
[% END %] |
160 |
[% END %] |
161 |
|
161 |
|
162 |
<table id="searchresults"> |
162 |
<table id="searchresults" class="dataTable"> |
|
|
163 |
<thead> |
163 |
<tr> |
164 |
<tr> |
164 |
[% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %] |
165 |
[% IF ( itemsloop ) %]<th class="checkall"> </th>[% END %] |
165 |
|
166 |
|
166 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %] |
167 |
[% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %] |
167 |
<th> |
168 |
[% IF sortfield == 'title' %] |
|
|
169 |
<th class="sorting_[% direction | html %]"> |
170 |
[% ELSE %] |
171 |
<th class="sorting"> |
172 |
[% END %] |
168 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a> |
173 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=title&direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a> |
169 |
[% IF sortfield == 'title' %] |
|
|
170 |
<img src="[% interface | html %]/[% theme | html %]/img/[% direction | html %].gif" alt="[% direction | html %] sort" /> |
171 |
[% ELSE %] |
172 |
<img src="[% interface | html %]/[% theme | html %]/img/ascdesc.gif" alt="" /> |
173 |
[% END %] |
174 |
</th> |
174 |
</th> |
175 |
<th> |
175 |
[% IF sortfield == 'author' %] |
|
|
176 |
<th class="sorting_[% direction | html %]"> |
177 |
[% ELSE %] |
178 |
<th class="sorting"> |
179 |
[% END %] |
176 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a> |
180 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=author&direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a> |
177 |
[% IF sortfield == 'author' %] |
181 |
</th> |
178 |
<img src="[% interface | html %]/[% theme | html %]/img/[% direction | html %].gif" alt="[% direction | html %] sort" /> |
182 |
[% IF sortfield == 'dateadded' %] |
179 |
[% ELSE %] |
183 |
<th class="sorting_[% direction | html %]"> |
180 |
<img src="[% interface | html %]/[% theme | html %]/img/ascdesc.gif" alt="" /> |
184 |
[% ELSE %] |
181 |
[% END %] |
185 |
<th class="sorting"> |
182 |
</th> |
186 |
[% END %] |
183 |
<th> |
|
|
184 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a> |
187 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=dateadded&direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a> |
185 |
[% IF sortfield == 'dateadded' %] |
|
|
186 |
<img src="[% interface | html %]/[% theme | html %]/img/[% direction | html %].gif" alt="[% direction | html %] sort" /> |
187 |
[% ELSE %] |
188 |
<img src="[% interface | html %]/[% theme | html %]/img/ascdesc.gif" alt="" /> |
189 |
[% END %] |
190 |
</th> |
188 |
</th> |
191 |
<th> |
189 |
[% IF sortfield == 'itemcallnumber' %] |
|
|
190 |
<th class="sorting_[% direction | html %]"> |
191 |
[% ELSE %] |
192 |
<th class="sorting"> |
193 |
[% END %] |
192 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a> |
194 |
<a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% shelf.shelfnumber | uri %]&sortfield=itemcallnumber&direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a> |
193 |
[% IF sortfield == 'itemcallnumber' %] |
|
|
194 |
<img src="[% interface | html %]/[% theme | html %]/img/[% direction | html %].gif" alt="[% direction | html %] sort" /> |
195 |
[% ELSE %] |
196 |
<img src="[% interface | html %]/[% theme | html %]/img/ascdesc.gif" alt="" /> |
197 |
[% END %] |
198 |
</th> |
195 |
</th> |
199 |
</tr> |
196 |
</tr> |
|
|
197 |
</thead> |
200 |
[% FOREACH itemsloo IN itemsloop %] |
198 |
[% FOREACH itemsloo IN itemsloop %] |
201 |
<tr> |
199 |
<tr> |
202 |
[% IF itemsloop %] |
200 |
[% IF itemsloop %] |
203 |
- |
|
|