From c22aa7d7a27efa4f76d175bf683483015ed064b2 Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 30 Aug 2021 15:45:24 -0400 Subject: [PATCH] Use dataset mapper for html and pdf subtype mapping --- .../Elements/HistoryDatasetDisplay.vue | 76 ++++++++++--------- 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue b/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue index 7d5abb2409b..ed207cd2544 100644 --- a/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue +++ b/client/src/components/Markdown/Elements/HistoryDatasetDisplay.vue @@ -37,41 +37,45 @@
{{ error }}
- -
- - -
- - -
{{ metaError }}
- -
+ + +
+ +
+
+ + +
{{ metaError }}
+ +
+
+
+                                            {{ itemContent.item_data }}
+                                        
-
-                                    {{ itemContent.item_data }}
-                                
- -
-
No content found.
- Show More... +
No content found.
+ + Show More... + +
+
@@ -133,9 +137,9 @@ export default { }, }, methods: { - isSubType(child, parent, datatypesModel) { + isSubTypeOfAny(child, parents, datatypesModel) { const datatypesMapper = new DatatypesMapperModel(datatypesModel); - return datatypesMapper.isSubType(child, parent); + return datatypesMapper.isSubTypeOfAny(child, parents); }, getFields(metaData) { const fields = [];