Skip to content

Commit

Permalink
Readme and version updated for release of plugin version 1.3.2 for OJ…
Browse files Browse the repository at this point in the history
…S 3.1.2
  • Loading branch information
ronste committed Jan 15, 2021
1 parent 01f4ca6 commit 51042ea
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
24 changes: 13 additions & 11 deletions DNBExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
import('classes.plugins.PubObjectsExportPlugin');
import('lib.pkp.classes.file.FileManager');

define('DEBUG', true);
define('DEBUG', false);

define('DNB_STATUS_DEPOSITED', 'deposited');
# determines whether to export remote galleys (experimental feature)
define('EXPORT_REMOTE_GALLEYS', false);
define('ALLOWED_REMOTE_IP_PATTERN','/160.45./');//@RS implement IP pattern as setting
define('ALLOWED_REMOTE_IP_PATTERN','/160.45./');//TODO @RS implement IP pattern as setting
define('ADDITIONAL_PACKAGE_OPTIONS','');//use --format=gnu with tar to avoid PAX-Headers

if (!DEBUG) {
Expand Down Expand Up @@ -66,15 +66,17 @@ function getDescription() {
* @copydoc ImportExportPlugin::display()
*/
function display($args, $request) {

if (($args[0] == 'exportSubmissions') & empty((array) $request->getUserVar('selectedSubmissions'))) {
//show error
$this->errorNotification($request, array(array('plugins.importexport.dnb.deposit.error.noObjectsSelected')));
// redirect back to exportSubmissions-tab
$path = array('plugin', $this->getName());
$request->redirect(null, null, null, $path, null, 'exportSubmissions-tab');
return;
}

if (!empty($args)) {
if (($args[0] == 'exportSubmissions') & empty((array) $request->getUserVar('selectedSubmissions'))) {
//show error
$this->errorNotification($request, array(array('plugins.importexport.dnb.deposit.error.noObjectsSelected')));
// redirect back to exportSubmissions-tab
$path = array('plugin', $this->getName());
$request->redirect(null, null, null, $path, null, 'exportSubmissions-tab');
return;
}
}

parent::display($args, $request);

Expand Down
6 changes: 2 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
=============================================================
=== OJS DNB Export Plugin
=== Version: 1.3.1.1
=== Version: 1.3.2
=== Author: Bozana Bokan, Ronald Steffen
=== Last update: September 14, 2020
=== Last update: January 15, 2021
=============================================================

Attention: Please do not use automatic deposit until next official release.

About
-----
This plugin provides the export of article metadata and full texts (in PDF and EPUB format) for their transfer to the German National Library (DNB)
Expand Down
10 changes: 4 additions & 6 deletions README_DE
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
=============================================================
=== OJS DNB-Export-Plug-In
=== Version: 1.3.1.1
=== Version: 1.3.2
=== Autor: Bozana Bokan, Ronald Steffen
=== Letzte �nderung: 14. September 2020
=== Letzte Änderung: 15. Januar 2021
=============================================================

Achtung: Bitte benutzen Sie bis zur Ver�ffentlichung einer neuen Plugin-Version nicht die automatische Ablieferung an die DNB.

�ber
Über
-----
Dieses Plug-In ermöglicht den Export von Artikel-Metadaten und -Volltexten (im PDF- und EPUB-Format) zwecks ihrer Pflichtablieferung an die Deutsche Nationalbibliothek (DNB)
mittels DNB-Hotfolder-Verfahren. Das Plug-In bietet auch die Option, das Transferpaket direkt in den DNB-Hotfolder abzuliefern.
Expand All @@ -21,7 +19,7 @@ Das Plug-In ist unter GNU General Public License v2 lizenziert. Sehen Sie die Da
Systemanforderungen
-------------------
Dieses Plug-In ist kompatibel mit...
- OJS 3.1.1
- OJS 3.1.1, 3.1.2

TAR-Programm wird benötigt und es muss in der Datei config.inc.php konfiguriert werden.

Expand Down
2 changes: 1 addition & 1 deletion scheduledTasks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<scheduled_tasks>
<task class="plugins.importexport.dnb.DNBInfoSender">
<descr>Deposit article packages to DNB Hotfolder.</descr>
<!-- <frequency minute="0"/> -->
<frequency minute="0"/>
</task>
</scheduled_tasks>

0 comments on commit 51042ea

Please sign in to comment.