Skip to content
Snippets Groups Projects
Commit 8e66e5aa authored by Demian Katz's avatar Demian Katz
Browse files

Renamed worldcatutils service to VuFind\WorldCatUtils.

parent 26b8c5d7
Branches
Tags
No related merge requests found
......@@ -323,7 +323,7 @@ $config = array(
'VuFind\SessionManager' => 'Zend\Session\SessionManager',
'VuFind\SMS' => 'VuFind\Mailer\SMS',
'VuFind\WorldCatConnection' => 'VuFind\Connection\WorldCat',
'worldcatutils' => 'VuFind\Connection\WorldCatUtils',
'VuFind\WorldCatUtils' => 'VuFind\Connection\WorldCatUtils',
),
'initializers' => array(
array('VuFind\ServiceManager\Initializer', 'initInstance'),
......
......@@ -105,7 +105,8 @@ class WorldCatIdentities extends AbstractSearchManagerAwareModule
$lookfor = isset($search[0]['lookfor']) ? $search[0]['lookfor'] : '';
// Get terminology information:
return $this->getServiceLocator()->getServiceLocator()->get('WorldCatUtils')
return $this->getServiceLocator()->getServiceLocator()
->get('VuFind\WorldCatUtils')
->getRelatedIdentities($lookfor);
}
}
\ No newline at end of file
......@@ -106,7 +106,8 @@ class WorldCatTerms extends AbstractSearchManagerAwareModule
$lookfor = isset($search[0]['lookfor']) ? $search[0]['lookfor'] : '';
// Get terminology information:
$wc = $this->getServiceLocator()->getServiceLocator()->get('WorldCatUtils');
$wc = $this->getServiceLocator()->getServiceLocator()
->get('VuFind\WorldCatUtils');
$terms = $wc->getRelatedTerms($lookfor, $this->vocab);
// Wipe out any empty or unexpected sections of the related terms array;
......
......@@ -102,7 +102,7 @@ class Editions extends AbstractServiceLocator
*/
protected function getQueryParts($driver)
{
$wc = $this->getServiceLocator()->get('WorldCatUtils');
$wc = $this->getServiceLocator()->get('VuFind\WorldCatUtils');
$parts = array();
if (method_exists($driver, 'getCleanOCLCNum')) {
$oclcNum = $driver->getCleanOCLCNum();
......
......@@ -80,7 +80,7 @@ class WorldCatEditions extends Editions
*/
protected function getQueryParts($driver)
{
$wc = $this->getServiceLocator()->get('WorldCatUtils');
$wc = $this->getServiceLocator()->get('VuFind\WorldCatUtils');
$parts = array();
if (method_exists($driver, 'getCleanISBN')) {
$isbn = $driver->getCleanISBN();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment