Skip to content

Commit

Permalink
pkp/pkp-lib#2072 Working prototype of versioning based on new publica…
Browse files Browse the repository at this point in the history
…tion entity

This commit includes all of the initial work done to support versioning based on a split between submissions and publications. All submission data related to publication, such as title, abstract, citations, authors and galleys, has been moved to a new publication entity.

Submissions have a "one to many" relationship to Publications. Each Submission may have one or more Publications attached to it. Each Publication is treated as a new version. Published version data can not be modified.

- New publication entity split from submissions
- New API endpoints for publications
- Workflow UI changes to support versions (publications)
- Pre-publication validation checks
- New STATUS_SCHEDULED for publications scheduled for publication in a future issue
- Deprecated many methods on the Submission object
- Upgrade scripts written from 3.1.x.
- Tests updated to work, except for issue import.

Some code is commented out or has not been updated yet. Progress on remaining support for versioning will be tracked in Github.

See: https://github.com/pkp/pkp-lib/projects/15
  • Loading branch information
NateWr committed Sep 5, 2019
1 parent 1c4f27c commit 88aba9a
Show file tree
Hide file tree
Showing 222 changed files with 2,960 additions and 5,689 deletions.
326 changes: 0 additions & 326 deletions api/v1/submissions/SubmissionHandler.inc.php

This file was deleted.

5 changes: 2 additions & 3 deletions api/v1/submissions/index.php
Expand Up @@ -15,6 +15,5 @@
* @brief Handle requests for submission API functions.
*
*/

import('api.v1.submissions.SubmissionHandler');
return new SubmissionHandler();
import('lib.pkp.api.v1.submissions.PKPSubmissionHandler');
return new PKPSubmissionHandler();
17 changes: 17 additions & 0 deletions api/v1/vocabs/index.php
@@ -0,0 +1,17 @@
<?php
/**
* @defgroup api_v1_vocabs Controlled vocabulary API requests
*/

/**
* @file api/v1/vocabs/index.php
*
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @ingroup api_v1_vocabs
* @brief Handle API requests for vocabs.
*/
import('lib.pkp.api.v1.vocabs.PKPVocabHandler');
return new PKPVocabHandler();

0 comments on commit 88aba9a

Please sign in to comment.