Open Journal Systems offers a variety of tools and plugins which allow you to inject data into and extract data from OJS. This chapter explains how to use import and export tools and plugins. More information can be found in each plugin’s documentation within OJS’ plugin directory (plugins/), and in the Plugin Inventory.
Most import and export functions can be carried out by logging in as Journal Manager and going to Tools > Import/Export.
However, in some cases import/export plugins need to be installed or enabled first under Settings > Website > Plugins. How to access and use specific plugins and functions are explained in the sections below.
Import/export functionality is also available as a command-line tool; see tools/importExport.php
and the command line section for more information.
Articles and issues can be quickly imported into OJS using the Quick Submit Plugin or the Native XML Plugin (formerly the Articles and Issues XML Plugin). The Quick Submit Plugin is a useful tool for importing 5-10 articles, but for larger numbers of articles and issues, or if you have your metadata in a transformable format, you may wish to use the Native XML Plugin.
The Quick Submit Plugin allows you to quickly add complete submissions to an issue. It provides a one-step submission process for editors needing to bypass the traditional submission, review, and editing process. See Learning OJS 3 for more details.
The Native XML Plugin in OJS 3.x replaces the Articles and Issues XML Plugin, which was used in OJS 2 to import article and issue metadata into and out of OJS in an XML file. It can be used to import and export single or multiple issues and/or articles, including comprehensive metadata. It can be used in the following cases:
To use this plugin you will need the following:
If you are importing data, first create the XML import file. Here are links to sample XML import files and XML schemas:
* Please note that the XML format used by the Native XML Plugin for OJS 3 is different from the XML format for the Articles and Issues XML Plugin used in OJS 2. If you export data from OJS 2 and want to import it into OJS 3, you will have to edit the XML file first. Also note that the schema is revised periodically; if exporting from one version of OJS and importing into a different version, you may need to adjust the XML slightly to account for these changes.
Here are some things to consider:
<!DOCTYPE ...>
.<embed>
to place a file directly within your XML document, or use <href>
to link to one.<embed>
tag you will have to base64-encode your files. Using <embed>
with a base64-encoded file would look something like this: [screenshot needed]<href>
. A full URL link would look like the following: [screenshot needed]<![CDATA[]]>
tags.<abbrev locale="en\_US">
AR</abbrev>
instead of <abbrev locale="en\_US">
ART</abbrev>
, a new journal section with the initials AR will be created, and that one article will be added to it. This can be easily fixed pre-import, but difficult to clean up after.You should validate your XML file before importing it. If you are using an XML editor tool, such as Liquid XML Editor or Oxygen XML, you can validate the file there. If the XML is not valid an error message will display identifying what line(s) have errors.
Once you have the valid XML import file, you can import it:
To export article and issue metadata using the Native XML Plugin:
* Please note that using this plugin to export articles and issues will not only export all relevant metadata, but will include all article files (HTML, PDF, etc.) embedded within the XML document in Base64 encoding. This can result in large, cumbersome XML files, especially when multiple issues are exported at once. Opening them in an editor to view or change any XML data or metadata may be taxing for your computer, and it may take some time to download and/or upload said files, depending on your connection and the resources of the source server.
The Users XML Plugin can be used to import and export users and their roles. It can be used in the following cases:
To use this plugin you will need the following:
If you are importing users into OJS, first create the XML import file. Here is a sample XML import file: https://github.com/pkp/ojs/blob/main/plugins/importexport/users/sample.xml
* Please note that the XML format used by the Users XML Plugin in OJS 3 is different from the XML format used by the Plugin in OJS 2. If you export data from OJS 2 and want to import it into OJS 3, you will have to edit the XML file first.
Here are some things to consider:
<!DOCTYPE ...>
.<firstname>
, <lastname>
and <email>
are mandatory.<password must\_change="true">
myoldpassword</password>
Validation::encryptCredentials()
and is using the same encryption algorithm used by the system.You should validate your XML file before importing it. If you are using an XML editor tool, such as Liquid XML Editor or Oxygen XML, you can validate the file there. If the XML is not valid an error message will display identifying what line(s) have errors.
Once you have the valid XML import file, you can import it:
To export user accounts using the Users XML Plugin:
Journal editors and managers can export the user database as a CSV file. The CSV format is easy to use with marketing and mailing list management tools, such as Mailchimp.
To export users to a CSV file:
OJS has plugins that allow you to export article metadata to external sites and indexing services that is compatible with their format.
The PubMed XML Export Plugin allows you to export article metadata as an XML file in NLM PubMed/MEDLINE format. For more information about the Plugin, see its README file.
The DataCite Export/Registration Plugin allows you to export issue, article, galley, and supplementary file metadata in DataCite format and register DOIs with DataCite. For more information about the Plugin, see its README file.
If your journal is indexed by the Directory of Open Access Journals (DOAJ), you can export your journal issue and article metadata to DOAJ either manually using the DOAJ Export Plugin or automatically using the DOAJ API.
To export journal metadata automatically to DOAJ:
To manually export article metadata to DOAJ:
The Crossref XML Export Plugin allows you to automatically and manually export article metadata in Crossref XML format for deposit with Crossref. For information about how to use this plugin, see the Crossref OJS Manual: http://docs.pkp.sfu.ca/crossref-ojs-manual/
The mEDRA Export/Registration Plugin allows you to export issue, article, and galley metadata in Onix for DOI (O4DOI) format and register DOIs with the mEDRA registration agency. For information about how to use the plugin, see its README file: https://github.com/pkp/medra/blob/main/README
Import/export plugins can normally also be run from the command line. You can view the applicable plugin names by running the following command:
php tools/importExport.php list
You can see usage parameters by running the following command:
php tools/importExport.php \[PluginName\] usage
“I imported my XML file and I’m getting an error message.”
Did you validate your XML file before importing it? If you did not, run it through a validator in your XML editor or browser and the validator will indicate what is wrong with the file.
“When I click on the Export button I get a blank page instead of a list of data to export.”
You should check the error_log file to find what went wrong exactly.