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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1365-1371 sub can_see_patrons_from { Link Here
1365
1365
1366
=head3 libraries_where_can_see_patrons
1366
=head3 libraries_where_can_see_patrons
1367
1367
1368
my $libraries = $patron-libraries_where_can_see_patrons;
1368
my $libraries = $patron->libraries_where_can_see_patrons;
1369
1369
1370
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1370
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1371
The branchcodes are arbitrarily returned sorted.
1371
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 378-384 foreach my $item (@items) { Link Here
378
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
378
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
379
    }
379
    }
380
380
381
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
381
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
382
382
383
    if ( C4::Context->preference("LocalCoverImages") == 1 ) {
383
    if ( C4::Context->preference("LocalCoverImages") == 1 ) {
384
        $item->{cover_images} = $item_object->cover_images;
384
        $item->{cover_images} = $item_object->cover_images;
(-)a/cataloguing/additem.pl (-1 lines)
Lines 860-866 foreach my $field (@fields) { Link Here
860
        {
860
        {
861
            #verifying rights
861
            #verifying rights
862
            unless ( $patron->can_edit_item($subfieldvalue) ) {
862
            unless ( $patron->can_edit_item($subfieldvalue) ) {
863
                warn "NOMOD";
864
                $this_row{'nomod'} = 1;
863
                $this_row{'nomod'} = 1;
865
            }
864
            }
866
        }
865
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 345-351 Link Here
345
                <tr>
345
                <tr>
346
                [% IF (StaffDetailItemSelection) %]
346
                [% IF (StaffDetailItemSelection) %]
347
                    <td style="text-align:center;vertical-align:middle">
347
                    <td style="text-align:center;vertical-align:middle">
348
                        [% UNLESS item.cannot_be_edited %]
348
                        [% IF item.can_be_edited %]
349
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
349
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
350
                        [% END %]
350
                        [% END %]
351
                    </td>
351
                    </td>
352
- 

Return to bug 20256