-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1728 from bozana/9666
pkp/pkp-lib#9666 COUNTER R5 TSV reports
- Loading branch information
Showing
8 changed files
with
580 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* @file classes/components/form/counter/CounterReportForm.php | ||
* | ||
* Copyright (c) 2024 Simon Fraser University | ||
* Copyright (c) 2024 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class CounterReportForm | ||
* | ||
* @ingroup classes_controllers_form | ||
* | ||
* @brief A form for setting a counter report | ||
*/ | ||
|
||
namespace APP\components\forms\counter; | ||
|
||
use APP\sushi\PR; | ||
use APP\sushi\PR_P1; | ||
use APP\sushi\TR; | ||
use APP\sushi\TR_B3; | ||
use PKP\components\forms\counter\PKPCounterReportForm; | ||
|
||
class CounterReportForm extends PKPCounterReportForm | ||
{ | ||
public function setReportFields(): void | ||
{ | ||
$formFieldsPR = PR::getReportSettingsFormFields(); | ||
$this->reportFields['PR'] = array_map(function ($field) { | ||
$field->groupId = 'default'; | ||
return $field; | ||
}, $formFieldsPR); | ||
|
||
$formFieldsPR_P1 = PR_P1::getReportSettingsFormFields(); | ||
$this->reportFields['PR_P1'] = array_map(function ($field) { | ||
$field->groupId = 'default'; | ||
return $field; | ||
}, $formFieldsPR_P1); | ||
|
||
$formFieldsTR = TR::getReportSettingsFormFields(); | ||
$this->reportFields['TR'] = array_map(function ($field) { | ||
$field->groupId = 'default'; | ||
return $field; | ||
}, $formFieldsTR); | ||
|
||
$formFieldsTR_B3 = TR_B3::getReportSettingsFormFields(); | ||
$this->reportFields['TR_B3'] = array_map(function ($field) { | ||
$field->groupId = 'default'; | ||
return $field; | ||
}, $formFieldsTR_B3); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.