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

refs #9172:

* changed code to comply with strict code standard
parent f683f211
No related merge requests found
......@@ -28,8 +28,7 @@
* @link http://vufind.org/wiki/vufind2:record_drivers Wiki
*/
namespace finc\RecordDriver;
use \VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface,
Zend\Log\LoggerAwareInterface as LoggerAwareInterface;
use \VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface;
/**
* Recorddriver for Solr records from the aggregated index of Leipzig University
......@@ -44,10 +43,9 @@ use \VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface,
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
*/
class SolrAI extends SolrDefault implements
HttpServiceAwareInterface, LoggerAwareInterface
HttpServiceAwareInterface
{
use \VuFindHttp\HttpServiceAwareTrait;
use \VuFind\Log\LoggerAwareTrait;
/**
* AI record
......@@ -375,10 +373,18 @@ class SolrAI extends SolrDefault implements
* Get the OpenURL parameters to represent this record (useful for the
* title attribute of a COinS span tag).
*
* @param bool $overrideSupportsOpenUrl Flag to override checking
* supportsOpenUrl() (default is false)
*
* @return string OpenURL parameters.
*/
public function getOpenURL()
public function getOpenUrl($overrideSupportsOpenUrl = false)
{
// stop here if this record does not support OpenURLs
if (!$overrideSupportsOpenUrl && !$this->supportsOpenUrl()) {
return false;
}
$genre = $this->getAIRecord('rft.genre');
// Set up parameters based on the format of the record:
switch ($genre) {
......
......@@ -29,8 +29,7 @@
*/
namespace finc\RecordDriver;
use VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface,
Zend\Log\LoggerAwareInterface as LoggerAwareInterface;
use VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface;
/**
* Model for PDA MARC records in Solr.
......@@ -43,10 +42,9 @@ use VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface,
* @link http://vufind.org/wiki/vufind2:record_drivers Wiki
*/
class SolrMarcFincPDA extends SolrMarcFinc implements
HttpServiceAwareInterface, LoggerAwareInterface
HttpServiceAwareInterface
{
use \VuFindHttp\HttpServiceAwareTrait;
use \VuFind\Log\LoggerAwareTrait;
/**
* Get the price in Euro for the record.
......
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