Giter VIP home page Giter VIP logo

fulljournaltransfer's Introduction

Full Journal Transfer

This plugin allows you to import and export all the content of a journal.

Compatibility

The latest release of this plugin is compatible with the following PKP applications:

  • OJS 3.3.0

Note: This plugin is designed for the export and import of journals within the same version of OJS. Example: from 3.3.0-16 to 3.3.0-16. For best results, it is recommended to use OJS version 3.3.0-16 or newer.

Plugin Download

To download the plugin, go to the Releases page and download the tar.gz package of the latest release compatible with your website.

Installation

  1. Enter the administration area of ​​your OJS website through the Dashboard.
  2. Navigate to Settings> Website> Plugins> Upload a new plugin.
  3. Under Upload file select the file fullJournalTransfer.tar.gz.
  4. Click Save and the plugin will be installed on your website.

Instructions for use

Command line

Export

Export a journal to a tar.gz file containing the xml and file directory by executing the command in the application's root directory:

php tools/importExport.php FullJournalImportExportPlugin export [targzFileName] [journal_path]

Import

To import a journal from tar.gz file, execute the command in the application's root directory:

php tools/importExport.php FullJournalImportExportPlugin import [targzFileName] [user_name]

Obs.: Journals containing substantial data will consume a large memory resources. In such instances, employ the PHP parameter -d memory_limit=-1 during import/export operations.

Imported/Exported Journal Content

Using PKP native import/export:

  • Users and User Roles
  • Articles
  • Issues

Added:

  • Journal data
  • Navigation Menus
  • Plugins Configs
  • Sections
  • Review Forms
  • Review Assignments
  • Review Rounds
  • Review Files
  • Reviewer Files
  • Reviewer Comments
  • Revision Files
  • Stage Assignments
  • Editor Decisions
  • Discussions
  • Metrics

Running Tests

Unit Tests

To execute the unit tests, run the following command from root of the PKP Application directory:

lib/pkp/lib/vendor/phpunit/phpunit/phpunit -c lib/pkp/tests/phpunit-env2.xml plugins/importexport/fullJournalTransfer/tests

Credits

This plugin was idealized and sponsored by the Brazilian Institute of Information in Science and Technology (IBICT) for OJS version 2.x.

Funding for version 3.3 comes from the Federal University of São Paulo (Unifesp) and Federal University of Recôncavo da Bahia (UFRB).

Developed by Lepidus Tecnologia.

License

This plugin is licensed under the GNU General Public License v3.0

Copyright (c) 2014-2024 Lepidus Tecnologia

fulljournaltransfer's People

Contributors

devlepidus avatar diegoabadan avatar jhonathanlepidus avatar pablovp86 avatar thiagolepidus avatar yveslepidus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fulljournaltransfer's Issues

Failed import from tar.gz

Hi
I have created an file.tar.gz through the export action of a OJS 2.4.6 journal, When I try to import it in other instance of OJS 2.4.6 I have got some errors about Denied permisions.

ojs2 has produced an error
  Message: WARNING: mkdir(): Permiso denegado
  In file: /var/www/html/ojs2_4_6/lib/pkp/classes/file/FileManager.inc.php
  At line: 306
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.6.36-1+ubuntu16.04.1+deb.sury.org+1
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.7.22-0ubuntu0.16.04.1
ojs2 has produced an error
  Message: WARNING: mkdir(): No existe el archivo o el directorio
  In file: /var/www/html/ojs2_4_6/lib/pkp/classes/file/FileManager.inc.php
  At line: 306
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.6.36-1+ubuntu16.04.1+deb.sury.org+1
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.7.22-0ubuntu0.16.04.1
ojs2 has produced an error
  Message: WARNING: mkdir(): No existe el archivo o el directorio
  In file: /var/www/html/ojs2_4_6/lib/pkp/classes/file/FileManager.inc.php
  At line: 306
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.6.36-1+ubuntu16.04.1+deb.sury.org+1
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.7.22-0ubuntu0.16.04.1
ojs2 has produced an error
  Message: WARNING: mkdir(): Permiso denegado
  In file: /var/www/html/ojs2_4_6/lib/pkp/classes/file/FileManager.inc.php
  At line: 306
  Stacktrace: 
  Server info:
   OS: Linux
   PHP Version: 5.6.36-1+ubuntu16.04.1+deb.sury.org+1
   Apache Version: N/A
   DB Driver: mysql
   DB server version: 5.7.22-0ubuntu0.16.04.1

Can someone knows how resolve these troubles?

