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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1148-1154 sub can_see_patrons_from { Link Here
1148
1148
1149
=head3 libraries_where_can_see_patrons
1149
=head3 libraries_where_can_see_patrons
1150
1150
1151
my $libraries = $patron-libraries_where_can_see_patrons;
1151
my $libraries = $patron->libraries_where_can_see_patrons;
1152
1152
1153
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1153
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1154
The branchcodes are arbitrarily returned sorted.
1154
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 340-346 foreach my $item (@items) { Link Here
340
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
340
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
341
    }
341
    }
342
342
343
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
343
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
344
344
345
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
345
    if ($currentbranch and $currentbranch ne "NO_LIBRARY_SET"
346
    and C4::Context->preference('SeparateHoldings')) {
346
    and C4::Context->preference('SeparateHoldings')) {
(-)a/cataloguing/additem.pl (-1 lines)
Lines 809-815 foreach my $field (@fields) { Link Here
809
        {
809
        {
810
            #verifying rights
810
            #verifying rights
811
            unless ( $patron->can_edit_item($subfieldvalue) ) {
811
            unless ( $patron->can_edit_item($subfieldvalue) ) {
812
                warn "NOMOD";
813
                $this_row{'nomod'} = 1;
812
                $this_row{'nomod'} = 1;
814
            }
813
            }
815
        }
814
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 222-228 Link Here
222
                <tr>
222
                <tr>
223
                [% IF (StaffDetailItemSelection) %]
223
                [% IF (StaffDetailItemSelection) %]
224
                    <td style="text-align:center;vertical-align:middle">
224
                    <td style="text-align:center;vertical-align:middle">
225
                        [% UNLESS item.cannot_be_edited %]
225
                        [% IF item.can_be_edited %]
226
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
226
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
227
                        [% END %]
227
                        [% END %]
228
                    </td>
228
                    </td>
229
- 

Return to bug 20256