public function primoLink() { $queryTerm = new QueryTerm(); $queryTerm->set('facet_frbrgroupid', QueryTerm::EXACT, $this->id); return 'http://' . $this->deeplinkProvider->view($this->primoInst)->search($queryTerm, 'bibsys_ils', 'library_catalogue'); }
public function getGroup($groupId, $options = []) { // Get all results to avoid pagination $options['limit'] = 50; // Sort by date $options['sort'] = 'date'; $queryObj = $this->newQuery($options); $queryTerm = new QueryTerm(); $queryTerm->set('facet_frbrgroupid', QueryTerm::EXACT, $groupId); $queryObj->addTerm($queryTerm); $res = $this->processQuery($queryObj, true, true, $options); if ($options->get('raw') == 'true') { return $res; } return ['source' => $res['source'], 'error' => null, 'result' => ['type' => 'group', 'id' => $groupId, 'records' => $res['results']]]; }