From f33d2021c76197421d460b6d9a05e233f180ae42 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Fri, 15 Nov 2024 13:16:26 -0800 Subject: [PATCH] pkp/oaiJats#50 Ambiguous error message for unauthorized prepublication access --- OAIMetadataFormat_JATS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OAIMetadataFormat_JATS.php b/OAIMetadataFormat_JATS.php index e6e2afa..200ff6b 100644 --- a/OAIMetadataFormat_JATS.php +++ b/OAIMetadataFormat_JATS.php @@ -97,7 +97,7 @@ function toXml($record, $format = null) { $isSubscribedDomain = $issueAction->subscribedDomain(Application::get()->getRequest(), $journal, $issue->getId(), $article->getId()); $allowedPrePublicationAccess = $issueAction->allowedIssuePrePublicationAccess($journal, $request->getUser()); if ($subscriptionRequired && (!$allowedPrePublicationAccess && !$isSubscribedDomain)) { - $oaiDao->oai->error('cannotDisseminateFormat', 'Cannot disseminate format (JATS XML not available)'); + $oaiDao->oai->error('cannotDisseminateFormat', 'Cannot disseminate format (unauthenticated access to JATS XML not allowed)'); exit(); }