Great – I can help you get this ready for the plugin gallery!
Try uploading the plugin package to the “Releases” area in the github repository, rather than putting it into the repository itself in downloads. We tend to use branches to organize the code for each target version of OJS (e.g. ojs-stable-2_4_8 and ojs-stable-3_1_1), then upload a release for each.
Once that’s ready to go, write up a description and let me know what versions each release works with (e.g. 3.1.0-0, 3.1.1-1, 3.1.1-2, etc) and I’ll add entries to the plugin gallery. An example entry for the plugin gallery looks like this:
<plugin category="generic" product="customHeader">
<name locale="en_US">Custom Header Plugin</name>
<homepage>https://github.com/asmecher/customHeader/</homepage>
<summary locale="en_US">Permits the addition of custom headers to the website.</summary>
<description locale="en_US"><![CDATA[<p>This plugin permits the addition of custom headers to the website. This can be used e.g. to add arbitrary Javascript to the front-end.</p>]]></description>
<maintainer>
<name>Alec Smecher</name>
<institution>Public Knowledge Project</institution>
<email>alec@smecher.bc.ca</email>
</maintainer>
<release date="2018-02-19" version="1.0.0.0" md5="84d55e711ee08c948d69dc37d6075ef1">
<package>https://github.com/asmecher/customHeader/releases/download/ojs-3_1_0-0/customHeader-ojs-3_1_0-0.tar.gz</package>
<compatibility application="ojs2">
<version>3.1.0.0</version>
<version>3.1.0.1</version>
<version>3.1.1.0</version>
<version>3.1.1.1</version>
<version>3.1.1.2</version>
<version>3.1.1.4</version>
</compatibility>
<compatibility application="omp">
<version>3.1.0.0</version>
<version>3.1.1.0</version>
<version>3.1.1.1</version>
<version>3.1.1.2</version>
<version>3.1.1.3</version>
<version>3.1.1.4</version>
</compatibility>
<certification type="official" />
<description>Initial release of the custom headers plugin.</description>
</release>
</plugin>
Thanks for contributing!
Regards,
Alec Smecher
Public Knowledge Project Team
Installed, exported XML file and Imported into ICI successfully as well. Just one problem, each article is imported thrice in the ICI. So, it is showing three entries of each and every article. Anyone experiencing this issue?
I have figured it out.
Before, I had three installed local languages, so XML has triplicate the each article in metadata for those languages as well. But, I had removed the two other local languages and currently, only one language is available (English)Then why it is still creating the entries in XML file for the deleted languages?
This Plug-in exported metadata for at all available in OJS languages. May be we should ask about this issue @asmecher or @Ph_We. They can help to remove unused languages.
For your case, I propose to remove all unnecessary items manually.
I have tried to install the plugin but the following error occurred
Fatal error : require_once(): Failed opening required ‘lib/pkp/classes/plugins/ImportExportPlugin.inc.php’ (include_path=’.:/home/escijour/public_html/classes:/home/escijour/public_html/pages:/home/escijour/public_html/lib/pkp:/home/escijour/public_html/lib/pkp/classes:/home/escijour/public_html/lib/pkp/pages:/home/escijour/public_html/lib/pkp/lib/adodb:/home/escijour/public_html/lib/pkp/lib/phputf8:/home/escijour/public_html/lib/pkp/lib/pqp/classes:/home/escijour/public_html/lib/pkp/lib/smarty:.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/escijour/public_html/lib/pkp/includes/functions.inc.php on line 32
When I click on the System Plugin, the same error is seen.
Plugin has been successfully instaled through the Plugin Gallery on OJS 3.1.1.4. Thanks for developers for a great contribution!
However I faced with an issue - after import in ICI, all articles are duplicated (please see screenshot). Is it somehow related with bilingual instalation of my OJS? My website has two languages - En and Uk. I did not provided Ukrainian metadata yet and left the rows empty, because I thought that it can nake an issue later when I will export them. But I see that even in this case of prevention metadata duplicate.
Thank you for your reply. You are right. Articles duplication caused by multilingual installation of OJS. Copernicus plug-in exports meta-data for all installed languages in OJS. As far as I know in your case Ukrainian meta-data should be blank. May be @asmecher can help us.
As solution I can propose to remove duplication manually.
Dear @esciencepress
You problem deals with your meta-data. In the article “First Report of Botrytis cinerea Causing Gray Mold Disease on Peach from Pakistan” defined only start page, end page is empty. Please fix this.