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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (+22 lines)
Lines 102-107 Link Here
102
        :disabled{
102
        :disabled{
103
            opacity:0.5
103
            opacity:0.5
104
        }
104
        }
105
106
        .disabled_trash{
107
            pointer-events: none;
108
            cursor: not-allowed ;
109
            color: #777;
110
        }
105
    </style>
111
    </style>
106
[% END %]
112
[% END %]
107
</head>
113
</head>
Lines 1864-1869 Link Here
1864
                return false;
1870
                return false;
1865
            });
1871
            });
1866
1872
1873
            [% IF (!CAN_user_superlibrarian) %]
1874
                var user_branch = "[% Branches.GetLoggedInBranchcode %]";
1875
                if(user_branch !== undefined && user_branch !== ""){
1876
                    $('#patron_holds_table tbody tr').each(function() {
1877
                        var link = $(this).find('a[href*="member"]');
1878
                        var rankRequest = $(this).find("select[name='rank-request']");
1879
                        if (!link.length){
1880
                           $(this).find('.cancel-hold, .fa-trash').addClass('disabled_trash');
1881
                        }
1882
                        $(this).find('.select_hold, .rank-request, td a[data-op="cud-move"], .flatpickr, .toggle-suspend, .clear_date, [name*="change_hold_type_"]').addClass('disabled').attr('disabled', 'disabled');
1883
                        $('.select_hold_all, .hold-arrow').addClass('disabled').attr('disabled', 'disabled');
1884
                        $('.suspend-hold').prop('disabled', true);
1885
                    });
1886
               }
1887
            [% END %]
1888
1867
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %]
1889
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems || nobiblio ) %]
1868
                [% IF ( PatronAutoComplete ) %]
1890
                [% IF ( PatronAutoComplete ) %]
1869
                    patron_autocomplete($(".search_patron_filter"), { 'link-to': 'reserve', 'url-params': '[% url_biblio_params | url %]' });
1891
                    patron_autocomplete($(".search_patron_filter"), { 'link-to': 'reserve', 'url-params': '[% url_biblio_params | url %]' });
(-)a/reserve/request.pl (-1 / +9 lines)
Lines 40-45 use C4::Serials qw( CountSubscriptionFromBiblionumber ); Link Here
40
use C4::Circulation qw( _GetCircControlBranch GetBranchItemRule );
40
use C4::Circulation qw( _GetCircControlBranch GetBranchItemRule );
41
use Koha::DateUtils qw( dt_from_string );
41
use Koha::DateUtils qw( dt_from_string );
42
use C4::Search qw( enabled_staff_search_views );
42
use C4::Search qw( enabled_staff_search_views );
43
use C4::Context;
43
44
44
use Koha::Biblios;
45
use Koha::Biblios;
45
use Koha::Checkouts;
46
use Koha::Checkouts;
Lines 64-69 my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user( Link Here
64
    }
65
    }
65
);
66
);
66
67
68
my $is_super_librarian = C4::Context->IsSuperLibrarian();
69
my $user_branch = C4::Context->preference("IndependentBranches") ? C4::Context->userenv->{'branch'}: undef;
70
71
$template->param(
72
    is_super_librarian => $is_super_librarian,
73
    user_branch => $user_branch,
74
);
75
67
my $showallitems = $input->param('showallitems');
76
my $showallitems = $input->param('showallitems');
68
my $pickup = $input->param('pickup');
77
my $pickup = $input->param('pickup');
69
78
70
- 

Return to bug 38040