diff --git a/README.md b/README.md index 510cee8..5dfecf9 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,6 @@ php tools/importExport.php FullJournalImportExportPlugin import [targzFileName] - Navigation Menus - Plugins Configs - Sections -- Review Forms - Review Assignments - Review Rounds - Stage Assignments @@ -57,6 +56,7 @@ php tools/importExport.php FullJournalImportExportPlugin import [targzFileName] **To Do**: +- Review Forms - Review Files - Discussions - Metrics diff --git a/filter/export/JournalNativeXmlFilter.inc.php b/filter/export/JournalNativeXmlFilter.inc.php index dddd835..fae03b0 100755 --- a/filter/export/JournalNativeXmlFilter.inc.php +++ b/filter/export/JournalNativeXmlFilter.inc.php @@ -451,7 +451,7 @@ private function removeDuplicatedInterests($usersDoc) $interests = preg_split('/,\s*/', $node->textContent); $uniqueInterests = array_intersect_key( $interests, - array_unique(array_map("strtolower", $interests)) + array_unique(array_map([$this, 'removeAccents'], $interests)) ); $node->nodeValue = htmlspecialchars(implode(', ', $uniqueInterests), ENT_COMPAT, 'UTF-8'); } @@ -459,6 +459,17 @@ private function removeDuplicatedInterests($usersDoc) } } + public function removeAccents($string) + { + $transliterator = Transliterator::createFromRules( + ':: Any-Latin; :: Latin-ASCII; :: NFD; :: [:Nonspacing Mark:] Remove; :: NFC;', + Transliterator::FORWARD + ); + $normalized = $transliterator->transliterate(strtolower($string)); + + return $normalized; + } + private function camelCaseToSnakeCase($string) { return strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $string)); diff --git a/fullJournal.xsd b/fullJournal.xsd index bdd79a0..b7cfa2c 100644 --- a/fullJournal.xsd +++ b/fullJournal.xsd @@ -75,7 +75,7 @@ - + diff --git a/version.xml b/version.xml index f6f8ba5..af76227 100644 --- a/version.xml +++ b/version.xml @@ -10,7 +10,7 @@ fullJournalTransfer plugins.importexport - 2.0.7.0 - 2024-02-28 + 2.0.7.1 + 2024-03-01 FullJournalImportExportPlugin