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