Skip to content

Commit a18aef8

Browse files
Merge branch 'fixOrcidsLinebreak-853' into 'main'
Corrige problema de detecção de ORCIDs com quebra de linha See merge request softwares-pkp/plugins_ojs/doiscielo!31
2 parents 3190e44 + c5f454c commit a18aef8

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

classes/DocumentChecker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public function __construct(string $pathFile)
1212
shell_exec("pdftotext " . $pathFile . " " . $pathTxt . " -layout 2>/dev/null");
1313

1414
$this->fileText = file_get_contents($pathTxt);
15+
$this->fileText = str_replace(["\r", "\n"], '', $this->fileText);
16+
1517
unlink($pathTxt);
1618
}
1719

cypress/tests/Test1_submissionWizard.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ describe('SciELO Screening Plugin - Submission wizard tests', function() {
202202
cy.get('input[name="urlPath"]').should('not.exist');
203203
cy.get('a.pkpModalCloseButton').click();
204204
});
205+
cy.wait(1000);
205206

206207
cy.addSubmissionGalleys([files[0], files[0]]);
207208
cy.contains('button', 'Continue').click();

tests/DocumentCheckerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public function testDocumentWithOrcids()
2828
$expectedOrcids = [
2929
'0000-0001-5727-2427',
3030
'0000-0002-1648-966x',
31-
'0000-0002-1825-0097'
31+
'0000-0002-1825-0097',
32+
'0000-0003-1984-8629'
3233
];
3334

3435
$this->assertEquals($expectedOrcids, $documentChecker->checkTextOrcids());

tests/assets/orcids_document.pdf

8.47 KB
Binary file not shown.

version.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<version>
99
<application>scieloScreening</application>
1010
<type>plugins.generic</type>
11-
<release>2.1.4.3</release>
12-
<date>2025-11-03</date>
11+
<release>2.1.4.4</release>
12+
<date>2025-11-11</date>
1313
<lazy-load>1</lazy-load>
1414
<class>ScieloScreeningPlugin</class>
1515
</version>

0 commit comments

Comments
 (0)