I have the doubt if I have to create the database first and then apply the import using the plugin?

Where is the tar.gz ?

image
when click enter, only move to newline, there no process. Help ?

Specs:
OJS 3.3.0.12
Php 7.4

DB Error: llave duplicada viola restricción de unicidad "controlled_vocab_entries_pkey"

Hi Goog afternoon I have installed the plugin in 2 instances OJS 2.4.8.2, I have executed the plugin on the source instance using the command:

/usr/bin/php56 tools/importExport.php FullJournalImportExportPlugin export boletin_instituto.tar.gz boletin

The previous command returned me the boletin_instituto.tar.gz file.

When I executed the command to import the resulting tar.gz file using the command

/usr/bin/php56 tools/importExport.php FullJournalImportExportPlugin import boletin_instituto.tar.gz

I got the following error messages:

<h1>DB Error: ERROR:  llave duplicada viola restricción de unicidad «controlled_vocab_entries_pkey»
DETALLE:  Ya existe la llave (controlled_vocab_entry_id)=(100).</h1>ojs2: DB Error: ERROR:  llave duplicada viola restricción de unicidad «controlled_vocab_entries_pkey»
DETALLE:  Ya existe la llave (controlled_vocab_entry_id)=(100).

Is there a way to resolve that error message?

Environment:
PHP 5.6.40
PostgreSQL 9.2.24
Both source and destination OJS versions: 2.4.8.2

Thanks Best Regards

no export tarfile produced

Hi there,
I'm trying to export a journal from an installation running OJS 2.4.8.3. I am able to execute the command-line export command, e.g.:

php tools/importExport.php FullJournalImportExportPlugin export ~/cat-export.tar.gz catalyst

No error is triggered (I tested by trying to write to a directory I have no permissions on, and using an incorrect filepath -- those both fail and give errors). However, the tarfile is not produced. I've done a find ~/ -name "*.tar.gz" and I don't see the file anywhere. I imagine something is going wrong in the handleExport function, but I'm not familiar enough with the codebase & PHP in general to say more.

If you have some guidance I'd be really grateful! Thank you.

OJS3 support

Hi,

First of all thank you for the great plugin you created. It worked without any problems when I transfered two OJS2 journals last fall.

However, I would like to know if you have plans to support OJS3 in the near future?

PHP Fatal error: Class 'String' not found

Hello. Thanks for this plugin.

I executed it, but i obtained this error:

root@servidor:/19AGO2020/ojs-2.4.8-5# php5.6 tools/importExport.php FullJournalImportExportPlugin export test.tar.gz test
PHP Fatal error:  Class 'String' not found in /19AGO2020/ojs-2.4.8-5/plugins/importexport/fullJournalTransfer/XMLAssembler.inc.php on line 905
PHP Stack trace:
PHP   1. {main}() /19AGO2020/ojs-2.4.8-5/tools/importExport.php:0
PHP   2. importExport->execute() /19AGO2020/ojs-2.4.8-5/tools/importExport.php:69
PHP   3. FullJournalImportExportPlugin->executeCLI() /19AGO2020/ojs-2.4.8-5/tools/importExport.php:63
PHP   4. FullJournalImportExportPlugin->handleExport() /19AGO2020/ojs-2.4.8-5/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php:136
PHP   5. FullJournalImportExportPlugin->_generateXml() /19AGO2020/ojs-2.4.8-5/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php:174
PHP   6. XMLAssembler->exportJournal() /19AGO2020/ojs-2.4.8-5/plugins/importexport/fullJournalTransfer/FullJournalImportExportPlugin.inc.php:221
PHP   7. XMLAssembler->exportJournalConfig() /19AGO2020/ojs-2.4.8-5/plugins/importexport/fullJournalTransfer/XMLAssembler.inc.php:25
PHP   8. XMLAssembler->writeElement() /19AGO2020/ojs-2.4.8-5/plugins/importexport/fullJournalTransfer/XMLAssembler.inc.php:43


can you give me some help, please?

Thanks

Clarification on OJS version

Hi, I think the documentation for this plugin is a little confusing, and I was hoping for some clarification.

In one area you say "This is an import/export plugin for OJS 2.4.6, 2.4.7, 2.4.8 and 2.4.8.1 ", and then in another you say "This plugin requires OJS 2.4.6 in both OJS instances". What version does the plugin work with or require? And are there any PHP version requirements?

I'm asking because we're currently trying to import a journal from 2.4.8.3 into an instance with 2.4.8.1, but have not been able to successfully import so far.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.