52 lines
1.6 KiB
PHP
52 lines
1.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* BIBBNeo Module Configuration
|
|
*
|
|
* This module provides:
|
|
* - SolrDspace RecordDriver for DSpace records (recordtype = "dspace")
|
|
* - Extended SolrMarc RecordDriver with BIBB-specific fields
|
|
* - BIBB citation formats
|
|
*
|
|
* @category BIBBNeo
|
|
* @package Module
|
|
*/
|
|
|
|
namespace BIBBNeo\Module\Configuration;
|
|
|
|
$config = [
|
|
'service_manager' => [
|
|
'allow_override' => true,
|
|
],
|
|
|
|
'vufind' => [
|
|
'plugin_managers' => [
|
|
// Register custom RecordDrivers
|
|
'recorddriver' => [
|
|
'factories' => [
|
|
// DSpace RecordDriver
|
|
\BIBBNeo\RecordDriver\SolrDspace::class =>
|
|
\BIBBNeo\RecordDriver\SolrDspaceFactory::class,
|
|
// Extended BIBB MARC RecordDriver
|
|
\BIBBNeo\RecordDriver\SolrMarc::class =>
|
|
\BIBBNeo\RecordDriver\SolrMarcFactory::class,
|
|
],
|
|
'aliases' => [
|
|
// VuFind uses recordtype field to resolve driver:
|
|
// recordtype "dspace" → SolrDspace driver
|
|
'SolrDspace' => \BIBBNeo\RecordDriver\SolrDspace::class,
|
|
// Override default SolrMarc with BIBB version
|
|
\VuFind\RecordDriver\SolrMarc::class =>
|
|
\BIBBNeo\RecordDriver\SolrMarc::class,
|
|
],
|
|
],
|
|
],
|
|
|
|
// Disable SimilarItemsCarousel (previously done via module.config.php hack)
|
|
// Note: In VuFind 10.2 this can also be configured via config.ini
|
|
// [Record] -> tabs setting. Keeping it here for explicitness.
|
|
],
|
|
];
|
|
|
|
return $config;
|