Skip to content
Snippets Groups Projects
Commit e3d48f5a authored by André Lahmann's avatar André Lahmann
Browse files

* restored basic VuFind functionality if OpenURLs are disabled (refs #4826)

parent fdc9eb52
No related merge requests found
...@@ -334,29 +334,6 @@ class SolrAI extends SolrDefault ...@@ -334,29 +334,6 @@ class SolrAI extends SolrDefault
} }
} }
/**
* Return an associative array of URLs associated with this record (key = URL,
* value = description).
*
* @return array
* @access protected
*/
public function getURLs()
{
$rediUrl = $this->mainConfig->OpenURL->rediUrl;
if (isset($rediUrl)) {
$urls = array();
$url = sprintf($rediUrl, $this->getOpenURL());
$filter = function ($url) {
return array('url' => $url, 'desc' => (strlen($url) > 200) ?
$this->translate('full text') : $this->translate($url));
};
$urls[] = $url;
return array_map($filter, $urls);
}
return array();
}
/** /**
* Return the jtitle field of ai records * Return the jtitle field of ai records
* *
......
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