Skip to content
Snippets Groups Projects
Commit ddd7929f authored by Alexander Purr's avatar Alexander Purr Committed by Dorian Merz
Browse files

refs #16534 [fid_adlr] add recordController for using record citation as order label

parent 355f6de5
No related merge requests found
......@@ -20,11 +20,14 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU GPLv2
*/
use fid\Controller\RecordControllerDelegatorFactory;
use fid\FormModel\PasswordChangeModel;
use fid_adlr\Controller\FeedbackController;
use fid_adlr\Controller\MyResearchController;
use fid_adlr\Controller\MyResearchControllerFactory;
use fid_adlr\Controller\RecordController;
use fid_adlr\Helper\Rss;
use fid_adlr\Controller\FeedbackController;
use fid\FormModel\PasswordChangeModel;
use VuFind\Controller\AbstractBaseWithConfigFactory;
use Zend\Router\Http\Regex;
use Zend\ServiceManager\Factory\InvokableFactory;
......@@ -39,11 +42,18 @@ $config = [
'factories' => [
MyResearchController::class => MyResearchControllerFactory::class,
FeedbackController::class => 'VuFind\Controller\AbstractBaseFactory',
RecordController::class => AbstractBaseWithConfigFactory::class,
],
'aliases' => [
'my-research' => MyResearchController::class,
'feedback' => FeedbackController::class,
'Feedback' => FeedbackController::class
'Feedback' => FeedbackController::class,
\VuFind\Controller\RecordController::class => RecordController::class,
],
'delegators' => [
RecordController::class => [
RecordControllerDelegatorFactory::class,
],
],
],
'view_helpers' => [
......
<?php
/**
* Copyright (C) 2019 Leipzig University Library
*
* 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.
*
* @author Alexander Purr <purr@ub.uni-leipzig.de>
* @license http://opensource.org/licenses/gpl-2.0.php GNU GPLv2
*/
namespace fid_adlr\Controller;
class RecordController extends \fid\Controller\RecordController
{
public function getOrderLabel($driver)
{
return $this->getRecordCitation($driver);
}
}
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