File tree 6 files changed +73
-23
lines changed
classes/migration/upgrade/v3_5_0
6 files changed +73
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16
16
* @brief Handle requests for submission API functions.
17
17
*
18
18
*/
19
+
19
20
$ urlParts = explode ('/ ' , trim ($ _SERVER ['PATH_INFO ' ], '/ ' ));
20
21
21
22
if (count ($ urlParts ) >= 6 && $ urlParts [5 ] == 'files ' ) {
22
23
return new \PKP \handler \APIHandler (new \PKP \API \v1 \submissions \PKPSubmissionFileController ());
23
- } elseif (in_array ('jats ' , $ urlParts )) {
24
+ }
25
+
26
+ if (in_array ('jats ' , $ urlParts )) {
24
27
return new \PKP \handler \APIHandler (new \PKP \API \v1 \jats \PKPJatsController ());
25
- } else {
26
- return new \PKP \handler \APIHandler (new \APP \API \v1 \submissions \SubmissionController ());
27
28
}
29
+
30
+ if (in_array ('suggestions ' , $ urlParts )) {
31
+ return new \PKP \handler \APIHandler (new PKP \API \v1 \reviewers \suggestions \ReviewerSuggestionController ());
32
+ }
33
+
34
+ return new \PKP \handler \APIHandler (new \APP \API \v1 \submissions \SubmissionController ());
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * @file classes/migration/upgrade/v3_5_0/I4787_ReviewSuggestions.php
5
+ *
6
+ * Copyright (c) 2024 Simon Fraser University
7
+ * Copyright (c) 2024 John Willinsky
8
+ * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
9
+ *
10
+ * @class I4787_ReviewSuggestions.php
11
+ *
12
+ * @brief Rename the review reminder settings name
13
+ *
14
+ */
15
+
16
+ namespace APP \migration \upgrade \v3_5_0 ;
17
+
18
+ class I4787_ReviewSuggestions extends \PKP \migration \upgrade \v3_5_0 \I4787_ReviewSuggestions
19
+ {
20
+ protected string $ CONTEXT_TABLE = 'journals ' ;
21
+ protected string $ CONTEXT_SETTINGS_TABLE = 'journal_settings ' ;
22
+ protected string $ CONTEXT_COLUMN = 'journal_id ' ;
23
+ }
Original file line number Diff line number Diff line change 35
35
<migration class =" PKP\migration\install\SubmissionFilesMigration" />
36
36
<migration class =" PKP\migration\install\LibraryFilesMigration" />
37
37
<migration class =" PKP\migration\install\ReviewsMigration" />
38
+ <migration class =" PKP\migration\install\ReviewerSuggestionsMigration" />
38
39
<migration class =" PKP\migration\install\TemporaryFilesMigration" />
39
40
<migration class =" PKP\migration\install\TombstoneMigration" />
40
41
<migration class =" PKP\migration\install\DoiMigration" />
Original file line number Diff line number Diff line change 383
383
"validation" : [
384
384
" nullable"
385
385
]
386
+ },
387
+ "reviewerSuggestionsHelp" : {
388
+ "type" : " string" ,
389
+ "multilingual" : true ,
390
+ "validation" : [
391
+ " nullable"
392
+ ],
393
+ "defaultLocaleKey" : " default.submission.step.reviewerSuggestions"
386
394
}
387
395
}
388
396
}
Original file line number Diff line number Diff line change 18
18
"validation" : [
19
19
" nullable"
20
20
]
21
+ },
22
+ "reviewerSuggestions" : {
23
+ "type" : " array" ,
24
+ "description" : " Information about suggested reviewers at the time of submission." ,
25
+ "readOnly" : true ,
26
+ "items" : {
27
+ "type" : " object" ,
28
+ "properties" : {
29
+ "id" : {
30
+ "type" : " integer"
31
+ },
32
+ "familyName" : {
33
+ "type" : " string"
34
+ },
35
+ "givenName" : {
36
+ "type" : " string"
37
+ },
38
+ "email" : {
39
+ "type" : " string"
40
+ },
41
+ "orcidId" : {
42
+ "type" : " string" ,
43
+ "validation" : [
44
+ " nullable"
45
+ ]
46
+ },
47
+ "suggestionReason" : {
48
+ "type" : " string"
49
+ }
50
+ }
51
+ }
21
52
}
22
53
}
23
54
}
You can’t perform that action at this time.
0 commit comments