From 3571fc6ae2a3fb97d5c498999493b28996b5a168 Mon Sep 17 00:00:00 2001 From: Johannes Schultze Date: Thu, 8 Mar 2018 11:11:35 +0100 Subject: [PATCH] Formated date on /MyResearch/CheckedOut and started using VuFind "overdue"-status. --- module/PAIA/src/PAIA/Controller/MyResearchController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/PAIA/src/PAIA/Controller/MyResearchController.php b/module/PAIA/src/PAIA/Controller/MyResearchController.php index 73ad6f59dd..de226f6dd6 100644 --- a/module/PAIA/src/PAIA/Controller/MyResearchController.php +++ b/module/PAIA/src/PAIA/Controller/MyResearchController.php @@ -1138,7 +1138,12 @@ public function checkedoutAction() $renewForm = true; } } - + if($dueDateTime = new \DateTime($current['duedate'])) { + $current['duedate'] = $dueDateTime->format('d.m.Y'); + if ($dueDateTime < new \DateTime('now')) { + $current['dueStatus'] = 'overdue'; + } + } // Build record driver: $transactions[] = $this->getDriverForILSRecord($current); }