diff --git a/plugins/gateways/resolver/ResolverPlugin.inc.php b/plugins/gateways/resolver/ResolverPlugin.inc.php index 7c4b6585d39..13bfe08113a 100644 --- a/plugins/gateways/resolver/ResolverPlugin.inc.php +++ b/plugins/gateways/resolver/ResolverPlugin.inc.php @@ -104,11 +104,11 @@ function fetch($args, $request) { foreach ($submissionsIterator as $submission) { // Look for the correct page in the list of articles. $matches = null; - if (PKPString::regexp_match_get('/^[Pp][Pp]?[.]?[ ]?(\d+)$/', $submission->getPages(), $matches)) { + if (PKPString::regexp_match_get('/^[Pp]?[Pp]?[.]?[ ]?(\d+)$/', $submission->getPages(), $matches)) { $matchedPage = $matches[1]; if ($page == $matchedPage) $request->redirect(null, 'article', 'view', $submission->getBestId()); } - if (PKPString::regexp_match_get('/^[Pp][Pp]?[.]?[ ]?(\d+)[ ]?-[ ]?([Pp][Pp]?[.]?[ ]?)?(\d+)$/', $submission->getPages(), $matches)) { + if (PKPString::regexp_match_get('/^[Pp]?[Pp]?[.]?[ ]?(\d+)[ ]?-[ ]?([Pp][Pp]?[.]?[ ]?)?(\d+)$/', $submission->getPages(), $matches)) { $matchedPageFrom = $matches[1]; $matchedPageTo = $matches[3]; if ($page >= $matchedPageFrom && ($page < $matchedPageTo || ($page == $matchedPageTo && $matchedPageFrom = $matchedPageTo))) $request->redirect(null, 'article', 'view', $submission->getBestId()); @@ -173,5 +173,3 @@ function exportHoldings() { } } } - -