Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/stable-3_4_0' into stable-3_3_0
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Aug 16, 2024
2 parents 99fe1b0 + 6121fcb commit 0ae9f63
Show file tree
Hide file tree
Showing 4,258 changed files with 549,968 additions and 383,162 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 8 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ root = true

[*]
charset = utf-8
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.php]
indent_style = space
indent_size = 4

[*.{js,vue,json,less}]
indent_style = tab

46 changes: 46 additions & 0 deletions .github/workflows/stable-3_4_0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
push:
branches:
- '*'
pull_request:
branches:
['stable-3_4_0']

name: ojs
jobs:
ojs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-version: 8.1
validate: 'validate'
- php-version: 8.1
database: pgsql
test: 'test'
- php-version: 8.1
database: mariadb
test: 'test'
- php-version: 8.1
database: mysql
test: 'test'
upgrade: 'upgrade'
upgrade_test: '3.1.0,3.1.1-2,3.1.2,stable-3_2_0,stable-3_2_1,stable-3_3_0'
- php-version: 8.2
database: mysql
test: 'test'
- php-version: 8.2
database: pgsql
test: 'test'



name: ojs
steps:
- uses: pkp/pkp-github-actions@v1
with:
node_version: 16
dataset_branch: 'stable-3_4_0'
DATASETS_ACCESS_KEY: ${{secrets.DATASETS_ACCESS_KEY}}
DEBUG_IN_TMATE: false
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ temp
.project
.buildpath
.settings
.vscode
.DS_Store
.php_cs.cache
.php-cs-fixer.cache
node_modules
js/build.js
js/hot-updates
styles/build.css
cypress.env.json
cypress/logs/
cypress/screenshots/
cypress/screenshots/
.phpunit.result.cache
43 changes: 10 additions & 33 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "lib/pkp"]
path = lib/pkp
url = https://github.com/pkp/pkp-lib.git
[submodule "plugins/generic/usageStats"]
path = plugins/generic/usageStats
url = https://github.com/pkp/usageStats.git
[submodule "plugins/generic/customBlockManager"]
path = plugins/generic/customBlockManager
url = https://github.com/pkp/customBlockManager.git
Expand Down Expand Up @@ -43,36 +40,16 @@
url = https://github.com/pkp/citationStyleLanguage.git
[submodule "plugins/reports/counter/classes/COUNTER"]
path = plugins/reports/counter/classes/COUNTER
url = https://github.com/ulsdevteam/COUNTER.git
[submodule "plugins/pubIds/zenon"]
path = plugins/pubIds/zenon
url = https://github.com/dainst/ojs-zenon-plugin
branch = ojs3
[submodule "plugins/themes/idaitheme"]
path = plugins/themes/idaitheme
url = https://github.com/dainst/ojs3_theme
[submodule "plugins/generic/cilantro"]
path = plugins/generic/cilantro
url = https://github.com/dainst/ojs-cilantro-plugin
branch = ojs3
[submodule "plugins/importexport/quickSubmit"]
path = plugins/importexport/quickSubmit
url = https://github.com/pkp/quickSubmit
branch = stable-3_1_2
[submodule "plugins/generic/daiBookViewer"]
path = plugins/generic/daiBookViewer
url = https://github.com/dainst/dai-book-viewer-ojs-plugin
url = https://github.com/pkp/COUNTER.git
[submodule "plugins/blocks/browse"]
path = plugins/blocks/browse
url = https://github.com/pkp/browse
[submodule "plugins/importexport/dnb"]
path = plugins/importexport/dnb
url = https://github.com/ojsde/dnb.git
[submodule "plugins/themes/publications-theme"]
path = plugins/themes/publications-theme
url = https://github.com/dainst/publications-theme.git
[submodule "plugins/generic/piwik"]
path = plugins/generic/piwik
url = https://github.com/pkp/piwik.git
[submodule "publications-theme"]
branch = main
[submodule "plugins/generic/crossref"]
path = plugins/generic/crossref
url = https://github.com/pkp/crossref-ojs
[submodule "plugins/generic/acron"]
path = plugins/generic/acron
url = https://github.com/pkp/acron
[submodule "plugins/generic/webFeed"]
path = plugins/generic/webFeed
url = https://github.com/pkp/webFeed.git
39 changes: 39 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->name('*.php')
// The next two rules are enabled by default, kept for clarity
->ignoreDotFiles(true)
->ignoreVCS(true)
// The pattern is matched against each found filename, thus:
// - The "/" is needed to avoid having "vendor" match "Newsvendor.php"
// - The presence of "node_modules" here doesn't prevent the Finder from recursing on it, so we merge these paths below at the "exclude()"
->notPath($ignoredDirectories = ['cypress/', 'js/', 'locale/', 'node_modules/', 'styles/', 'templates/', 'vendor/'])
// Ignore root based directories
->exclude(array_merge($ignoredDirectories, ['cache', 'dbscripts', 'docs', 'lib', 'public', 'registry', 'schemas']))
// Ignores Git folders
->notPath((function () {
$recursiveIterator = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator(__DIR__ . '/plugins', FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS | FilesystemIterator::CURRENT_AS_FILEINFO),
RecursiveIteratorIterator::SELF_FIRST
);
$recursiveIterator->setMaxDepth(1);
$gitFolders = new CallbackFilterIterator(
$recursiveIterator,
fn (SplFileInfo $file) => $recursiveIterator->getDepth() === $recursiveIterator->getMaxDepth()
&& $file->isDir()
// Covers submodules (.git file) and external repositories (.git directory)
&& file_exists("{$file}/.git")
);
$folders = [];
foreach ($gitFolders as $folder) {
$folders[] = str_replace(__DIR__ . '/', '', $folder);
}
return $folders;
})());

