Skip to content
Snippets Groups Projects
Commit 8c6cd433 authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Alma: Return 'reserve' attribute for item statuses. Remove duplicate line. (#1421)

parent edf3861f
Branches
Tags
No related merge requests found
......@@ -1577,9 +1577,8 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface
$tmpl = [
'id' => (string)$bib->mms_id,
'source' => 'Solr',
'callnumber' => isset($bib->isbn)
? (string)$bib->isbn
: ''
'callnumber' => (string)($bib->isbn ?? ''),
'reserve' => 'N',
];
if ($record = $marc->next()) {
// Physical
......@@ -1599,7 +1598,6 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface
$item = $tmpl;
$item['availability'] = strtolower($avail) === 'available';
$item['location'] = $field->getSubfield('m')->getData();
$item['location'] = $field->getSubfield('m')->getData();
$url = $field->getSubfield('u')->getData();
if (preg_match('/^https?:\/\//', $url)) {
$item['locationhref'] = $url;
......
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