From 51042eab98a3009c378b211ae451f17c20f090f4 Mon Sep 17 00:00:00 2001 From: ronste Date: Fri, 15 Jan 2021 14:09:26 +0000 Subject: [PATCH] Readme and version updated for release of plugin version 1.3.2 for OJS 3.1.2 --- DNBExportPlugin.inc.php | 24 +++++++++++++----------- README | 6 ++---- README_DE | 10 ++++------ scheduledTasks.xml | 2 +- 4 files changed, 20 insertions(+), 22 deletions(-) diff --git a/DNBExportPlugin.inc.php b/DNBExportPlugin.inc.php index 9794e90..321aa44 100644 --- a/DNBExportPlugin.inc.php +++ b/DNBExportPlugin.inc.php @@ -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) { @@ -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); diff --git a/README b/README index 82bea1f..c673216 100644 --- a/README +++ b/README @@ -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) diff --git a/README_DE b/README_DE index 6c40d27..eb8872a 100644 --- a/README_DE +++ b/README_DE @@ -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. @@ -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. diff --git a/scheduledTasks.xml b/scheduledTasks.xml index ff1dc2f..068d577 100644 --- a/scheduledTasks.xml +++ b/scheduledTasks.xml @@ -19,6 +19,6 @@ Deposit article packages to DNB Hotfolder. - +