From 141af85fc95618625ff7f715e94af17a3d352a0a Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 31 Oct 2012 13:38:40 -0400 Subject: [PATCH] Tolerate unsupported pickup locations. --- .../VuFind/src/VuFind/Controller/MyResearchController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index cef4dfe119d..cfa1b1029d9 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -800,7 +800,12 @@ class MyResearchController extends AbstractBase } // Get List of PickUp Libraries based on patron's home library - $view->pickup = $catalog->getPickUpLocations($patron); + try { + $view->pickup = $catalog->getPickUpLocations($patron); + } catch (\Exception $e) { + // Do nothing; if we're unable to load information about pickup + // locations, they are not supported and we should ignore them. + } $view->recordList = $recordList; return $view; } -- GitLab