in public/components/content-list-item/content-list-item.js [230:251]
getPrintValues(item) {
const printLocationType = this.getPrintLocationType(item);
if (printLocationType === 'actual') {
return {
longPrintLocationDescription: item.longActualPrintLocationDescription,
shortPrintLocationDescription: item.shortActualPrintLocationDescription,
newspaperPageNumber: item.actualNewspaperPageNumber,
newspaperPublicationDate: new Date(item.actualNewspaperPublicationDate),
printLocationType
}
}
if (printLocationType === 'planned') {
return {
longPrintLocationDescription: item.longPlannedPrintLocationDescription,
shortPrintLocationDescription: item.shortPlannedPrintLocationDescription,
newspaperPageNumber: item.plannedNewspaperPageNumber,
newspaperPublicationDate: new Date(item.plannedNewspaperPublicationDate),
printLocationType
}
}
return {}; // For easy destructuring in the caller;
}