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 382-388 foreach my $item (@items) { Link Here
382
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
382
        $item->{'course_reserves'} = GetItemCourseReservesInfo( itemnumber => $item->{'itemnumber'} );
383
    }
383
    }
384
384
385
    $item->{cannot_be_edited} = !$patron->can_edit_item( $item_object );
385
    $item->{can_be_edited} = !$patron->can_edit_item( $item_object );
386
386
387
    if ($currentbranch and C4::Context->preference('SeparateHoldings')) {
387
    if ($currentbranch and C4::Context->preference('SeparateHoldings')) {
388
        if ($itembranchcode and $itembranchcode eq $currentbranch) {
388
        if ($itembranchcode and $itembranchcode eq $currentbranch) {
(-)a/cataloguing/additem.pl (-1 lines)
Lines 847-853 foreach my $field (@fields) { Link Here
847
        {
847
        {
848
            #verifying rights
848
            #verifying rights
849
            unless ( $patron->can_edit_item($subfieldvalue) ) {
849
            unless ( $patron->can_edit_item($subfieldvalue) ) {
850
                warn "NOMOD";
851
                $this_row{'nomod'} = 1;
850
                $this_row{'nomod'} = 1;
852
            }
851
            }
853
        }
852
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +1 lines)
Lines 308-314 Link Here
308
                <tr>
308
                <tr>
309
                [% IF (StaffDetailItemSelection) %]
309
                [% IF (StaffDetailItemSelection) %]
310
                    <td style="text-align:center;vertical-align:middle">
310
                    <td style="text-align:center;vertical-align:middle">
311
                        [% UNLESS item.cannot_be_edited %]
311
                        [% IF item.can_be_edited %]
312
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
312
                            <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
313
                        [% END %]
313
                        [% END %]
314
                    </td>
314
                    </td>
315
- 

Return to bug 20256