Skip to content

Commit

Permalink
Adjusted marc get all images to only return urls, if 856 i2 is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha committed Sep 20, 2024
1 parent bed5e69 commit 5a5cc85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/Finna/src/Finna/RecordDriver/SolrMarc.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ public function getAllImages($language = 'fi', $includePdf = true)

$urls = [];
foreach ($this->getMarcReader()->getFields('856') as $url) {
if (!in_array($url['i2'], [' ', 0])) {
continue;
}
$address = $this->getSubfield($url, 'u');
if (!$address) {
continue;
Expand Down

0 comments on commit 5a5cc85

Please sign in to comment.