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

(-)a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js (-3 / +10 lines)
Lines 363-370 $(document).ready(function() { Link Here
363
    // Get our data from the API and process it prior to passing
363
    // Get our data from the API and process it prior to passing
364
    // it to datatables
364
    // it to datatables
365
    var filterParam = prefilters ? '&' + prefilters : '';
365
    var filterParam = prefilters ? '&' + prefilters : '';
366
    // Only fire the request if we're on the ILL list page
366
    // Only fire the request if we're on an appropriate page
367
    if (window.location.search.length == 0) {
367
    if (
368
        (
369
            // ILL list requests page
370
            window.location.href.match(/ill\/ill-requests\.pl/) &&
371
            window.location.search.length == 0
372
        ) ||
373
        // Patron profile page
374
        window.location.href.match(/members\/ill-requests\.pl/)
375
    ) {
368
        var ajax = $.ajax(
376
        var ajax = $.ajax(
369
            '/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias,comments,requested_partners'
377
            '/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias,comments,requested_partners'
370
            + filterParam
378
            + filterParam
371
- 

Return to bug 24565