There are many ways to import and export data with OJS, OMP and OPS. To access these tools, you will need to have an account with administrator or manager privileges. Many of these tools are available from the command line.
You can use the REST API to read and write some data in the application. See the api documentation.
The Native XML format changes with each major version. You can not import an XML file generated with 3.2 into a 3.3 install.
The Native XML format is our XML schema to import and export submissions in OJS, OMP and OPS. This format is preferred for importing back issues, books or preprints, or moving submissions from one journal, press or preprint server to another. This format includes the submissions, their metadata, and all submission files. In OJS, it also includes issue metadata. When submissions are imported using this format, all imported issues, authors, users and files will be created.
Follow these steps to import or export submissions using Native XML.
To create an import file, you will need to have a basic understanding of XML.
Before you can import data using this format, you will need to create a XML file that matches the format’s schema. The following table includes the XML schemas along with sample XML import files.
Schema | Sample | Description |
---|---|---|
native.xsd | Base schema extended by all applications. | |
native.xsd | sample.xml | Issues and articles in OJS. |
native.xsd | sample.xml | Book in OMP. |
native.xsd | sample.xml | Preprint in OPS. |
Consider the following when creating your XML import file.
<!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.<href>
can link to remote or local files.abstract
. If you embed HTML within your document, remember to wrap the HTML within <![CDATA[]]>
tags.<abbrev locale="en">AR</abbrev>
instead of <abbrev locale="en">ART</abbrev>
, a new journal section with the initials AR will be created, and that one article will be added to it. This is easier to fix before you run the import than it is to clean up after.The QuickSubmit plugin is a useful tool for importing a small amount of back content. It provides a UI that managers can use to manually add a submission, assign it to an issue, and publish it.
Learn more about how to use this plugin in Learning OJS 3.
Every journal, press or preprint server produces a public OAI (Open Archives Initiative) interface that can be used to access published content in the OAI XML format.
To access it, visit the /oai
page for any journal, press or preprint server. For example, if the homepage is accessed at https://example.org/example-journal/
, visit https://example.org/example-journal/oai
.
To enable or disable the endpoint, change the oai
setting in config.inc.php
.
There are a few ways to import or export user accounts. User accounts control access to the application and are distinct from the contributor records of submissions.
See the api documentation to see what user data can be read or written with the REST API.
User account information for each journal can be downloaded as a CSV file using the following steps.
It may take several minutes to generate the CSV file if you have a large user database.
The Users XML format changes with each major version. You can not import an XML file generated with 3.2 into a 3.3 install.
The Users XML format is our XML schema to import and export users and their roles. This can be used to move user accounts between systems, and import from other systems or export to other systems. This format includes the user information and the roles they have in the system.
Follow these steps to import or export users using the User XML.
To create an import file, you will need to have a basic understanding of XML.
Before you can import data using this format, you will need to create a XML file that matches the format’s schema. The following table includes the XML schemas along with sample XML import files.
Schema | Sample | Description |
---|---|---|
pkp-users.xsd | sample.xml | Example users for OJS |
pkp-users.xsd | sample.xml | Example users for OMP |
Consider the following when creating your xml import file.
<!DOCTYPE ...>
.<givenname>
and <email>
are mandatory.<password must_change="true">myoldpassword</password>
Validation::encryptCredentials()
and is using the same encryption algorithm used by the system.Each application provides plugins to export published metadata to indexing services, such as Crossref, PubMed, DataCite, DOAJ, MEDRA and more. Some of these plugins deposit directly to the services. Others generate an export file according to the service’s specifications.
Go to Settings > Website > Plugins to install and configure these plugins. Our user documentation hub provides guidance for working with many of them.
Many of the import/export plugins can be run from the command line. This includes the official plugins for submissions (Native XML) and users that are included with every release.
Run the following command from the root directory of the application to see which import/export tools are available.
php tools/importExport.php list
Run the following command to see how to use this tool.
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.”
Your server’s error log should contain a more useful error message to help you track down the source of the problem.