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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1147-1153 sub can_see_patrons_from { Link Here
1147
1147
1148
=head3 libraries_where_can_see_patrons
1148
=head3 libraries_where_can_see_patrons
1149
1149
1150
my $libraries = $patron-libraries_where_can_see_patrons;
1150
my $libraries = $patron->libraries_where_can_see_patrons;
1151
1151
1152
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1152
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1153
The branchcodes are arbitrarily returned sorted.
1153
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 339-345 foreach my $item (@items) { Link Here
339
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
339
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
340
    }
340
    }
341
341
342
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
342
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
343
343
344
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
344
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
345
    and C4::Context->preference('SeparateHoldings')) {
345
    and C4::Context->preference('SeparateHoldings')) {
(-)a/cataloguing/additem.pl (-1 lines)
Lines 796-802 foreach my $field (@fields) { Link Here
796
        {
796
        {
797
            #verifying rights
797
            #verifying rights
798
            unless ( $patron->can_edit_item($subfieldvalue) ) {
798
            unless ( $patron->can_edit_item($subfieldvalue) ) {
799
                warn "NOMOD";
800
                $this_row{'nomod'} = 1;
799
                $this_row{'nomod'} = 1;
801
            }
800
            }
802
        }
801
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 381-387 Link Here
381
                <tr>
381
                <tr>
382
                [% IF (StaffDetailItemSelection) %]
382
                [% IF (StaffDetailItemSelection) %]
383
                    <td style="text-align:center;vertical-align:middle">
383
                    <td style="text-align:center;vertical-align:middle">
384
                        [% UNLESS item.cannot_be_edited %]
384
                        [% IF item.can_be_edited %]
385
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
385
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
386
                        [% END %]
386
                        [% END %]
387
                    </td>
387
                    </td>
388
- 

Return to bug 20256