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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1368-1374 sub can_see_patrons_from { Link Here
1368
1368
1369
=head3 libraries_where_can_see_patrons
1369
=head3 libraries_where_can_see_patrons
1370
1370
1371
my $libraries = $patron-libraries_where_can_see_patrons;
1371
my $libraries = $patron->libraries_where_can_see_patrons;
1372
1372
1373
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1373
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1374
The branchcodes are arbitrarily returned sorted.
1374
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 383-389 foreach my $item (@items) { Link Here
383
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
383
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
384
    }
384
    }
385
385
386
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
386
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
387
387
388
    if ( C4::Context->preference("LocalCoverImages") == 1 ) {
388
    if ( C4::Context->preference("LocalCoverImages") == 1 ) {
389
        $item->{cover_images} = $item_object->cover_images;
389
        $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 350-356 Link Here
350
                <tr>
350
                <tr>
351
                [% IF (StaffDetailItemSelection) %]
351
                [% IF (StaffDetailItemSelection) %]
352
                    <td style="text-align:center;vertical-align:middle">
352
                    <td style="text-align:center;vertical-align:middle">
353
                        [% UNLESS item.cannot_be_edited %]
353
                        [% IF item.can_be_edited %]
354
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
354
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
355
                        [% END %]
355
                        [% END %]
356
                    </td>
356
                    </td>
357
- 

Return to bug 20256