Skip to content
Snippets Groups Projects
Commit b030d89a authored by Gregor Gawol's avatar Gregor Gawol
Browse files

* fixed holdings array bug * edited output

parent 7e56b074
Branches
Tags
No related merge requests found
<!-- boss-module: ajax - boss -->
<div>
<? if ($this->isISIL): ?>
<?=$this->transEsc('Exemplar in Ihrer Heimatbibliothek vorhanden.');?>Das ist ein Test.
<?=$this->transEsc('boss_true')?>
<?php if (!empty($this->callnumber)): ?>
TEST
<?=$this->transEsc('Callnumber')?>: <?=implode(', ', $this->callnumber)?>
<?php endif; ?>
<? else: ?>
<?=$this->transEsc('Nicht in Ihrer vorhanden.');?>
<?=$this->transEsc('boss_false')?>
<? endif; ?><br />
<a href="<?=$this->url?>" target="_blank"><?=$this->transEsc('Mehr Informationen');?></a>
<a href="<?=$this->url?>" target="_blank"><?=$this->transEsc('More Information')?></a>
</div>
<!-- boss-module: ajax - boss - END -->
\ No newline at end of file
......@@ -163,8 +163,8 @@ class GetBoss extends \VuFind\AjaxHandler\AbstractBase
$inArray = in_array($network, $networks);
$isbns = $driver->tryMethod('getISBNs');
$isbns = count($isbns) > 0 ? $isbns[0] : '';
print_r($results);
$callnumber = $this->getCallnumbers($boss, $results['data']);
$view = [
'isISIL' => ($inArray ?
$this->isISIL($isilCallNumber['isils'], $boss) : false),
......
......@@ -25,7 +25,7 @@ namespace finc\Boss\Client;
class Root
{
/**
* @var Holding[]
* @var Holding[][]
*/
protected $holdings = [];
/**
......@@ -38,7 +38,7 @@ class Root
protected $numfound = 0;
/**
* @param Holding $holding
* @param Holding[] $holding
*/
public function addHolding(Holding $holding): void
{
......@@ -46,7 +46,7 @@ class Root
}
/**
* @return Holding[]
* @return Holding[][]
*/
public function getHoldings(): array
{
......@@ -54,7 +54,7 @@ class Root
}
/**
* @param Holding[] $holdings
* @param Holding[][] $holdings
*/
public function setHoldings(array $holdings): void
{
......
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