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

Renamed recordloader service to VuFind\RecordLoader.

parent 4370a91c
No related merge requests found
......@@ -318,7 +318,7 @@ $config = array(
'VuFind\Cart' => 'VuFind\Cart',
'VuFind\CacheManager' => 'VuFind\Cache\Manager',
'VuFind\Mailer' => 'VuFind\Mailer',
'recordloader' => 'VuFind\Record\Loader',
'VuFind\RecordLoader' => 'VuFind\Record\Loader',
'searchspecsreader' => 'VuFind\Config\SearchSpecsReader',
'sessionmanager' => 'Zend\Session\SessionManager',
'sms' => 'VuFind\Mailer\SMS',
......
......@@ -294,7 +294,7 @@ class Cart implements ServiceLocatorAwareInterface
public function getRecordDetails()
{
return $this->getServiceLocator()
->get('RecordLoader')->loadBatch($this->items);
->get('VuFind\RecordLoader')->loadBatch($this->items);
}
/**
......
......@@ -206,7 +206,7 @@ class AbstractBase extends AbstractActionController
*/
public function getRecordLoader()
{
return $this->getServiceLocator()->get('RecordLoader');
return $this->getServiceLocator()->get('VuFind\RecordLoader');
}
/**
......
......@@ -80,7 +80,7 @@ class Resource extends Gateway
// Load record if it was not provided:
if (is_null($driver)) {
$driver = $this->getServiceLocator()->getServiceLocator()
->get('RecordLoader')->load($id, $source);
->get('VuFind\RecordLoader')->load($id, $source);
}
// Load metadata into the database for sorting/failback purposes:
......
......@@ -168,7 +168,7 @@ class Results extends BaseResults
)
);
}
$this->results = $this->getServiceLocator()->get('RecordLoader')
$this->results = $this->getServiceLocator()->get('VuFind\RecordLoader')
->loadBatch($recordsToRequest);
}
......
......@@ -62,7 +62,7 @@ class Results extends BaseResults
protected function performSearch()
{
$recordsToRequest = $this->getParams()->getRecordsToRequest();
$this->results = $this->getServiceLocator()->get('RecordLoader')
$this->results = $this->getServiceLocator()->get('VuFind\RecordLoader')
->loadBatch($recordsToRequest);
$this->resultTotal = count($this->results);
}
......
......@@ -73,7 +73,7 @@ class Results extends BaseResults
$recordsToRequest[]
= array('id' => $row->record_id, 'source' => $row->source);
}
$this->results = $this->getServiceLocator()->get('RecordLoader')
$this->results = $this->getServiceLocator()->get('VuFind\RecordLoader')
->loadBatch($recordsToRequest);
}
......
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