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 869-875 foreach my $field (@fields) { Link Here
869
        {
869
        {
870
            #verifying rights
870
            #verifying rights
871
            unless ( $patron->can_edit_item($subfieldvalue) ) {
871
            unless ( $patron->can_edit_item($subfieldvalue) ) {
872
                warn "NOMOD";
873
                $this_row{'nomod'} = 1;
872
                $this_row{'nomod'} = 1;
874
            }
873
            }
875
        }
874
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 322-328 Link Here
322
                <tr>
322
                <tr>
323
                [% IF (StaffDetailItemSelection) %]
323
                [% IF (StaffDetailItemSelection) %]
324
                    <td style="text-align:center;vertical-align:middle">
324
                    <td style="text-align:center;vertical-align:middle">
325
                        [% UNLESS item.cannot_be_edited %]
325
                        [% IF item.can_be_edited %]
326
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
326
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
327
                        [% END %]
327
                        [% END %]
328
                    </td>
328
                    </td>
329
- 

Return to bug 20256