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

(-)a/api/v1/swagger/paths/bookings.yaml (+2 lines)
Lines 45-50 Link Here
45
          enum:
45
          enum:
46
            - biblio
46
            - biblio
47
            - item
47
            - item
48
            - item+strings
49
            - item.checkout
48
            - patron
50
            - patron
49
            - pickup_library
51
            - pickup_library
50
        collectionFormat: csv
52
        collectionFormat: csv
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt (-2 / +20 lines)
Lines 129-134 Link Here
129
                       let library = $("#library").find(":selected").val();
129
                       let library = $("#library").find(":selected").val();
130
                       return library;
130
                       return library;
131
                    },
131
                    },
132
                    status: { '!=': 'waiting' },
132
                };
133
                };
133
134
134
                var bookings_table_url = '/api/v1/bookings?';
135
                var bookings_table_url = '/api/v1/bookings?';
Lines 138-144 Link Here
138
                    },
139
                    },
139
                    "embed": [
140
                    "embed": [
140
                        "biblio",
141
                        "biblio",
141
                        "item",
142
                        "item+strings",
143
                        "item.checkout",
142
                        "patron",
144
                        "patron",
143
                        "pickup_library"
145
                        "pickup_library"
144
                    ],
146
                    ],
Lines 192-197 Link Here
192
                            }
194
                            }
193
                        }
195
                        }
194
                    },
196
                    },
197
                    {
198
                        "data": "",
199
                        "title": "Location",
200
                        "searchable": false,
201
                        "orderable": true,
202
                        "render": function(data,type,row,meta) {
203
                            if ( row.item ) {
204
                                if ( row.item.checked_out_date ) {
205
                                    return __("On loan, due: ") . $date(row.item.checked_out_date);
206
                                } else {
207
                                    return row.item._strings.location.str;
208
                                }
209
                            } else {
210
                                    return null;
211
                            }
212
                        }
213
                    },
195
                    {
214
                    {
196
                        "data": "patron.firstname:patron.surname",
215
                        "data": "patron.firstname:patron.surname",
197
                        "title": "Patron",
216
                        "title": "Patron",
198
- 

Return to bug 33736