diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index 0c4d4ae08e3252daca145b7856945a0b17ace4a9..aeb81e4541bcb710ddf44f834934a8149e6f6307 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -387,6 +387,7 @@ $config = [ 'horizonxmlapi' => 'VuFind\ILS\Driver\Factory::getHorizonXMLAPI', 'multibackend' => 'VuFind\ILS\Driver\Factory::getMultiBackend', 'noils' => 'VuFind\ILS\Driver\Factory::getNoILS', + 'koharest' => 'VuFind\ILS\Driver\Factory::getKohaRest', 'unicorn' => 'VuFind\ILS\Driver\Factory::getUnicorn', 'voyager' => 'VuFind\ILS\Driver\Factory::getVoyager', 'voyagerrestful' => 'VuFind\ILS\Driver\Factory::getVoyagerRestful', @@ -397,6 +398,7 @@ $config = [ 'evergreen' => 'VuFind\ILS\Driver\Evergreen', 'innovative' => 'VuFind\ILS\Driver\Innovative', 'koha' => 'VuFind\ILS\Driver\Koha', + 'koharest' => 'VuFind\ILS\Driver\KohaRest', 'lbs4' => 'VuFind\ILS\Driver\LBS4', 'newgenlib' => 'VuFind\ILS\Driver\NewGenLib', 'polaris' => 'VuFind\ILS\Driver\Polaris', diff --git a/module/VuFind/src/VuFind/ILS/Driver/Factory.php b/module/VuFind/src/VuFind/ILS/Driver/Factory.php index dbff5f4b0b759de7a32f3d8358756723eb90db94..8e23a35120ee1763a6c3efd31fef790393387035 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Factory.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Factory.php @@ -142,6 +142,18 @@ class Factory return new NoILS($sm->getServiceLocator()->get('VuFind\RecordLoader')); } + /** + * Factory for KohaRest driver. + * + * @param ServiceManager $sm Service manager. + * + * @return KohaRest + */ + public static function getKohaRest(ServiceManager $sm) + { + return new KohaRest($sm->getServiceLocator()->get('VuFind\DateConverter')); + } + /** * Factory for Unicorn driver. *