Skip to content
Snippets Groups Projects
Commit 92977b46 authored by Gregor Gawol's avatar Gregor Gawol Committed by André Lahmann
Browse files

refs #9297:

* implemented changes of #6109
parent deab6560
No related merge requests found
......@@ -115,6 +115,9 @@ trait SolrMarcFincTrait
if ($urls) {
foreach ($urls as $url) {
$isil = $url->getSubfield('9');
$indicator1 = $url->getIndicator('1');
$indicator2 = $url->getIndicator('2');
$isISIL = false;
......@@ -145,8 +148,14 @@ trait SolrMarcFincTrait
$tmpArr = array_unique($tmpArr);
$desc = implode(', ', $tmpArr);
// If no description take url as description
// For 856[40] url denoting resource itself use "Online Access"/"Online-Zugang" #6109
if (empty($desc)) {
$desc = $address;
if ($indicator1 == 4 && $indicator2 == 0 && preg_match('!https?://.*?doi.org/!', $address)) {
$desc = "Online Access";
} else {
$desc = $address;
}
}
// If url doesn't exist as key so far write to return variable.
......
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