$openUrl = $this->openUrl($this->driver, 'record');
$openUrlActive = $openUrl->isActive();
// Account for replace_other_urls setting
$urls = $this->record($this->driver)->getLinkDetails($openUrlActive);
$title = $this->driver->getMainTitle() ;
$id = $this->driver->getUniqueID();
$data = $this->driver->getRawData();
$license = $data['rightsuri'];
$voevzlink = is_array($data['voevzlink']) ? $data['voevzlink'][0] : $data['voevzlink'];
$parts = explode("/", $license[0]);
$rightsImage = $rightslink = '';
if (isset($parts) && count($parts) > 1) {
$rightsImage = "/vufind/themes/bibb/images/".$parts[4].".png";
$rightsLink = $license[0];
}
if (strlen($rightsLink == 0)) {
$right = $data['license'][0];
if (strcmp($right,"Urheberrecht") == 0 || strcmp($right,"Deutsches Urheberrecht") == 0) {
$rightsLink = "http://www.gesetze-im-internet.de/urhg";
$rightsImage = "/vufind/themes/bibb_new/images/urheberrechtDe.png";
}
}
$pos = strrpos($voevzlink, "(");
if ($pos !== false)
$voevzlink = substr($voevzlink,0, $pos);
// if ($title) $title = trim(strstr($title,":", true));
?>
if (!empty($urls) || $openUrlActive): ?>
$extend =''; ?>
if (isset($data['extend'])) : ?>
$extend = "(" .$data['extend'][0] .")"; ?>
endif; ?>
foreach ($urls as $current): ?>
if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
continue; ?>
if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
continue; ?>
if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
if (isset ($voevzlink)) : ?> $current['url'] = $voevzlink; ?>
$current['desc'] = "Volltext"; ?>
if (($start = strrpos($current['url'], "(")) !== false) : ?>
$current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
$current['extend'] = $extend ; ?>
//Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
if (($start = strrpos($current['url'], "(")) !== false) : ?>
$current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
$current['url'] = trim(substr($current['url'],0, $start)); ?>
endif; ?>
if (($start = strrpos($current['url'], "[")) !== false) : ?>
$current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
$current['url'] = trim(substr($current['url'],0, $start)); ?>
endif; ?>
if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
$current['url'] = "https://" .$current['url']; ?>
endif; ?>
if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
$current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
$current['desc'] = "DOI"; ?>
endif; ?>
if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
$current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
$current['desc'] = "DOI"; ?>
endif; ?>
if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
$current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
$current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
endif; ?>
if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
$current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
$current['desc'] = "URN"; ?>
endif; ?>
=$this->escapeHtml($current['desc'])?> = $current['extend']; ?>
if (strlen($rightsImage)) : ?>
$rightsImage = ''; ?>
endif; ?>
"> =$this->transEsc('Report broken link')?>
endforeach; ?>
if ($openUrlActive): ?>
=$openUrl->renderTemplate()?>
endif; ?>
endif; ?>