diff --git a/module/VuFind/src/VuFind/ILS/Driver/Demo.php b/module/VuFind/src/VuFind/ILS/Driver/Demo.php index eda909acabe9dc60e4f83f5af0971be9d2c6d24c..c59fd803cf50b5c35c292081345b4b277166499d 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Demo.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Demo.php @@ -463,6 +463,11 @@ class Demo extends AbstractBase $currentItem['position'] = $pos; } else { $currentItem['available'] = true; + if (rand() % 3 != 1) { + $lastDate = strtotime('now + 3 days'); + $currentItem['last_pickup_date'] = $this->dateConverter + ->convertToDisplayDate('U', $lastDate); + } } $pos = rand(0, count($requestGroups) - 1); $currentItem['requestGroup'] = $requestGroups[$pos]['name'];