File indexing completed on 2024-12-29 04:51:04

0001 /*
0002    SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
0003    SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 function parsePass(pass, node) {
0007     var event = node.result[0];
0008     event.reservationFor.name = pass.field['event-name'].value;
0009     event.reservationFor.location.name = pass.field['location'].value;
0010     event.reservationFor.location.address = JsonLd.newObject('PostalAddress');
0011     event.reservationFor.location.address.streetAddress = pass.locations[0].relevantText.match(/ in (.*)\.$/)[1];
0012     event.reservedTicket.name = pass.description;
0013     return event;
0014 }