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

(-)a/C4/Utils/DataTables/VirtualShelves.pm (+1 lines)
Lines 122-127 sub search { Link Here
122
        my $s = Koha::Virtualshelves->find( $shelf->{shelfnumber} );
122
        my $s = Koha::Virtualshelves->find( $shelf->{shelfnumber} );
123
        $shelf->{can_manage_shelf} = $s->can_be_managed( $loggedinuser );
123
        $shelf->{can_manage_shelf} = $s->can_be_managed( $loggedinuser );
124
        $shelf->{can_delete_shelf} = $s->can_be_deleted( $loggedinuser );
124
        $shelf->{can_delete_shelf} = $s->can_be_deleted( $loggedinuser );
125
        $shelf->{is_shared} = $s->is_shared;
125
    }
126
    }
126
    return {
127
    return {
127
        iTotalRecords => $iTotalRecords,
128
        iTotalRecords => $iTotalRecords,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (+3 lines)
Lines 92-97 $(document).ready(function(){ Link Here
92
            { 'mDataProp': 'dt_type' },
92
            { 'mDataProp': 'dt_type' },
93
            { 'mDataProp': 'dt_shelfname' },
93
            { 'mDataProp': 'dt_shelfname' },
94
            { 'mDataProp': 'dt_count' },
94
            { 'mDataProp': 'dt_count' },
95
            { 'mDataProp': 'dt_is_shared' },
95
            { 'mDataProp': 'dt_owner' },
96
            { 'mDataProp': 'dt_owner' },
96
            { 'mDataProp': 'dt_sortby' },
97
            { 'mDataProp': 'dt_sortby' },
97
            { 'mDataProp': 'dt_created_on' },
98
            { 'mDataProp': 'dt_created_on' },
Lines 638-643 function AdjustRemark() { Link Here
638
                        <th class="NoVisible">Type</th>
639
                        <th class="NoVisible">Type</th>
639
                        <th>List name</th>
640
                        <th>List name</th>
640
                        <th>Contents</th>
641
                        <th>Contents</th>
642
                        <th>Type</th>
641
                        <th>Owner</th>
643
                        <th>Owner</th>
642
                        <th>Sort by</th>
644
                        <th>Sort by</th>
643
                        <th>Creation date</th>
645
                        <th>Creation date</th>
Lines 648-653 function AdjustRemark() { Link Here
648
                        <th></th>
650
                        <th></th>
649
                        <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
651
                        <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
650
                        <th></th>
652
                        <th></th>
653
                        <th></th>
651
                        <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
654
                        <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
652
                        <th>
655
                        <th>
653
                            <select class="filter text_filter" id="searchsortby_filter">
656
                            <select class="filter text_filter" id="searchsortby_filter">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt (-1 / +2 lines)
Lines 13-18 Link Here
13
                    "<a href='/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% data.shelfnumber %]'>[% data.shelfname | html%]</a>",
13
                    "<a href='/cgi-bin/koha/virtualshelves/shelves.pl?op=view&shelfnumber=[% data.shelfnumber %]'>[% data.shelfname | html%]</a>",
14
                "dt_count":
14
                "dt_count":
15
                    "[% data.count %] item(s)",
15
                    "[% data.count %] item(s)",
16
                "dt_is_shared":
17
                    "[% IF data.type == 2 %]Public[% ELSIF data.is_shared %]Shared[% ELSE %]Private[% END %]",
16
                "dt_owner":
18
                "dt_owner":
17
                    "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.owner %]'>[% data.firstname %] [% data.surname %]</a>",
19
                    "<a href='/cgi-bin/koha/members/moremember.pl?borrowernumber=[% data.owner %]'>[% data.firstname %] [% data.surname %]</a>",
18
                "dt_sortby":
20
                "dt_sortby":
19
- 

Return to bug 18980