From 3fb22f511d97a6f8479dc40867c7f97b79e88a93 Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Thu, 19 Nov 2020 13:31:19 +0100 Subject: [PATCH] refs #18513 [fid_bbi] re-order job_titles in forms * admin-edit-form * user-create-form * uses order 0,2,3,1 --- fid_bbi/config/vufind/fid.ini | 5 ++- module/fid_bbi/config/admin-edit-form.php | 46 ----------------------- module/fid_bbi/config/module.config.php | 1 - 3 files changed, 4 insertions(+), 48 deletions(-) delete mode 100644 module/fid_bbi/config/admin-edit-form.php diff --git a/fid_bbi/config/vufind/fid.ini b/fid_bbi/config/vufind/fid.ini index 4e926511daa..fe106d21bc7 100644 --- a/fid_bbi/config/vufind/fid.ini +++ b/fid_bbi/config/vufind/fid.ini @@ -9,4 +9,7 @@ baseUrl = https://fid-api.finc.info/staging/bbi permission_options[] = 'basic_access' permission_options[] = 'limited_access' permission_options[] = 'extended_access' -permission_options[] = 'full_access' \ No newline at end of file +permission_options[] = 'full_access' + +[Forms] +jobTitleOptions = "0,2,3,1" \ No newline at end of file diff --git a/module/fid_bbi/config/admin-edit-form.php b/module/fid_bbi/config/admin-edit-form.php deleted file mode 100644 index bd0dedad165..00000000000 --- a/module/fid_bbi/config/admin-edit-form.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php -/** - * Copyright (C) 2020 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 Sebastian Kehr <kehr@ub.uni-leipzig.de> - * @license http://opensource.org/licenses/gpl-2.0.php GNU GPLv2 - */ - -use fid\Hydrator\UserHydrator; -use fid\InputFilter\RootAwareBaseInputFilter; -use Zend\Form\Element\Collection; -use Zend\Form\Element\Hidden; -use Zend\Form\Element\Radio; -use Zend\Form\Element\Select; -use Zend\Form\Element\Submit; -use Zend\Form\Element\Text; -use Zend\Form\Fieldset; -use Zend\Form\InputFilterProviderFieldset; - -return [ - 'elements' => [ - 'job_title' => [ - 'spec' => [ - 'options' => [ - 'value_options' => [ - 'job_title_2', - 'job_title_3', - ], - ], - ], - ], - ], -]; diff --git a/module/fid_bbi/config/module.config.php b/module/fid_bbi/config/module.config.php index ac6059af005..d944d7f812a 100644 --- a/module/fid_bbi/config/module.config.php +++ b/module/fid_bbi/config/module.config.php @@ -33,7 +33,6 @@ $config = [ 'user-init-form' => require 'user-init-form.php', 'user-create-form' => require 'user-create-form.php', 'user-update-form' => require 'user-update-form.php', - 'admin-edit-form' => require 'admin-edit-form.php', ], 'controllers' => [ 'factories' => [ -- GitLab