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

(-)a/admin/columns_settings.yml (+2 lines)
Lines 306-311 modules: Link Here
306
              columnname: checkbox
306
              columnname: checkbox
307
              cannot_be_toggled: 1
307
              cannot_be_toggled: 1
308
              cannot_be_modified: 1
308
              cannot_be_modified: 1
309
            -
310
              columnname: item_type
309
            -
311
            -
310
              columnname: title
312
              columnname: title
311
              cannot_be_toggled: 1
313
              cannot_be_toggled: 1
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-18 / +18 lines)
Lines 219-252 Link Here
219
    <table id="searchresults" class="dataTable">
219
    <table id="searchresults" class="dataTable">
220
        <thead>
220
        <thead>
221
            <tr>
221
            <tr>
222
                [% IF ( itemsloop ) %]<th class="checkall">&nbsp;</th>[% END %]
222
                [% IF ( itemsloop ) %]<th class="checkall" data-colname="checkbox">&nbsp;</th>[% END %]
223
223
224
                [% UNLESS ( item_level_itypes ) %]<th>Item type</th>[% END %]
224
                [% UNLESS ( item_level_itypes ) %]<th data-colname="item_type">Item type</th>[% END %]
225
                [% IF sortfield == 'title' %]
225
                [% IF sortfield == 'title' %]
226
                    <th class="sorting_[% direction | html %]">
226
                    <th class="sorting_[% direction | html %]" data-colname="title">
227
                [% ELSE %]
227
                [% ELSE %]
228
                    <th class="sorting">
228
                    <th class="sorting" data-colname="title">
229
                [% END %]
229
                [% END %]
230
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a>
230
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=title&amp;direction=[% IF sortfield != 'title' %]asc[% ELSE %][% new_direction | uri %][% END %]">Title</a>
231
                </th>
231
                </th>
232
                [% IF sortfield == 'author' %]
232
                [% IF sortfield == 'author' %]
233
                    <th class="sorting_[% direction | html %]">
233
                    <th class="sorting_[% direction | html %]" data-colname="author">
234
                [% ELSE %]
234
                [% ELSE %]
235
                    <th class="sorting">
235
                    <th class="sorting" data-colname="author">
236
                [% END %]
236
                [% END %]
237
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a>
237
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=author&amp;direction=[% IF sortfield != 'author' %]asc[% ELSE %][% new_direction | uri %][% END %]">Author</a>
238
                </th>
238
                </th>
239
                [% IF sortfield == 'dateadded' %]
239
                [% IF sortfield == 'dateadded' %]
240
                    <th class="sorting_[% direction | html %]">
240
                    <th class="sorting_[% direction | html %]" data-colname="date_added">
241
                [% ELSE %]
241
                [% ELSE %]
242
                    <th class="sorting">
242
                    <th class="sorting" data-colname="date_added">
243
                [% END %]
243
                [% END %]
244
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=dateadded&amp;direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a>
244
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=dateadded&amp;direction=[% IF sortfield != 'dateadded' %]asc[% ELSE %][% new_direction | uri %][% END %]">Date added</a>
245
                </th>
245
                </th>
246
                [% IF sortfield == 'itemcallnumber' %]
246
                [% IF sortfield == 'itemcallnumber' %]
247
                     <th class="sorting_[% direction | html %]">
247
                     <th class="sorting_[% direction | html %]" data-colname="call_number">
248
                [% ELSE %]
248
                [% ELSE %]
249
                    <th class="sorting">
249
                    <th class="sorting" data-colname="call_number">
250
                [% END %]
250
                [% END %]
251
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a>
251
                    <a href="/cgi-bin/koha/virtualshelves/shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber | uri %]&amp;sortfield=itemcallnumber&amp;direction=[% IF sortfield != 'itemcallnumber' %]asc[% ELSE %][% new_direction | uri %][% END %]">Call number</a>
252
                 </th>
252
                 </th>
Lines 255-268 Link Here
255
        [% FOREACH itemsloo IN itemsloop %]
255
        [% FOREACH itemsloo IN itemsloop %]
256
                <tr>
256
                <tr>
257
            [% IF itemsloop %]
257
            [% IF itemsloop %]
258
                <td>
258
                <td data-colname="checkbox">
259
                    <input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" />
259
                    <input type="checkbox" class="selection" value="[% itemsloo.biblionumber | html %]" name="biblionumber" />
260
                </td>
260
                </td>
261
            [% END %]
261
            [% END %]
262
			[% UNLESS ( item_level_itypes ) %]<td>
262
            [% UNLESS ( item_level_itypes ) %]<td data-colname="item_type">
263
                [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />[% END %][% itemsloo.description | html %]
263
                [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl | html %]" alt="[% itemsloo.description | html %]" title="[% itemsloo.description | html %]" />[% END %][% itemsloo.description | html %]
264
			</td>[% END %]
264
			</td>[% END %]
265
			<td>
265
            <td data-colname="title">
266
                [% IF ( itemsloo.XSLTBloc ) %]
266
                [% IF ( itemsloo.XSLTBloc ) %]
267
                    [% itemsloo.XSLTBloc | $raw %]
267
                    [% itemsloo.XSLTBloc | $raw %]
268
                [% ELSE %]
268
                [% ELSE %]
Lines 288-296 Link Here
288
                        [% END %]
288
                        [% END %]
289
                    </p>
289
                    </p>
290
            </td>
290
            </td>
291
            <td>[% itemsloo.author | html %]</td>
291
            <td data-colname="author">[% itemsloo.author | html %]</td>
292
            <td>[% itemsloo.dateadded | $KohaDates%]</td>
292
            <td data-colname="date_added">[% itemsloo.dateadded | $KohaDates%]</td>
293
            <td>
293
            <td data-colname="call_number">
294
                <ul>
294
                <ul>
295
                [% FOREACH result IN itemsloo.ITEM_RESULTS %]
295
                [% FOREACH result IN itemsloo.ITEM_RESULTS %]
296
                    <li>
296
                    <li>
Lines 613-619 Link Here
613
                    "dom": 't',
613
                    "dom": 't',
614
                    "autoWidth": false,
614
                    "autoWidth": false,
615
                    "ordering": false,
615
                    "ordering": false,
616
                    "paging": false
616
                    "paging": false,
617
                    "bKohaColumnsUseNames": true,
617
                }, column_settings );
618
                }, column_settings );
618
619
619
                Sticky = $("#searchheader");
620
                Sticky = $("#searchheader");
620
- 

Return to bug 30031