Bug 29002: Display patron rather than booking id in timeline
This patch improves the display of the bookings timeline to display who the booking is for rather than a cryptic booking id. Test plan 1) Follow the previous test plans 2) Navigate to the bookings display tab 3) Note that the timeline now displays each booking with the patron title as expected as apposed to "Booking XX" Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com> Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Laurence Rault <laurence.rault@biblibre.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
272aef8b9d
commit
8b38eec314
1 changed files with 5 additions and 1 deletions
|
@ -76,6 +76,7 @@
|
|||
});
|
||||
var bookings = $.ajax({
|
||||
url: '/api/v1/biblios/[% biblionumber | uri %]/bookings',
|
||||
headers: { 'x-koha-embed': 'patron' },
|
||||
dataType: 'json',
|
||||
type: 'GET',
|
||||
});
|
||||
|
@ -101,7 +102,10 @@
|
|||
patron: booking.patron_id,
|
||||
start: dayjs(booking.start_date).toDate(),
|
||||
end: dayjs(booking.end_date).toDate(),
|
||||
content: 'Booking: ' + booking.booking_id,
|
||||
content: $patron_to_html(booking.patron, {
|
||||
display_cardnumber: true,
|
||||
url: false
|
||||
}),
|
||||
editable: { remove: true, updateTime: true },
|
||||
type: 'range',
|
||||
group: booking.item_id ? booking.item_id : 0
|
||||
|
|
Loading…
Reference in a new issue