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

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

Return to bug 20256