Skip to content

Instantly share code, notes, and snippets.

View ajnyga's full-sized avatar
🖖

Antti-Jussi Nygård ajnyga

🖖
View GitHub Profile

OJS to OPS

Naming conventions

Name of the Application: Open Preprint Server (OPS) / Preprint Server (PPS)

pkp-lib OMP OJS OPS
Site Site Site Site
Context Press Journal Server
Submission Monograph Article Preprint
<?php
$botRegexps = array_map("filter", file("lib/pkp/plugins/generic/usageStats/lib/counterBots/generated/COUNTER_Robots_list.txt"));
print_r($botRegexps);
function filter($regexp)
{
$delimiter = '/';
<?php
$botRegexps = array_filter(file("lib/pkp/plugins/generic/usageStats/lib/counterBots/generated/COUNTER_Robots_list.txt"), "filter");
print_r($botRegexps);
function filter(&$regexp)
{
$delimiter = '/';
/**
* Update assoc_id for assoc_type 531
* @return boolean True indicates success.
*/
function updateSuppFileMetrics() {
$submissionFileDao = DAORegistry::getDAO('SubmissionFileDAO');
$metricsDao = DAORegistry::getDAO('MetricsDAO');
# Copy 531 assoc_type data to temp table
<?php
/**
* @file controllers/grid/users/reviewer/AuthorReviewerGridHandler.inc.php
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2000-2018 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class AuthorReviewerGridHandler
<?php
/**
* @file plugins/generic/myMetaplugin/MyMetapluginPlugin.inc.php
*
* Copyright (c) 2014-2017 Simon Fraser University
* Copyright (c) 2003-2017 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class MyMetapluginPlugin
<?php
/**
* @file classes/task/ReviewReminder.inc.php
*
* Copyright (c) 2013-2017 Simon Fraser University
* Copyright (c) 2003-2017 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class ReviewReminder
function setFileName() {
$journalDao = DAORegistry::getDAO('JournalDAO');
$submissionDao = DAORegistry::getDAO('ArticleDAO');
$submissionFileDao = DAORegistry::getDAO('SubmissionFileDAO');
$contexts = $journalDao->getAll();
while ($context = $contexts->next()) {
$submissions = $submissionDao->getByContextId($context->getId());
while ($submission = $submissions->next()) {
$submissionFiles = $submissionFileDao->getBySubmissionId($submission->getId());
{**
* controllers/modals/submissionMetadata/form/issueEntrySubmissionReviewForm.tpl
*
* Copyright (c) 2014-2016 Simon Fraser University Library
* Copyright (c) 2003-2016 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Display a submission's issue entry form.
*
*}