File Manager
Upload
Current Directory: /home/lartcid/public_html/journal.lartc.id
[Back]
..
[Open]
Hapus
Rename
.htaccess
[Edit]
Hapus
Rename
.well-known
[Open]
Hapus
Rename
README.md
[Edit]
Hapus
Rename
api
[Open]
Hapus
Rename
cache
[Open]
Hapus
Rename
cgi-bin
[Open]
Hapus
Rename
classes
[Open]
Hapus
Rename
config.TEMPLATE.inc.php
[Edit]
Hapus
Rename
config.inc.php
[Edit]
Hapus
Rename
controllers
[Open]
Hapus
Rename
cypress.json
[Edit]
Hapus
Rename
dbscripts
[Open]
Hapus
Rename
docs
[Open]
Hapus
Rename
error_log
[Edit]
Hapus
Rename
favicon.ico
[Edit]
Hapus
Rename
index.php
[Edit]
Hapus
Rename
js
[Open]
Hapus
Rename
lib
[Open]
Hapus
Rename
locale
[Open]
Hapus
Rename
mini.php
[Edit]
Hapus
Rename
pages
[Open]
Hapus
Rename
php.ini
[Edit]
Hapus
Rename
plugins
[Open]
Hapus
Rename
public
[Open]
Hapus
Rename
registry
[Open]
Hapus
Rename
scheduledTaskLogs
[Open]
Hapus
Rename
schemas
[Open]
Hapus
Rename
styles
[Open]
Hapus
Rename
templates
[Open]
Hapus
Rename
tools
[Open]
Hapus
Rename
Edit File
<?php /** * @file components/listPanels/SubmissionsListPanel.php * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2000-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class SubmissionsListPanel * * @ingroup classes_components_listPanels * * @brief Instantiates and manages a UI component to list submissions. */ namespace APP\components\listPanels; use APP\components\forms\FieldSelectIssues; use APP\core\Application; use APP\facades\Repo; use PKP\components\forms\FieldAutosuggestPreset; use PKP\components\listPanels\PKPSubmissionsListPanel; class SubmissionsListPanel extends PKPSubmissionsListPanel { /** @var bool Whether to show inactive section filters */ public $includeActiveSectionFiltersOnly = false; /** @var bool Whether to show issue filters */ public $includeIssuesFilter = false; /** * @copydoc PKPSubmissionsListPanel::getConfig() */ public function getConfig() { $config = parent::getConfig(); $request = Application::get()->getRequest(); if ($request->getContext()) { $config['filters'][] = $this->getSectionFilters($this->includeActiveSectionFiltersOnly); } if ($this->includeIssuesFilter) { $issueAutosuggestField = new FieldSelectIssues('issueIds', [ 'label' => __('issue.issues'), 'value' => [], 'apiUrl' => $request->getDispatcher()->url($request, Application::ROUTE_API, $request->getContext()->getPath(), 'issues'), ]); $config['filters'][] = [ 'filters' => [ [ 'title' => __('issue.issues'), 'param' => 'issueIds', 'value' => [], 'filterType' => 'pkp-filter-autosuggest', 'component' => 'field-select-issues', 'autosuggestProps' => $issueAutosuggestField->getConfig(), ] ] ]; } return $config; } /** * Get an array of workflow stages supported by the current app * * @return array */ public function getWorkflowStages() { return [ [ 'param' => 'stageIds', 'value' => WORKFLOW_STAGE_ID_SUBMISSION, 'title' => __('manager.publication.submissionStage'), ], [ 'param' => 'stageIds', 'value' => WORKFLOW_STAGE_ID_EXTERNAL_REVIEW, 'title' => __('manager.publication.reviewStage'), ], [ 'param' => 'stageIds', 'value' => WORKFLOW_STAGE_ID_EDITING, 'title' => __('submission.copyediting'), ], [ 'param' => 'stageIds', 'value' => WORKFLOW_STAGE_ID_PRODUCTION, 'title' => __('manager.publication.productionStage'), ], ]; } /** * Compile the sections for passing as filters * * @param bool $excludeInactive show inactive section filters or not * * @return array */ public function getSectionFilters($excludeInactive = false) { $request = Application::get()->getRequest(); $context = $request->getContext(); $sections = Repo::section()->getSectionList($context->getId(), $excludeInactive); // Use an autosuggest field if the list of submissions is too long if (count($sections) > 5) { $autosuggestField = new FieldAutosuggestPreset('sectionIds', [ 'label' => __('section.sections'), 'value' => [], 'options' => array_map(function ($section) { return [ 'value' => (int) $section['id'], 'label' => $section['title'], ]; }, $sections), ]); return [ 'filters' => [ [ 'title' => __('section.sections'), 'param' => 'sectionIds', 'filterType' => 'pkp-filter-autosuggest', 'component' => 'field-autosuggest-preset', 'value' => [], 'autosuggestProps' => $autosuggestField->getConfig(), ] ], ]; } return [ 'heading' => __('section.sections'), 'filters' => array_map(function ($section) { return [ 'param' => 'sectionIds', 'value' => (int) $section['id'], 'title' => $section['title'], ]; }, $sections), ]; } }
Simpan