Commit a9a88981 authored by Volker Krause's avatar Volker Krause
Browse files

Make use of the generic VDV extractor results here too

The Context API abstracts this away from us, just stay away from UIC 918.3
specific API where possible.
parent 0215896b
......@@ -189,11 +189,11 @@ function parsePdf(pdf) {
var reservations = parseTicket(page.text, uic918ticket);
for (var i = 0; i < reservations.length; ++i) {
reservations[i].reservedTicket.ticketToken = "aztecbin:" + Barcode.toBase64(Context.barcode);
reservations[i].reservedTicket.ticketedSeat.seatingType = uic918ticket.seatingType;
if (Context.data && Context.data.length > 0) {
reservations[i].reservedTicket.name = Context.data[0].reservedTicket.name;
reservations[i].underName = Context.data[0].underName;
reservations[i].reservedTicket.ticketedSeat.seatingType = Context.data[0].reservedTicket.ticketedSeat.seatingType;
}
reservations[i].underName = JsonLd.toJson(uic918ticket.person);
}
return reservations;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment