diff --git a/module/VuFind/src/VuFind/ILS/Driver/Alma.php b/module/VuFind/src/VuFind/ILS/Driver/Alma.php index e13039499e9050f977a4c378eab29fc40b74578a..e0f3348d5cbeeedb5355f0df2e7ad2d5928b181f 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Alma.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Alma.php @@ -1612,7 +1612,7 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface $tmpl = [ 'id' => (string)$bib->mms_id, 'source' => 'Solr', - 'callnumber' => (string)($bib->isbn ?? ''), + 'callnumber' => '', 'reserve' => 'N', ]; if ($record = $marc->next()) { @@ -1623,6 +1623,7 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface $item = $tmpl; $item['availability'] = strtolower($avail) === 'available'; $item['location'] = $this->getMarcSubfield($field, 'c'); + $item['callnumber'] = $this->getMarcSubfield($field, 'd'); $status[] = $item; } // Electronic @@ -1632,11 +1633,14 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface $item = $tmpl; $item['availability'] = strtolower($avail) === 'available'; $item['location'] = $this->getMarcSubfield($field, 'm'); + // Using subfield 't' ('Interface name') as callnumber + $item['callnumber'] = $this->getMarcSubfield($field, 't'); $url = $this->getMarcSubfield($field, 'u'); if (preg_match('/^https?:\/\//', $url)) { $item['locationhref'] = $url; } $item['status'] = $this->getMarcSubfield($field, 's'); + $item['callnumber'] = $this->getMarcSubfield($field, 'd'); $status[] = $item; } // Digital @@ -1655,6 +1659,8 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface unset($item['callnumber']); $item['availability'] = true; $item['location'] = $this->getMarcSubfield($field, 'e'); + // Using subfield 'd' ('Repository Name') as callnumber + $item['callnumber'] = $this->getMarcSubfield($field, 'd'); if ($deliveryUrl) { $item['locationhref'] = str_replace( '%%id%%',