diff --git a/CHANGES.md b/CHANGES.md index b8197d049fbe7cba103000b1b4e8c3915492beef..7e913db4418beb420ef4d8f01558b25a4f7d9d6a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Changes +## 0.8.10: + +* **Bugfix**: Updated the config to actually enable the deduplication + ## 0.8.9 (04.12.2019) * **Update**: Updated TEI editor to address duplicate metadata issue diff --git a/editor/static/editor/js/tei-editor.js b/editor/static/editor/js/tei-editor.js index a8bdf42f97c4ca922e19a3490e04f21c1566660c..b3cd75c24d11d8d87a225fd9102cd80bfa8ae798 100644 --- a/editor/static/editor/js/tei-editor.js +++ b/editor/static/editor/js/tei-editor.js @@ -28,6 +28,17 @@ { tag: 'tei:respStmt', multiple: true, + deduplicate: { + key: 'attrs.xml:id', + merge: [ + { + tag: 'tei:resp', + }, + { + tag: 'tei:name' + }, + ], + }, attrs: { 'xml:id': '_attrs.xml:id' }, diff --git a/scripts/tei-editor/config.js b/scripts/tei-editor/config.js index e7ce2ee9f744a3499c0d4ced790e16137fd599a9..044ea36838a8ba423f932feb8d10258a88acb9ee 100644 --- a/scripts/tei-editor/config.js +++ b/scripts/tei-editor/config.js @@ -28,6 +28,17 @@ { tag: 'tei:respStmt', multiple: true, + deduplicate: { + key: 'attrs.xml:id', + merge: [ + { + tag: 'tei:resp', + }, + { + tag: 'tei:name' + }, + ], + }, attrs: { 'xml:id': '_attrs.xml:id' },