diff --git a/module/VuFind/src/VuFind/ILS/Driver/Demo.php b/module/VuFind/src/VuFind/ILS/Driver/Demo.php index c90647288d5f625745f02fac1c86659e916b2a1d..ea209d5d1355f02a90cd441140a5992df06835f0 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Demo.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Demo.php @@ -273,7 +273,6 @@ class Demo extends AbstractBase public function setStatus($id, $holding = array(), $append = true) { $id = (string)$id; - $status = ($holding['status']) ? $holding['status'] : $this->getFakeStatus(); $i = ($this->session->statuses) ? count($this->session->statuses)+1 : 1; $holding = array_merge($this->getRandomHolding($id, $i), $holding); @@ -371,7 +370,7 @@ class Demo extends AbstractBase $status = $this->getStatus($id); // Add notes and summary: - foreach ($status as $i => $current) { + foreach (array_keys($status) as $i) { $itemNum = $i + 1; $noteCount = rand(1, 3); $status[$i]['notes'] = array(); diff --git a/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php b/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php index b4a148146bc1d77a2097cee3995cacc9f0547eaf..c3943a93fd6e99e7bfd219640811f3d57e73036e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php @@ -721,7 +721,7 @@ HERE; try { $sqlStmt = $this->db->prepare($sql); $sqlStmt->execute(); - while ($row = $sqlStm->fetch(PDO::FETCH_ASSOC)) { + while ($row = $sqlStmt->fetch(PDO::FETCH_ASSOC)) { $list[] = $row['id']; } } catch (PDOException $e) { diff --git a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php index 6925ae425d4367067316d143201009cb2664b2ef..f90cb82526286cb7ffea7be933a8d4c2014eb3ae 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php +++ b/module/VuFind/src/VuFind/ILS/Driver/MultiBackend.php @@ -520,7 +520,7 @@ class MultiBackend extends AbstractBase implements ServiceLocatorAwareInterface = $key.$this->delimiters['login'].$login['cat_username']; return $login; } - foreach ($this->drivers as $key => $driver) { + foreach (array_keys($this->drivers) as $key) { $login = $this->getDriver($key)->patronLogin($username, $password); if ($login) { $login['cat_username'] @@ -581,7 +581,7 @@ class MultiBackend extends AbstractBase implements ServiceLocatorAwareInterface } // Lastly, we see if any of the drivers we have support the function - foreach ($this->drivers as $key => $driver) { + foreach (array_keys($this->drivers) as $key) { $driverInst = $this->getUninitializedDriver($key); if (is_callable(array($driverInst, $method))) { return true; @@ -666,7 +666,7 @@ class MultiBackend extends AbstractBase implements ServiceLocatorAwareInterface $returnArray = array(); // Here we loop through evry instance we have access to and change what // we do based off of the configuration behavior. - foreach ($this->drivers as $key => $driver) { + foreach (array_keys($this->drivers) as $key) { $funcReturn = $this->runIfPossible($key, $methodName, $params, $called); if ($called) { if ($behavior == "use_first" || !is_array($funcReturn)) { diff --git a/module/VuFind/src/VuFind/ILS/Driver/Symphony.php b/module/VuFind/src/VuFind/ILS/Driver/Symphony.php index ae549bd56670e7fd75c70e2aaf15f0233e3d605c..8211409130bf388db648e4d09a681b8fc8ad07cd 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Symphony.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Symphony.php @@ -387,6 +387,8 @@ class Symphony extends AbstractBase implements ServiceLocatorAwareInterface $location = $library . ' - ' . ($available && !empty($curr_loc) ? $curr_loc : $home_loc); + $material = $this->translatePolicyID('ITYP', $result['item type']); + $items[$result['id']][] = array( 'id' => $result['id'], 'availability' => $available, @@ -400,6 +402,7 @@ class Symphony extends AbstractBase implements ServiceLocatorAwareInterface 'barcode' => $result['barcode number'], 'item_id' => $result['barcode number'], 'library' => $library, + 'material' => $material ); } }