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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1292-1298 sub can_see_patrons_from { Link Here
1292
1292
1293
=head3 libraries_where_can_see_patrons
1293
=head3 libraries_where_can_see_patrons
1294
1294
1295
my $libraries = $patron-libraries_where_can_see_patrons;
1295
my $libraries = $patron->libraries_where_can_see_patrons;
1296
1296
1297
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1297
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos.
1298
The branchcodes are arbitrarily returned sorted.
1298
The branchcodes are arbitrarily returned sorted.
(-)a/catalogue/detail.pl (-1 / +1 lines)
Lines 387-393 foreach my $item (@items) { Link Here
387
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
387
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
388
    }
388
    }
389
389
390
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
390
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
391
391
392
    if ($currentbranch and C4::Context->preference('SeparateHoldings')) {
392
    if ($currentbranch and C4::Context->preference('SeparateHoldings')) {
393
        if ($itembranchcode and $itembranchcode eq $currentbranch) {
393
        if ($itembranchcode and $itembranchcode eq $currentbranch) {
(-)a/cataloguing/additem.pl (-1 lines)
Lines 830-836 foreach my $field (@fields) { Link Here
830
        {
830
        {
831
            #verifying rights
831
            #verifying rights
832
            unless ( $patron->can_edit_item($subfieldvalue) ) {
832
            unless ( $patron->can_edit_item($subfieldvalue) ) {
833
                warn "NOMOD";
834
                $this_row{'nomod'} = 1;
833
                $this_row{'nomod'} = 1;
835
            }
834
            }
836
        }
835
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 261-267 Link Here
261
                <tr>
261
                <tr>
262
                [% IF (StaffDetailItemSelection) %]
262
                [% IF (StaffDetailItemSelection) %]
263
                    <td style="text-align:center;vertical-align:middle">
263
                    <td style="text-align:center;vertical-align:middle">
264
                        [% UNLESS item.cannot_be_edited %]
264
                        [% IF item.can_be_edited %]
265
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
265
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
266
                        [% END %]
266
                        [% END %]
267
                    </td>
267
                    </td>
268
- 

Return to bug 20256