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

(-)a/koha-tmpl/intranet-tmpl/prog/js/fetch/circulation-api-client.js (-8 / +13 lines)
Lines 33-45 export class CirculationAPIClient extends HttpClient { Link Here
33
            renew: checkout =>
33
            renew: checkout =>
34
                this.post({
34
                this.post({
35
                    endpoint: "renew",
35
                    endpoint: "renew",
36
                    body: "itemnumber=%s&borrowernumber=%s&branchcode=%s&override_limit=%s".format(
36
                    body:
37
                        checkout.item_id,
37
                        "itemnumber=%s&borrowernumber=%s&branchcode=%s&override_limit=%s".format(
38
                        checkout.patron_id,
38
                            checkout.item_id,
39
                        checkout.library_id,
39
                            checkout.patron_id,
40
                        checkout.override_limit
40
                            checkout.library_id,
41
                    ),
41
                            checkout.override_limit
42
                    //+ ( checkout.seen !== undefined ? "&seen=%s".format(checkout.seen) : "" ) + (checkout.date_due !== undefined ? "&date_due=%s".format(checkout.date_due) : ""),
42
                        ) +
43
                        (checkout.seen !== undefined
44
                            ? "&seen=%s".format(checkout.seen)
45
                            : "") +
46
                        (checkout.date_due !== undefined
47
                            ? "&date_due=%s".format(checkout.date_due)
48
                            : ""),
43
                    headers: {
49
                    headers: {
44
                        "Content-Type":
50
                        "Content-Type":
45
                            "application/x-www-form-urlencoded;charset=utf-8",
51
                            "application/x-www-form-urlencoded;charset=utf-8",
46
- 

Return to bug 37332