Skip to content
Snippets Groups Projects
Commit 0a2e3e69 authored by Alexander Purr's avatar Alexander Purr Committed by Mathias Maaß
Browse files

refs #26301 [fid_adlr]

* add missing record type decider on formatter spec
** since usage of solrcloud SolrIS (extends SolrAI) is used automatically instead of SolrAI
* make AI used traits available for (temporarily used?) SolrIS
** add adrl/SolrIS Driver inherits from finc/SolrIS
......@@ -112,13 +112,16 @@ $config = [
'factories' => [
'fid_adlr\RecordDriver\SolrDefault' => 'VuFind\RecordDriver\SolrDefaultFactory',
'fid_adlr\RecordDriver\SolrMarcFinc' => 'VuFind\RecordDriver\SolrDefaultFactory',
'fid_adlr\RecordDriver\SolrAI' => \finc\RecordDriver\SolrAIFactory::class
'fid_adlr\RecordDriver\SolrAI' => \finc\RecordDriver\SolrAIFactory::class,
\fid_adlr\RecordDriver\SolrIS::class =>
\VuFind\RecordDriver\AbstractBaseFactory::class,
],
'aliases' => [
'solrai' => 'fid_adlr\RecordDriver\SolrAI',
'VuFind\RecordDriver\SolrDefault' => 'fid_adlr\RecordDriver\SolrDefault',
'solrmarcfinc' => 'fid_adlr\RecordDriver\SolrMarcFinc',
'solrdefault' => 'fid_adlr\RecordDriver\SolrDefault'
'solrdefault' => 'fid_adlr\RecordDriver\SolrDefault',
'solris' => \fid_adlr\RecordDriver\SolrIS::class,
],
],
'recordtab' => [
......
<?php
/**
* Fid adlr specific model for Solr records based on the stock
*
* PHP version 8
*
* Copyright (C) Leipzig University Library 2022.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* @category VuFind
* @package RecordDrivers
* @author Alexander Purr <purr@ub.uni-leipzig.de>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org/wiki/vufind2:record_drivers Wiki
*/
namespace fid_adlr\RecordDriver;
use finc\RecordDriver\SolrIS as SolrISFincBase;
/**
* Extend finc to implement result grouping package.
*
* @category VuFind
* @package RecordDrivers
* @author Alexander Purr <purr@ub.uni-leipzig.de>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link http://vufind.org/wiki/vufind2:record_drivers Wiki
*/
class SolrIS extends SolrISFincBase
{
use \finc\Controller\CustomTraits\GviRecordTrait;
use \VuFindResultsGrouping\RecordDriver\SubrecordTrait;
}
......@@ -69,6 +69,7 @@ class Record extends \finc\View\Helper\Root\Record
$retval = 'core-marc';
break;
case 'SolrAI':
case 'SolrIS':
$retval = 'core-ai';
break;
default:
......
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