Skip to content

Commit eb10f51

Browse files
committed
Discussion changes
1 parent 743573d commit eb10f51

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

module/VuFind/src/VuFind/Controller/RecordController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ public function __construct(ServiceLocatorInterface $sm, Config $config)
7676
public function getThisAction(): ViewModel
7777
{
7878
$view = $this->createViewModel();
79-
80-
$items = $this->getILS()->getHolding($this->params()->fromRoute('id'));
79+
$id = $this->params()->fromRoute('id');
8180
$itemId = $this->params()->fromQuery('item_id');
81+
$items = $this->getILS()->getStatuses([$id]);
8282
$getThis = $this->getService(GetThisLoader::class);
8383
if (isset($view->driver)) {
8484
$getThis->setRecord($view->driver);
8585
}
86-
$getThis->setItems($items['holdings']);
86+
$getThis->setItems(current($items));
8787
$getThis->setDefaultItemId($itemId);
8888

8989
$view->getThis = $getThis;

0 commit comments

Comments
 (0)