Skip to content
Snippets Groups Projects
Commit e48d25ca authored by Dorian Merz's avatar Dorian Merz
Browse files

refs #14339

* uses link to BOSS3 system for ILL check on acquisitionpda.phtml
* allows search for multiple ISSNs/ISBNs
parent a134bde5
No related merge requests found
...@@ -62,5 +62,26 @@ class InterlibraryLoanLink extends AbstractHelper ...@@ -62,5 +62,26 @@ class InterlibraryLoanLink extends AbstractHelper
} }
return $url_default; return $url_default;
} }
public function getBossLink($driver) {
$url = "https://fernleihe.boss.bsz-bw.de/Search/Results?isil[]=DE-15&hiddenFilters[]=-consortium%3AFL";
$signifiers = [];
foreach (['issn', 'isbn'] as $signifier) {
$method = "get" . strtoupper($signifier) . "s";
$$signifier = $driver->$method();
if (!empty($$signifier)) {
$signifiers += $$signifier;
}
}
if (!empty($signifiers)) {
$url .= "&join=OR";
$i = 0;
while ($i < count($signifiers)) {
$url .= "&type$i"."[]=ISN&lookfor$i"."[]=".preg_filter('/[^0-9]/','',$signifiers[$i]);
$i++;
}
}
return $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