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

(-)a/C4/VirtualShelves/Page.pm (-5 / +6 lines)
Lines 340-350 sub shelfpage ($$$$$) { Link Here
340
        my $owner     = $shelflist->{$element}->{'owner'};
340
        my $owner     = $shelflist->{$element}->{'owner'};
341
        my $canmanage = ShelfPossibleAction( $loggedinuser, $element, 'manage' );
341
        my $canmanage = ShelfPossibleAction( $loggedinuser, $element, 'manage' );
342
        my $sortfield = $shelflist->{$element}->{'sortfield'};
342
        my $sortfield = $shelflist->{$element}->{'sortfield'};
343
        if ( $sortfield eq 'author' ) {
343
        if ( $sortfield ){
344
            $shelflist->{$element}->{"authorsort"} = 'author';
344
            if ( $sortfield eq 'author' ) {
345
        }
345
                $shelflist->{$element}->{"authorsort"} = 'author';
346
        if ( $sortfield eq 'year' ) {
346
            } elsif ( $sortfield eq 'year' ) {
347
            $shelflist->{$element}->{"yearsort"} = 'year';
347
                $shelflist->{$element}->{"yearsort"} = 'year';
348
            }
348
        }
349
        }
349
        $shelflist->{$element}->{"viewcategory$category"} = 1;
350
        $shelflist->{$element}->{"viewcategory$category"} = 1;
350
        $shelflist->{$element}->{manageshelf} = $canmanage;
351
        $shelflist->{$element}->{manageshelf} = $canmanage;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-3 / +3 lines)
Lines 349-355 function placeHold () { Link Here
349
        		<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
349
        		<tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>Options</th></tr>
350
                [% FOREACH shelveslooppri IN shelveslooppriv %]
350
                [% FOREACH shelveslooppri IN shelveslooppriv %]
351
                    [% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
351
                    [% IF ( shelveslooppri.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
352
        <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&amp;[% END %]viewshelf=[% shelveslooppri.shelf %]&shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
352
        <td><a href="shelves.pl?[% IF ( shelveslooppri.showprivateshelves ) %]display=privateshelves&amp;[% END %]viewshelf=[% shelveslooppri.shelf %]&amp;shelfoff=[% shelfoff %]">[% shelveslooppri.shelfname |html %]</a></td>
353
        <td>[% shelveslooppri.count %] item(s)</td>
353
        <td>[% shelveslooppri.count %] item(s)</td>
354
        <td>[% IF ( shelveslooppri.authorsort ) %]Author[% ELSIF ( shelveslooppri.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
354
        <td>[% IF ( shelveslooppri.authorsort ) %]Author[% ELSIF ( shelveslooppri.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
355
        <td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
355
        <td>[% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %]
Lines 399-408 function placeHold () { Link Here
399
        [% IF ( shelvesloop ) %]
399
        [% IF ( shelvesloop ) %]
400
		<div class="pages">[% pagination_bar %]</div>
400
		<div class="pages">[% pagination_bar %]</div>
401
        <table>
401
        <table>
402
        <tr><th>List Name</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
402
        <tr><th>List Name</th><th>Created by</th><th>Contents</th><th>Sort By</th><th>Type</th><th>Options</th></tr>
403
            [% FOREACH shelvesloo IN shelvesloop %]
403
            [% FOREACH shelvesloo IN shelvesloop %]
404
                [% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
404
                [% IF ( shelvesloo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
405
		<td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td>
405
		<td><a href="shelves.pl?viewshelf=[% shelvesloo.shelf %]">[% shelvesloo.shelfname |html %]</a></td>
406
        <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% shelvesloo.owner %]">[% shelvesloo.ownername %]</td>
406
		<td>[% shelvesloo.count %] item(s)</td>
407
		<td>[% shelvesloo.count %] item(s)</td>
407
        <td>[% IF ( shelvesloo.authorsort ) %]Author[% ELSIF ( shelvesloo.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
408
        <td>[% IF ( shelvesloo.authorsort ) %]Author[% ELSIF ( shelvesloo.yearsort ) %]Year[% ELSE %]Title[% END %]</td>
408
        <td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
409
        <td>[% IF ( shelvesloo.viewcategory1 ) %]Private[% END %]
409
- 

Return to bug 7083