$rules = include './lib/pkp/.php_cs_rules';
$config = new PhpCsFixer\Config();
return $config->setRules($rules)
->setFinder($finder);
7 changes: 4 additions & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ build:
dependencies:
before:
- 'git submodule update --init --recursive'
- 'composer --working-dir=lib/pkp install --no-dev'
- 'composer --working-dir=plugins/paymethod/paypal install --no-dev'
- 'composer --working-dir=plugins/generic/citationStyleLanguage install --no-dev'
- 'wget https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer -O - -q | php -- --quiet'
- 'php composer.phar --working-dir=lib/pkp install --no-dev'
- 'php composer.phar --working-dir=plugins/paymethod/paypal install --no-dev'
- 'php composer.phar --working-dir=plugins/generic/citationStyleLanguage install --no-dev'
nodes:
analysis:
tests:
Expand Down
98 changes: 0 additions & 98 deletions .travis.yml

This file was deleted.

81 changes: 17 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,82 +1,35 @@
# Open Journal Systems

## DAI Version
This Version is based on ojs 3.1.2.4 (stable) and includes the following Plugins:
* [PKP] quickSubmit
* [DAI] zenon
* [DAI] idaitheme
* [DAI] cilantro
[![Build Status](https://app.travis-ci.com/pkp/ojs.svg?branch=main)](https://app.travis-ci.com/pkp/ojs)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/pkp/ojs/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/pkp/ojs/?branch=main)

> Open Journal Systems (OJS) has been developed by the Public Knowledge Project. For general information about OJS and other open research systems, visit the [PKP web site][pkp].
Open Journal Systems (OJS) is open source software developed by the [Public Knowledge Project](https://pkp.sfu.ca/) to manage scholarly journals. [Learn More](https://pkp.sfu.ca/software/ojs/)

[![Build Status](https://travis-ci.org/pkp/ojs.svg?branch=stable-3_3_0)](https://travis-ci.org/pkp/ojs)
## Usage

### Updates
1. Update submodule in its own repository, e.g. dainst/ojs3_theme, commit and push your changes.
2. Checkout this repository, navigate to the updated submodule and `git pull`. Maybe you need to checkout the correct branch/commit manually.
3. Leave the submodule and exceute `git add path/to/submodule`, `git commit -m "Update submodule xy"` and `git push`.
4. The only thing to do on the server should be `sudo -u www-data git pull`.
Read one of these guides to get started using OJS:

Never update this repository on the server and remember to pull as www-data to avoid files owned by the root user.
- Read the [Admin Guide](https://docs.pkp.sfu.ca/admin-guide/) to learn how to install and configure the application from an official release package. Use this guide to deploy to production.
- Read the [Getting Started](https://docs.pkp.sfu.ca/dev/documentation/en/getting-started) guide to learn how to install the application from this source repository. Use this guide for local development.

Visit our [Documentation Hub](https://docs.pkp.sfu.ca/) for user guides, tutorials, and technical documentation.

## Documentation
## Bugs / Feature Requests

You will find detailed guides in [docs](docs) folder.
> ⚠️ If you have found a security risk or vulnerability, please read our [security policy](SECURITY.md).
## Using Git development source
All issues should be filed at the [pkp/pkp-lib](https://github.com/pkp/pkp-lib/issues/) repository. Feature requests can be made at our [Community Forum](https://forum.pkp.sfu.ca/). Learn more about how to [report a problem](https://docs.pkp.sfu.ca/dev/contributors/#report-a-problem).

Checkout submodules and copy default configuration :
## Community Code of Conduct

git submodule update --init --recursive
cp config.TEMPLATE.inc.php config.inc.php
This repository is a PKP community space. All activities here are governed by [PKP's Code of Conduct](https://pkp.sfu.ca/code-of-conduct/). Please review the Code and help us create a welcoming environment for all participants.

Install or update dependencies via Composer (https://getcomposer.org/):
## Contributions

composer --working-dir=lib/pkp install
composer --working-dir=plugins/paymethod/paypal install
composer --working-dir=plugins/generic/citationStyleLanguage install

Install or update dependencies via [NPM](https://www.npmjs.com/):

# install [nodejs](https://nodejs.org/en/) if you don't already have it
npm install
npm run build

If your PHP version supports built-in development server :

php -S localhost:8000

See the [Documentation Hub][doc-hub] for a more complete development guide.

## Running Tests

We recommend using [Travis](https://travis-ci.org/) for continuous-integration
based testing. Review the Travis configuration file (`.travis.yml`) as a
reference for running the test locally, should you choose to do so.

The tests include an integration test suite that builds a data environment from
scratch, including the installation process. (This is the `-b` flag to the test
script `lib/pkp/tools/runAllTests.sh`; this is also executed in the Travis
environment.)

## Bugs / Issues

See https://github.com/pkp/pkp-lib/#issues for information on reporting issues.
Read the [Contributor's Guide](https://docs.pkp.sfu.ca/dev/contributors/) to learn how to make a pull request. This document describes our code formatting guidelines as well as information about how we organize stable branches and submodules.

## License

This software is released under the the [GNU General Public License][gpl-licence].

See the file [COPYING][gpl-licence] included with this distribution for the terms
of this license.

Third parties are welcome to modify and redistribute OJS in entirety or parts
according to the terms of this license. PKP also welcomes patches for
improvements or bug fixes to the software.
This software is released under the the GNU General Public License. See the file `docs/COPYING` included with this distribution for the terms of this license.

[pkp]: https://pkp.sfu.ca/
[readme]: docs/README.md
[doc-hub]: https://docs.pkp.sfu.ca/
[php-unit]: https://phpunit.de/
[gpl-licence]: docs/COPYING
Third parties are welcome to modify and redistribute OJS in entirety or parts according to the terms of this license. PKP also welcomes patches for improvements or bug fixes to the software.
Loading

0 comments on commit 0ae9f63

Please sign in to comment.