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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1352-1358 sub can_see_patrons_from { Link Here
1352
1352
1353
=head3 libraries_where_can_see_patrons
1353
=head3 libraries_where_can_see_patrons
1354
1354
1355
my $libraries = $patron-libraries_where_can_see_patrons;
1355
my $libraries = $patron->libraries_where_can_see_patrons;
1356
1356
1357
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1357
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1358
The branchcodes are arbitrarily returned sorted.
1358
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 399-405 foreach my $item (@items) { Link Here
399
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
399
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
400
    }
400
    }
401
401
402
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
402
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
403
403
404
    if ( C4::Context->preference("LocalCoverImages") == 1 ) {
404
    if ( C4::Context->preference("LocalCoverImages") == 1 ) {
405
        $item->{cover_images} = $item_object->cover_images;
405
        $item->{cover_images} = $item_object->cover_images;
(-)a/cataloguing/additem.pl (-1 lines)
Lines 870-876 foreach my $field (@fields) { Link Here
870
        {
870
        {
871
            #verifying rights
871
            #verifying rights
872
            unless ( $patron->can_edit_item($subfieldvalue) ) {
872
            unless ( $patron->can_edit_item($subfieldvalue) ) {
873
                warn "NOMOD";
874
                $this_row{'nomod'} = 1;
873
                $this_row{'nomod'} = 1;
875
            }
874
            }
876
        }
875
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 325-331 Link Here
325
                <tr>
325
                <tr>
326
                [% IF (StaffDetailItemSelection) %]
326
                [% IF (StaffDetailItemSelection) %]
327
                    <td style="text-align:center;vertical-align:middle">
327
                    <td style="text-align:center;vertical-align:middle">
328
                        [% UNLESS item.cannot_be_edited %]
328
                        [% IF item.can_be_edited %]
329
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
329
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
330
                        [% END %]
330
                        [% END %]
331
                    </td>
331
                    </td>
332
- 

Return to bug 20256