VuFind API Documentation

MoreByAuthorSolr
in package
implements RelatedInterface

Related Records: Solr-based "more by author"

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Interfaces, Classes, Traits and Enums

RelatedInterface
Related Records Interface

Table of Contents

$author  : string
Author being searched
$maxRecommendations  : int
Maximum number of titles to suggest
$results  : array<string|int, mixed>
Similar records
$searchService  : Service
__construct()  : mixed
Constructor
getName()  : string
Get name of author being searched for.
getResults()  : array<string|int, mixed>
Get an array of Record Driver objects representing items similar to the one passed to the constructor.
init()  : void
Establishes base settings for making recommendations.

Properties

$maxRecommendations

Maximum number of titles to suggest

protected int $maxRecommendations = 5

$results

Similar records

protected array<string|int, mixed> $results = []

Methods

__construct()

Constructor

public __construct(Service $searchService) : mixed
Parameters
$searchService : Service

Search service

Return values
mixed

getName()

Get name of author being searched for.

public getName() : string
Return values
string

getResults()

Get an array of Record Driver objects representing items similar to the one passed to the constructor.

public getResults() : array<string|int, mixed>
Return values
array<string|int, mixed>

init()

Establishes base settings for making recommendations.

public init(string $settings, AbstractBase $driver) : void
Parameters
$settings : string

Settings from config.ini

$driver : AbstractBase

Record driver object

Return values
void

Search results