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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1273-1279 sub can_see_patrons_from { Link Here
1273
1273
1274
=head3 libraries_where_can_see_patrons
1274
=head3 libraries_where_can_see_patrons
1275
1275
1276
my $libraries = $patron-libraries_where_can_see_patrons;
1276
my $libraries = $patron->libraries_where_can_see_patrons;
1277
1277
1278
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1278
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1279
The branchcodes are arbitrarily returned sorted.
1279
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 372-378 foreach my $item (@items) { Link Here
372
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
372
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
373
    }
373
    }
374
374
375
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
375
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
376
376
377
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
377
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
378
    and C4::Context->preference('SeparateHoldings')) {
378
    and C4::Context->preference('SeparateHoldings')) {
(-)a/cataloguing/additem.pl (-1 lines)
Lines 829-835 foreach my $field (@fields) { Link Here
829
        {
829
        {
830
            #verifying rights
830
            #verifying rights
831
            unless ( $patron->can_edit_item($subfieldvalue) ) {
831
            unless ( $patron->can_edit_item($subfieldvalue) ) {
832
                warn "NOMOD";
833
                $this_row{'nomod'} = 1;
832
                $this_row{'nomod'} = 1;
834
            }
833
            }
835
        }
834
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 252-258 Link Here
252
                <tr>
252
                <tr>
253
                [% IF (StaffDetailItemSelection) %]
253
                [% IF (StaffDetailItemSelection) %]
254
                    <td style="text-align:center;vertical-align:middle">
254
                    <td style="text-align:center;vertical-align:middle">
255
                        [% UNLESS item.cannot_be_edited %]
255
                        [% IF item.can_be_edited %]
256
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
256
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
257
                        [% END %]
257
                        [% END %]
258
                    </td>
258
                    </td>
259
- 

Return to bug 20256