diff --git a/module/finc/src/finc/View/Helper/Root/RecordDataFormatterFactory.php b/module/finc/src/finc/View/Helper/Root/RecordDataFormatterFactory.php index f032a410faf2a07b2797f4a31d048c3679808251..2e4e20f781f64da981a27f3acc7d92744d90a904 100644 --- a/module/finc/src/finc/View/Helper/Root/RecordDataFormatterFactory.php +++ b/module/finc/src/finc/View/Helper/Root/RecordDataFormatterFactory.php @@ -114,7 +114,7 @@ class RecordDataFormatterFactory ['helperMethod' => 'getFormatList'] ); $spec->setTemplateLine( - 'Language', 'getLanguages', 'data-escapeHtml.phtml' + 'Language', 'getLanguages', 'data-transEscCommaSep.phtml' ); $spec->setTemplateLine( 'Published', @@ -216,7 +216,7 @@ class RecordDataFormatterFactory ['helperMethod' => 'getFormatList'] ); $spec->setTemplateLine( - 'Language', 'getLanguages', 'data-escapeHtml.phtml' + 'Language', 'getLanguages', 'data-transEscCommaSep.phtml' ); $spec->setTemplateLine( 'Additionals', @@ -252,7 +252,7 @@ class RecordDataFormatterFactory ] ); $spec->setTemplateLine( - 'Language', 'getLanguages', 'data-escapeHtml.phtml' + 'Language', 'getLanguages', 'data-transEscCommaSep.phtml' ); $spec->setLine( 'Format', 'getFormats', 'RecordHelper', @@ -318,7 +318,7 @@ class RecordDataFormatterFactory ['helperMethod' => 'getFormatList'] ); $spec->setTemplateLine( - 'Language', 'getLanguages', 'data-escapeHtml.phtml' + 'Language', 'getLanguages', 'data-transEscCommaSep.phtml' ); $spec->setTemplateLine( 'Published', @@ -610,7 +610,7 @@ class RecordDataFormatterFactory ); // , context: "recordEvents" $spec->setTemplateLine( - 'Language', 'getLanguages','data-escapeHtml.phtml' + 'Language', 'getLanguages','data-transEscCommaSep.phtml' ); $spec->setTemplateLine( 'Time of origin', 'getDateSpan', 'data-dateSpan.phtml' @@ -701,7 +701,7 @@ class RecordDataFormatterFactory ['helperMethod' => 'getFormatList'] ); $spec->setTemplateLine( - 'Language', 'getLanguages', 'data-escapeHtml.phtml' + 'Language', 'getLanguages', 'data-transEscCommaSep.phtml' ); $spec->setTemplateLine( 'Published', diff --git a/themes/finc/templates/RecordDriver/SolrDefault/data-transEscCommaSep.phtml b/themes/finc/templates/RecordDriver/SolrDefault/data-transEscCommaSep.phtml new file mode 100644 index 0000000000000000000000000000000000000000..4e9dd72fe3e55b0268f899157a2029951783ad54 --- /dev/null +++ b/themes/finc/templates/RecordDriver/SolrDefault/data-transEscCommaSep.phtml @@ -0,0 +1,7 @@ +<?if (!empty($data)): ?> + <? if(is_array($data)): ?> + <?=implode(', ', array_map(array($this, 'transEsc'), $data)); ?> + <? else: ?> + <?= $this->transEsc($data) ?> + <? endif; ?> +<? endif; ?> \ No newline at end of file